Open data (API)
The data Saat Tarih calculates, as public JSON files; no sign-up or API key needed.
Endpoints
| Path | Contents |
|---|---|
/api/v1/index.json | List of endpoints and version information |
/api/v1/holidays/{year}.json | A year's public holidays, half-day eves, religious and special days (names in all site languages) and the Ramadan range |
/api/v1/prayer-times/{province}/{year}.json | A province's prayer times for one year (fajr, sunrise, dhuhr, asr, maghrib, isha; Turkey time) |
/api/v1/provinces.json | 81 provinces: slug, name, latitude, longitude |
/api/v1/hijri.json | Table of Hijri month starts (aligned with the Diyanet calendar) |
/api/v1/astronomy/{year}.json | A year's equinox and solstice instants, new and full moons, eclipses (UTC) |
Fields
- Dates are YYYY-MM-DD and times HH:MM (Turkey time, UTC+3); instants are ISO 8601 UTC.
- Holiday types: holiday (public holiday), half (half-day eve), religious (religious day), special (special day).
- In a prayer-times file each row of the days array is [date, fajr, sunrise, dhuhr, asr, maghrib, isha].
- In the Hijri table each row is [Gregorian date of the month start, Hijri year, Hijri month]; the last row is the day the table ends.
Example
Today's times for Istanbul with JavaScript:
const r = await fetch("https://time.bumba.tr/api/v1/prayer-times/istanbul/2026.json");
const { fields, days } = await r.json();
const today = new Date().toLocaleDateString("sv-SE", { timeZone: "Europe/Istanbul" });
console.log(fields, days.find((d) => d[0] === today));
Terms of use
- The data may be used under the Creative Commons Attribution 4.0 (CC BY 4.0) licence; credit "Saat Tarih (time.bumba.tr)" where you use it.
- Prayer times are calculated with the Diyanet method and may differ from the official times by 1–2 minutes; the Diyanet's times are authoritative.
- Religious days from 2028 on are a projection based on the Diyanet's long-term calendar.
- There is no key or sign-up; the files are static and cacheable. Please request them at a reasonable rate (once a day is enough).
- The data is updated whenever the site is published; if the format changes a new version (v2) is added and v1 is kept.