Open data · Pakistan

Hijri calendar and prayer times, as JSON

A verified, auditable archive of Pakistan's sighted Hijri month starts with a calculated fallback, plus locally computed prayer times. Every date carries a confidence level, and every confirmed month cites its sources.

Base URL
https://shaheeranser.github.io/hijri-api

Routes

All routes are GET and served with access-control-allow-origin: *, so browsers can fetch them directly.

Paths follow /prayer/{city}/{profile}/{year}.json. Cities: karachi, lahore, peshawar. Profiles: sunni_hanafi, sunni_asr1 (earlier Asr), shia_jafari.

Confidence

confirmed
A verified start date in overrides.json.
estimated
A past month with no verified entry; from the baseline calculation.
predicted
A future month; from the baseline calculation.
unconfirmed
The last day of a month, where the sighting decides whether a 30th day exists.

Example

One day from /hijri/calendar/1448.json:

{
  "hijri": "1448-04-25",
  "year": 1448,
  "month": 4,
  "day": 25,
  "month_name": { "en": "Rabi al-Thani", "ur": "ربیع الثانی" },
  "confidence": "predicted"
}