Build panchangam features into your app, website, or blog — for free. No signup, no API key. JSON endpoint + drop-in JavaScript widget. Use the data, attribute Nitya Panchangam.
GET https://nityapanchangam.com/api/panchangam.php| Param | Required | Example | Description |
|---|---|---|---|
date |
No (default today) | 2026-06-15 |
YYYY-MM-DD |
city |
No (default hyderabad) | chennai |
Predefined city slug |
lat |
No (with lng) | 17.385 |
Latitude (-90 to 90) |
lng |
No (with lat) | 78.486 |
Longitude (-180 to 180) |
hyderabad, bangalore, chennai, mumbai, delhi, kolkata, pune, ahmedabad,
jaipur, newyork, london, singapore, dubai. For other cities, pass
lat + lng.
curl "https://nityapanchangam.com/api/panchangam.php?date=2026-06-15&city=hyderabad"
{
"date": "2026-06-15",
"city": "Hyderabad",
"latitude": 17.385,
"longitude": 78.486,
"timezone": "UTC+5.5",
"ayanamsa": "Lahiri (Chitrapaksha)",
"ayanamsa_value": 23.86,
"tithi": { "name": "Chaturthi (Krishna)", "number": 19 },
"nakshatra": { "name": "Bharani", "pada": 2 },
"yoga": { "name": "Atiganda" },
"karana": { "name": "Taitila" },
"vara": { "name": "Monday", "weekday": 1 },
"sun": {
"sunrise": "5:41 AM",
"sunset": "6:50 PM",
"noon": "12:15 PM"
},
"muhurta": {
"rahu_kalam": "7:19 AM – 8:57 AM",
"yamagandam": "10:35 AM – 12:14 PM",
"abhijit_muhurtam": "11:51 AM – 12:39 PM"
},
"sun_longitude": 59.234,
"moon_longitude": 38.456,
"attribution": {
"source": "Nitya Panchangam Free API",
"url": "https://nityapanchangam.com/api/",
"note": "Free under CC-BY: attribution required.",
"docs": "https://nityapanchangam.com/api/"
},
"rate_limit": { "daily_quota": 1000, "remaining": 999 }
}
fetch('https://nityapanchangam.com/api/panchangam.php?city=delhi')
.then(r => r.json())
.then(data => console.log(data.tithi.name));
import requests
r = requests.get('https://nityapanchangam.com/api/panchangam.php', params={'city':'mumbai','date':'2026-06-15'})
print(r.json()['nakshatra']['name'])
$data = json_decode(file_get_contents('https://nityapanchangam.com/api/panchangam.php?city=chennai'), true);
echo $data['tithi']['name'];
Drop this snippet anywhere — your website, blog, dashboard. Single line. Auto-styled. Customizable city + theme.
<div id="np-panchangam" data-city="hyderabad" data-theme="light"></div> <script src="https://nityapanchangam.com/widget.js" async></script>
| Attribute | Values | Default |
|---|---|---|
data-city |
Any supported city slug | hyderabad |
data-theme |
light / dark / auto |
light |
data-fields |
Comma-separated:
tithi,nakshatra,yoga,karana,sunrise,sunset,rahu,yamagandam,abhijit
|
all |
The API + widget are free under CC-BY 4.0. Just include a backlink to Nitya Panchangam:
<p>Panchangam data by <a href="https://nityapanchangam.com">Nitya Panchangam</a></p>
This free API uses simplified astronomical models (VSOP87 + ELP-2000 truncated series) accurate to ~1 degree for years 1900-2100. Most users will find this perfectly accurate for daily panchangam display.
For higher precision (sub-arcminute) or commercial use, contact us for the Pro API.
Need 10,000+ requests/day? Custom city support? Commercial license? Contact us at hello@nityapanchangam.com.
Try API Now →digitalshala4-21). Editorial independence policy →