Prayer Times İmsakiyem API Documentation


v1.0.1 | Last updated: January 3, 2026

Language / Dil: 🇹🇷 Türkçe | 🇬🇧 English

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


Quick Start

# 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"

📋 Updates

January 3, 2026:


API Endpoints

🌍 Geographic Location Data

Countries

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:

Example Usage:

GET /api/locations/countries/2 HTTP/1.1
Host: ezanvakti.imsakiyem.com

States

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:


Districts

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:


🕋 Prayer Times

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)

⚠️ Usage Limitations


Logging Policy

Important Notes:


❌ Error Handling

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

API Documentation Resources

Swagger Documentation
Swagger JSON Documentation
Postman Collection
Open Data Set - JSON format prayer times data for Türkiye and KKTC (v1.0.0 Release)

📝 License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0). You may use, modify, and distribute this software. However:

Contact

You can contact us through the following channels for errors, suggestions, requests, and complaints.

Channel Details
Email karademirbayburt@gmail.com
LinkedIn Mustafa Karademir

Note: All dates must be in ISO 8601 (YYYY-MM-DD) format. Regional data requires hierarchical access:

Planned Features

  1. Geographic Coordinate Support
  1. Multi-language Response
  1. Ramadan and special times integration
  2. Sun, moon and qibla data
  3. Real-time notifications via WebSocket
  4. Mobile SDKs (Android/iOS)
  5. Prayer times data by calculation methods