Panchang widget & API
Free for temples, community sites and blogs — please keep the attribution link
1. Embed the widget
Copy this code into your page's HTML:
Preview
The widget sets no cookies, loads nothing from third parties and needs no JavaScript. Times follow the selected city's sunrise and time zone.
2. Read-only JSON API (v1)
| Endpoint | Parameters |
|---|---|
GET /api/v1/panchang | city or lat,lon,tz; date=YYYY-MM-DD; mp=amanta|purnimanta |
GET /api/v1/choghadiya | same as above |
GET /api/v1/festivals | city, year (1951–2048) |
GET /api/v1/cities | q (optional search) |
Example: /api/v1/panchang?city=ahmedabad
- All times are ISO 8601 in the location's time zone. Every response includes
metawith engine/rules version, ayanamsa and a disclaimer. - Without a key: 60 requests per 10 minutes per IP. With a free partner key (header
X-API-Key): a daily quota and CORS for your domain. - Please cache responses (Panchang for a date never changes within an engine version) and show “Source: Yakin Jani” with a link.
- Educational use. Festival observance can differ by region and family tradition; do not present results as religious rulings.
