v1.0.1 | Last updated: January 3, 2026
Prayer Times İmsakiyem API is a free API service that provides daily, weekly, monthly, and yearly prayer times for countries worldwide, published by the Presidency of Religious Affairs of Türkiye.
Key Features:
✅ Hierarchical Country/City/District data access
✅ Dynamic time range options for prayer times
# List districts of Ankara
curl -X GET "https://ezanvakti.imsakiyem.com/api/locations/districts?stateId=506" \
-H "Accept: application/json"
# List yearly prayer times for Ankara/Polatlı district (ID:9220)
curl -X GET "https://ezanvakti.imsakiyem.com/api/prayer-times/9220/yearly" \
-H "Accept: application/json"
January 3, 2026:
| Endpoint | Method | Description |
|---|---|---|
/api/locations/countries |
GET | Lists all countries |
/api/locations/countries/{countryId} |
GET | Country details |
/api/locations/search/countries |
GET | Search countries |
Parameters:
countryId (Path, Required) q (Query, Optional)Example Usage:
GET /api/locations/countries/2 HTTP/1.1
Host: ezanvakti.imsakiyem.com
| Endpoint | Method | Description |
|---|---|---|
/api/locations/states |
GET | States by country ID |
/api/locations/states/{stateId} |
GET | State details |
/api/locations/search/states |
GET | Search states |
Parameters:
countryId (Query, Required) stateId (Path, Required) q (Query, Optional)| Endpoint | Method | Description |
|---|---|---|
/api/locations/districts |
GET | Districts by state ID |
/api/locations/districts/{districtId} |
GET | District details |
/api/locations/search/districts |
GET | Search districts |
Parameters:
stateId (Query, Required) districtId (Path, Required) q (Query, Optional)GET /api/prayer-times/{districtId}/{period} HTTP/1.1
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
districtId |
Path | Yes | District ID |
period |
Path | Yes | daily/weekly/monthly/yearly/range default: monthly |
startDate |
Query | Optional | YYYY-MM-DD |
endDate |
Query | Optional | YYYY-MM-DD |
page |
Query | No | Default: 1 |
limit |
Query | No | Default: 100 |
Example Request:
curl -X GET "https://ezanvakti.imsakiyem.com/api/prayer-times/9147/monthly?startDate=2025-02-15" \
-H "Accept: application/json"
Note: monthly and yearly return the month and year within the specified time range. (e.g., requesting monthly data for March 16 will return data for March 1-31)
application/jsonImportant Notes:
| HTTP Code | Type | Solution Suggestion |
|---|---|---|
| 400 | Invalid Parameter | Check required parameters |
| 404 | Resource Not Found | Verify ID values |
| 429 | Limit Exceeded | Wait 5 minutes and try again |
| 500 | Server Error |
Swagger Documentation
Swagger JSON Documentation
Postman Collection
Open Data Set - JSON format prayer times data for Türkiye and KKTC (v1.0.0 Release)
This project is licensed under the GNU General Public License v3.0 (GPL-3.0). You may use, modify, and distribute this software. However:
You can contact us through the following channels for errors, suggestions, requests, and complaints.
| Channel | Details |
|---|---|
| karademirbayburt@gmail.com | |
| Mustafa Karademir |
Note: All dates must be in ISO 8601 (YYYY-MM-DD) format. Regional data requires hierarchical access:
lang=tr/en) support