1. Services
  2. 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-times1 creditAbout $0.001

Try it

GET/v1/prayer-times
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
{
  "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

EndpointCreditsAbout
GET /v1/prayer-times1 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).

Sources, row counts and country-only fields per country: GET /v1/prayer-times/coverage, free with your API key. How coverage works

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.

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