Prayer Times All docs

Prayer Times API Reference

2 routes under /v1/prayer-times. Base URL https://api.apifor.dev, authenticated with x-api-key, one credit per request. Coverage and licence are on the Prayer Times page.

GET/v1/prayer-times

List prayer times with filters and paging.

ParameterInTypeRules
pagequeryintegermin 1 · default 1
limitqueryinteger1 to 200 · default 50
countryquerystringISO 3166-1 alpha-2
regency_idquerystringNone
datequerystringNone
GET/v1/prayer-times
curl 'https://api.apifor.dev/v1/prayer-times' \
  -G -d country=ID -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": [
    {
      "country_code": "ID",
      "id": "1101_2026-01-01",
      "regency_id": "1109",
      "date": "2026-01-01",
      "imsak": "05:07",
      "fajr": "05:17",
      "sunrise": "06:35",
      "dhuha": "07:04",
      "dhuhr": "12:41",
      "asr": "16:05",
      "maghrib": "18:41",
      "isha": "19:55",
      "source": "equran.id",
      "created_at": "2026-07-02T00:00:00Z"
    }
  ]
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable
GET/v1/prayer-times/{id}

Find prayer times by identifier.

ParameterInTypeRules
id *pathstringNone
GET/v1/prayer-times/{id}
curl 'https://api.apifor.dev/v1/prayer-times/{id}' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "country_code": "ID",
    "id": "1101_2026-01-01",
    "regency_id": "1109",
    "date": "2026-01-01",
    "imsak": "05:07",
    "fajr": "05:17",
    "sunrise": "06:35",
    "dhuha": "07:04",
    "dhuhr": "12:41",
    "asr": "16:05",
    "maghrib": "18:41",
    "isha": "19:55",
    "source": "equran.id",
    "created_at": "2026-07-02T00:00:00Z"
  }
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable

Error handling · Rate limits · Source licences