---
title: "Prayer times API | APIFor"
description: "Prayer times for any point and date, computed with the method you choose, plus official timetables where we hold them. 1 credit per call, REST and MCP, one API key."
canonical: "https://apifor.dev/services/prayer-times/"
---

1. [Services](https://apifor.dev/services/)
2. [Prayer times](https://apifor.dev/services/prayer-times/)

# Prayer times API

Prayer times for any point and date, computed with the method you choose, plus official timetables where we hold them.

GET /v1/prayer-times 1 credit About $0.001

[Get a free API key](https://app.apifor.dev/register) [Endpoint reference](https://apifor.dev/docs/reference/prayer-times/)

## Try it

GET /v1/prayer-times

```bash
curl 'https://api.apifor.dev/v1/prayer-times?lat=-6.2&lng=106.816&date=2026-12-01' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "success": true,
  "data": {
    "date": "2026-12-01",
    "lat": -6.2,
    "lng": 106.816,
    "timezone": "Asia/Jakarta",
    "utc_offset": "+07:00",
    "method": "Kemenag",
    "method_name": "Kementerian Agama Republik Indonesia",
    "asr_school": "standard",
    "angles": {
      "fajr": 20,
      "isha": 18,
      "isha_minutes_after_maghrib": null
    },
    "fajr": "04:06",
    "sunrise": "05:26",
    "dhuhr": "11:44",
    "asr": "15:09",
    "maghrib": "17:57",
    "isha": "19:13",
    "imsak": "03:56",
    "computed": true,
    "high_latitude_rule": null,
    "adjusted": [],
    "polar_day_or_night": false
  },
  "meta": {
    "attribution": {
      "source": "https://apifor.dev/docs/prayer-times",
      "licence": "Computed (no third-party data)",
      "license": "Computed (no third-party data)",
      "license_url": "https://apifor.dev/sources",
      "source_url": "https://apifor.dev/docs/prayer-times",
      "attribution_page": "https://apifor.dev/sources",
      "notice": "Computed by APIFor from solar position formulas with the published angles of the chosen method; not an official timetable. Local authorit..."
    },
    "timezone_source": "timezone"
  }
}
```

A real response from our OpenAPI file, with long lists and strings shortened.

## Endpoints and price

| Endpoint | Credits | About |
| --- | --- | --- |
| GET `/v1/prayer-times` | 1 credit | $0.001 |
| GET `/v1/prayer-times/{id}` | 1 credit | $0.001 |
| GET `/v1/prayer-times/coverage` (Free) | Free | $0 |

USD at Starter pack prices ($5 for 5,000 credits). Calls that fail before work starts are refunded.

## Coverage today

Works for any country. Country-specific data: Indonesia and Singapore.

Leave `country` out to get every covered country, or pass one to narrow it.

Country pages with the official source: [Singapore prayer times API (MUIS)](https://apifor.dev/services/prayer-times/singapore/).

Sources, row counts and country-only fields per country: [`GET /v1/prayer-times/coverage`](https://apifor.dev/docs/reference/prayer-times/#get-prayer-times-coverage), free with your API key. [How coverage works](https://apifor.dev/docs/coverage/)

## Limits

- Methods: MWL, ISNA, Egypt, UmmAlQura, Karachi, Kemenag, JAKIM, MUIS and Diyanet. The default depends on the country, else MWL.
- Above about 48 degrees in summer, fajr and isha use the middle of the night rule and adjusted lists them.
- Without lat and lng, countries with no official timetable return an empty page.

## Sources and licences

- **[Kemenag Bimas Islam](https://bimasislam.kemenag.go.id)**: Public domain (government)
- **[MUIS Muslim Prayer Timetable (data.gov.sg)](https://data.gov.sg/datasets/d_a6a206cba471fe04b62dd886ef5eaf22/view)**: Singapore Open Data Licence
- **[Computed by APIFor](https://apifor.dev/sources)**: Computed (no third-party data)

### Attribution

- Contains information from Muslim Prayer Timetable accessed from data.gov.sg, made available under the terms of the Singapore Open Data Licence version 1.0.

## Also on MCP

Connect `https://mcp.apifor.dev/mcp` and your agent gets a tool for this service, billed the same way.

[MCP setup](https://apifor.dev/docs/mcp/)

## Questions

**What happened to the prayer times dataset?**

It is now this service, at the same path and the same 1 credit per call. Stored timetables keep their ids and fields.

**Which time zone are times in?**

The timezone you pass, else the zone of a single-zone country, else UTC. meta.timezone_source says which.

## Related services

[All services](https://apifor.dev/services/)

- [Hijri calendar converter API](https://apifor.dev/services/calendars/)
- [Sunrise, sunset and moon phase API](https://apifor.dev/services/sun/)
- [Quran text API](https://apifor.dev/services/quran/)
- [Bible text API](https://apifor.dev/services/bible/)
- [English dictionary API](https://apifor.dev/services/dictionary/)
- [Public holidays API](https://apifor.dev/services/holidays/)
