Panchang & timing
Panchang
POST/v1/panchang
Tithi, nakshatra, yoga, karana and vara with exact start and end times, plus Sun and Moon times, masa and samvat.
- Sun and Moon times are sunrise, sunset, moonrise and moonset.
- Also returns Rahu Kaal, Yamaganda, Gulika, Durmuhurta, Abhijit and Brahma muhurta.
- Near the poles the Sun may not rise or set on a date.
- Then the Sun times and the windows built on them are null.
Request
| Field | Type | Description |
|---|---|---|
| date | stringrequired | YYYY-MM-DD |
| time | string | HH:MM; default is local sunrise |
| lat | number | Latitude, -90 to 90 (north positive). Send lat, lon and tz, or place, or place_id |
| lon | number | Longitude, -180 to 180 (east positive) |
| tz | string | IANA zone (Asia/Kolkata) or offset (+05:30). Needed with lat and lon; filled in with a place |
| place | string | Place name instead of lat, lon and tz, for example Gorakhpur, Uttar Pradesh. If the name is not unique: ambiguous_place with choices |
| place_id | integer | The id of a place from place search, instead of lat, lon and tz |
| ayanamsa | string | lahiri (default) | raman | krishnamurti |
Example
curl -X POST "https://api.bestastroapi.in/v1/panchang" \
-H "x-api-key: $BESTASTRO_KEY" \
-H "content-type: application/json" \
-d '{"date":"2026-11-22","lat":28.6139,"lon":77.209,"tz":"Asia/Kolkata"}'Response
[]is a list.{key}is a key that varies.- An optional field can be missing. That means it does not apply.
- Fields marked “or null” are always there but can be empty.
- Times carry the UTC offset of the place. A time after midnight has the next date.
| Field | Type | Meaning |
|---|---|---|
| date | stringYYYY-MM-DD | Date you sent |
| computed_at | stringISO 8601 | Moment the values are for |
| computed_for | string | Which moment that issunrise | requested time |
| place | object | Place you sent |
| place.lat | numberdegrees | Latitude |
| place.lon | numberdegrees | Longitude |
| place.tz | string | Zone |
| place.id | integer | Id of the place we looked up. Only when you sent place or place_id, like the next two optional |
| place.name | string | Its name optional |
| place.label | string | Its name with district or state and country optional |
| vara | object | Vedic weekday, from sunrise to sunrise |
| vara.number | integer | 1 = Sunday to 7 = Saturday |
| vara.name | string | Sanskrit name, for example Ravivara |
| vara.weekday | string | English nameSunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
| tithi | object | Lunar day |
| tithi.number | integer | 1 to 30: 1-15 Shukla, 16-30 Krishna |
| tithi.name | string | Name |
| tithi.start | stringISO 8601 | When it started |
| tithi.end | stringISO 8601 | When it ends |
| tithi.paksha | string | Bright or dark halfShukla | Krishna |
| nakshatra | object | Moon's nakshatra |
| nakshatra.number | integer | 1 = Ashwini to 27 = Revati |
| nakshatra.name | string | Name |
| nakshatra.start | stringISO 8601 | When it started |
| nakshatra.end | stringISO 8601 | When it ends |
| nakshatra.pada | integer | Quarter, 1 to 4 |
| nakshatra.lord | string | Vimshottari lord |
| yoga | object | Panchang yoga |
| yoga.number | integer | 1 to 27 |
| yoga.name | string | Name |
| yoga.start | stringISO 8601 | When it started |
| yoga.end | stringISO 8601 | When it ends |
| karana | object | Half tithi |
| karana.number | integer | 1 to 60 in the lunar month |
| karana.name | string | Name |
| karana.start | stringISO 8601 | When it started |
| karana.end | stringISO 8601 | When it ends |
| karana.bhadra | boolean | True for Vishti (Bhadra) karana |
| sunrise | string or nullISO 8601 | Sunrise |
| sunset | string or nullISO 8601 | Sunset |
| moonrise | string or nullISO 8601 | Moonrise on this date. Null when the Moon does not rise |
| moonset | string or nullISO 8601 | Moonset on this date. Null when the Moon does not set |
| day_length_hours | number or nullhours | Sunrise to sunset |
| sun_sign | Sign | Sidereal Sun sign |
| moon_sign | Sign | Sidereal Moon sign |
| masa | object | Lunar month |
| masa.amanta | string | Name when months end at amavasya |
| masa.purnimanta | string | Name when months end at purnima |
| masa.adhika | boolean | Leap month |
| ritu | string | SeasonVasanta | Grishma | Varsha | Sharad | Hemanta | Shishira |
| samvat | object | Year counts |
| samvat.shaka | integer | Shaka samvat |
| samvat.vikram | integer | Vikram samvat |
| ayanamsa | object | Ayanamsa used |
| ayanamsa.name | string | Ayanamsa namelahiri | raman | krishnamurti |
| ayanamsa.mean_degree | numberdegrees | Mean ayanamsa |
| auspicious | object | Good periods |
| auspicious.abhijit | TimeWindow or null | Abhijit muhurta |
| auspicious.brahma_muhurta | TimeWindow or null | Brahma muhurta |
| inauspicious | object | Periods to avoid |
| inauspicious.rahu_kaal | TimeWindow or null | Rahu Kaal |
| inauspicious.yamaganda | TimeWindow or null | Yamaganda |
| inauspicious.gulika | TimeWindow or null | Gulika Kaal |
| inauspicious.durmuhurta | TimeWindow[] | Durmuhurta, one or two periods. Empty when the Sun does not rise or set |
Objects used above
Sign A zodiac sign (rashi).
| Field | Type | Meaning |
|---|---|---|
| number | integer | 1 = Aries to 12 = Pisces |
| name | string | English name |
| rashi | string | Sanskrit name, for example Mesha |
| lord | string | Planet that rules the sign |
TimeWindow A period of time at the place.
| Field | Type | Meaning |
|---|---|---|
| start | stringISO 8601 | Start |
| end | stringISO 8601 | End |
Raw sample
200 application/json
{
"auspicious": {
"abhijit": {
"end": "2026-11-22T12:28:19+05:30",
"start": "2026-11-22T11:45:53+05:30"
},
"brahma_muhurta": {
"end": "2026-11-22T05:55:19+05:30",
"start": "2026-11-22T05:01:46+05:30"
}
},
"ayanamsa": {
"mean_degree": 24.232699,
"name": "lahiri"
},
"computed_at": "2026-11-22T06:48:52+05:30",
"computed_for": "sunrise",
"date": "2026-11-22",
"day_length_hours": 10.6079,
"inauspicious": {
"durmuhurta": [
{
"end": "2026-11-22T16:42:55+05:30",
"start": "2026-11-22T16:00:29+05:30"
}
],
"gulika": {
"end": "2026-11-22T16:05:47+05:30",
"start": "2026-11-22T14:46:14+05:30"
},
"rahu_kaal": {
"end": "2026-11-22T17:25:21+05:30",
"start": "2026-11-22T16:05:47+05:30"
},
"yamaganda": {
"end": "2026-11-22T13:26:40+05:30",
"start": "2026-11-22T12:07:06+05:30"
}
},
"karana": {
"bhadra": false,
"end": "2026-11-22T15:52:20+05:30",
"name": "Kaulava",
"number": 25,
"start": "2026-11-22T04:57:00+05:30"
},
"masa": {
"adhika": false,
"amanta": "Kartika",
"purnimanta": "Kartika"
},
"moon_sign": {
"lord": "Mars",
"name": "Aries",
"number": 1,
"rashi": "Mesha"
},
"moonrise": "2026-11-22T15:25:18+05:30",
"moonset": "2026-11-22T04:05:00+05:30",
"nakshatra": {
"end": "2026-11-23T04:15:53+05:30",
"lord": "Ketu",
"name": "Ashwini",
"number": 1,
"pada": 1,
"start": "2026-11-22T05:55:08+05:30"
},
"place": {
"lat": 28.6139,
"lon": 77.209,
"tz": "Asia/Kolkata"
},
"ritu": "Sharad",
"samvat": {
"shaka": 1948,
"vikram": 2083
},
"sun_sign": {
"lord": "Mars",
"name": "Scorpio",
"number": 8,
"rashi": "Vrishchika"
},
"sunrise": "2026-11-22T06:48:52+05:30",
"sunset": "2026-11-22T17:25:21+05:30",
"tithi": {
"end": "2026-11-23T02:37:37+05:30",
"name": "Trayodashi",
"number": 13,
"paksha": "Shukla",
"start": "2026-11-22T04:57:00+05:30"
},
"vara": {
"name": "Ravivara",
"number": 1,
"weekday": "Sunday"
},
"yoga": {
"end": "2026-11-22T23:29:44+05:30",
"name": "Vyatipata",
"number": 17,
"start": "2026-11-22T02:30:56+05:30"
}
}Real output for the example request above.
Errors use one format. See error codes. Also in openapi.json.