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-timesList prayer times with filters and paging.
| Parameter | In | Type | Rules |
|---|---|---|---|
| page | query | integer | min 1 · default 1 |
| limit | query | integer | 1 to 200 · default 50 |
| country | query | string | ISO 3166-1 alpha-2 |
| regency_id | query | string | None |
| date | query | string | None |
curl 'https://api.apifor.dev/v1/prayer-times' \
-G -d country=ID -d limit=1 \
-H 'x-api-key: YOUR_API_KEY'{
"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 parameters404Record not found500Dataset unavailable
GET
/v1/prayer-times/{id}Find prayer times by identifier.
| Parameter | In | Type | Rules |
|---|---|---|---|
| id * | path | string | None |
curl 'https://api.apifor.dev/v1/prayer-times/{id}' \
-H 'x-api-key: YOUR_API_KEY'{
"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 parameters404Record not found500Dataset unavailable