Chand Ki Tarikh API
A free, public JSON API for today's chand ki tarikh (Islamic Hijri date) in India. No API key, CORS-enabled, updated daily. Use it to show the live Hijri date on your own site or app.
Freeno key, no signup
JSONCORS-enabled
Dailycached, fast (~10ms)
IndiaHanafi · IST
Base URL
https://chandkitarikh.today/api.php
Endpoints
1. Today's date
Returns today's chand ki tarikh for India.
GET https://chandkitarikh.today/api.php?endpoint=today
Example response:
{
"success": true,
"data": {
"hijri": {
"day": 13,
"month": {
"number": 2,
"en": "Safar",
"ar": "صَفَر"
},
"year": 1448,
"designation": "AH",
"formatted": "13 Safar 1448 AH"
},
"gregorian": {
"date": "2026-07-28",
"weekday": "Tuesday",
"formatted": "Tuesday, 28 July 2026"
},
"method": "Hanafi",
"region": "India",
"timezone": "Asia/Kolkata"
},
"source": "https://chandkitarikh.today"
}
2. Convert Gregorian → Hijri
Convert any Gregorian date (YYYY-MM-DD) to its Hijri date.
GET https://chandkitarikh.today/api.php?endpoint=convert&date=2026-06-30
3. Hijri month calendar
Returns every day of a Hijri month with its matching Gregorian date.
GET https://chandkitarikh.today/api.php?endpoint=calendar&month=1&year=1448
Code examples
JavaScript (fetch)
fetch('https://chandkitarikh.today/api.php?endpoint=today')
.then(r => r.json())
.then(d => console.log(d.data.hijri.formatted));
// "13 Safar 1448 AH"
PHP
$d = json_decode(file_get_contents('https://chandkitarikh.today/api.php?endpoint=today'), true);
echo $d['data']['hijri']['formatted'];
cURL
curl "https://chandkitarikh.today/api.php?endpoint=today"
Attribution (please)
This API is free to use. If you display our data, please add a visible link back to chandkitarikh.today. It keeps the API free for everyone.
Notes
- Dates are calculated for India (New Delhi, IST, Hanafi method) and coordinated with local moon sighting.
- Responses are cached and refreshed daily; please don't poll more than a few times per minute.
- For Ramadan and the two Eids, confirm the date with your local moon-sighting committee.