Open data (API)

The data Saat Tarih calculates, as public JSON files; no sign-up or API key needed.

Endpoints

PathContents
/api/v1/index.jsonList of endpoints and version information
/api/v1/holidays/{year}.jsonA 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}.jsonA province's prayer times for one year (fajr, sunrise, dhuhr, asr, maghrib, isha; Turkey time)
/api/v1/provinces.json81 provinces: slug, name, latitude, longitude
/api/v1/hijri.jsonTable of Hijri month starts (aligned with the Diyanet calendar)
/api/v1/astronomy/{year}.jsonA year's equinox and solstice instants, new and full moons, eclipses (UTC)

Holiday and astronomy files cover 2026–2031; prayer times cover 2026 and 2027. Province slugs are in provinces.json (e.g. istanbul, ankara, izmir).

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.

Choose which groups are on; you can change your choice at any time with the "Cookie preferences" link in the settings menu. Cookie policy · Privacy

Your cookie choice, language, theme, clock and tool settings, chosen location and world clock list are kept in this browser's local storage. They never reach a server; the site does not work without them.

Umami counts page visits and a few actions (browser, device, language, and the country and city derived from the IP address; the IP is not stored). No cookies are used. Off by default.

The weather is loaded from Open-Meteo (api.open-meteo.com, air-quality-api.open-meteo.com), the map on the zoomed globe from OpenStreetMap (tile.openstreetmap.org), nearby mosques from OpenStreetMap's Overpass service (overpass-api.de) and YouTube music you add to an alarm from YouTube (youtube-nocookie.com); your IP address reaches these services. Off by default.

Search the site

Your location

 

Your location stays on your device and is used on every page for prayer times, seasons and weather; it is not sent to the server.