Skip to main content

Free Panchangam API + Embeddable Widget

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.

1. JSON API

Endpoint: GET https://nityapanchangam.com/api/panchangam.php
Rate limit: 1000 requests/IP/day (free tier — for non-commercial use)
License: CC-BY 4.0 — attribution required
CORS: Open (works from browser, Node.js, anywhere)

Query Parameters

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)

Supported Cities (predefined)

hyderabad, bangalore, chennai, mumbai, delhi, kolkata, pune, ahmedabad, jaipur, newyork, london, singapore, dubai. For other cities, pass lat + lng.

Example Request

curl "https://nityapanchangam.com/api/panchangam.php?date=2026-06-15&city=hyderabad"

Example Response

{
  "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 }
}

Code Examples

JavaScript (Browser / Node)

fetch('https://nityapanchangam.com/api/panchangam.php?city=delhi')
  .then(r => r.json())
  .then(data => console.log(data.tithi.name));

Python

import requests
r = requests.get('https://nityapanchangam.com/api/panchangam.php', params={'city':'mumbai','date':'2026-06-15'})
print(r.json()['nakshatra']['name'])

PHP

$data = json_decode(file_get_contents('https://nityapanchangam.com/api/panchangam.php?city=chennai'), true);
echo $data['tithi']['name'];

2. Embeddable Widget

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>

Widget Options

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

Live Demo

3. Attribution

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>

4. Accuracy + Limitations

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.

5. Commercial Use / Higher Limits

Need 10,000+ requests/day? Custom city support? Commercial license? Contact us at hello@nityapanchangam.com.

Try API Now →

తెలుగు పంచాంగం 2026 — Quick Links to Calendar, Mantras, Pilgrimage & Spiritual Content

2026-27 Calendar

Vrat & Date Lists

Mantras & Stotras

Pilgrimage & Temples

Doshas & Astrology

Daily & Other

Library & Tools

Affiliate disclosure: Nitya Panchangam is a participant in the Amazon Services LLC Associates Program. As an Amazon Associate we earn from qualifying purchases at no extra cost to you. Some product links on this site (e.g., Rudraksha, gemstones, puja samagri) are affiliate links (tag: digitalshala4-21). Editorial independence policy →