Skip to main content
POST/v1/astro/panchanga/calendar

Monthly Panchanga calendar

Panchanga for every day of a month at a location, one entry per day. Each day keeps the sunrise tithi, vara, nakshatra, yoga, karana and Rahu Kaal, and adds sunrise, sunset, moonrise, moonset, paksha, the lunar month (amanta and purnimanta, with Adhik months), Bhadra windows, and every tithi, nakshatra, yoga and karana active between that sunrise and the next with ISO start and end times. A kshaya tithi (one no sunrise touches) appears on the day it runs, flagged is_kshaya; a tithi that holds two sunrises is flagged is_vriddhi on both days. Give year (1900-2100), month (1-12) and either location (a city name) or lat and lon (also accepted as latitude and longitude); timezone defaults to Asia/Kolkata.

GET works too

GET /v1/astro/panchanga/calendar: Same answer as POST /v1/astro/panchanga/calendar, with the same fields as query parameters (latitude and longitude for lat and lon).

Request parameters​

yearrequired
integer
Year, 1900-2100.
monthrequired
integer
Month, 1-12.
locationoptional
string | null
City name, used when lat and lon are not given.
latoptional
number | null
Latitude in decimal degrees, north positive. Also accepted as latitude.
lonoptional
number | null
Longitude in decimal degrees, east positive. Also accepted as longitude.
timezoneoptional
string
IANA timezone for the location
ayanamsaoptional
string
Ayanamsa system: lahiri (default), raman, kp, or tropical for a zero offset, as on every other chart endpoint

Response fields​

success
boolean
True if the request succeeded
message
string
Human-readable status message
data
object
data.year
integer
Year of the calendar.
data.month
integer
Month of the calendar, 1 to 12.
data.timezone
string
IANA timezone used for calculations.
data.ayanamsa
string
Ayanamsa system used.
data.days
array[object]
Panchanga data for every day of the month.
data.days[].date
string
Date in YYYY-MM-DD format.
data.days[].tithi
object
data.days[].tithi.name
string
Tithi name.
data.days[].tithi.id
string | null
Fixed id of name (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.days[].tithi.label
string | null
name in the answer's language (see https://docs.asterwise.com/reference/names-and-ids/). Only in answers asked for in a language other than English; show it to people, never store or compare it.
data.days[].tithi.number
integer
Tithi number, 1 to 30.
data.days[].tithi.paksha
string
Shukla or Krishna.
data.days[].tithi.paksha_id
string | null
Fixed id of paksha (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.days[].tithi.paksha_label
string | null
paksha in the answer's language (see https://docs.asterwise.com/reference/names-and-ids/). Only in answers asked for in a language other than English; show it to people, never store or compare it.
data.days[].tithi.end_time
string | null
Tithi end time if available.
data.days[].vara
object
data.days[].vara.name
string
Weekday name in Sanskrit.
data.days[].vara.id
string | null
Fixed id of name (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.days[].vara.label
string | null
name in the answer's language (see https://docs.asterwise.com/reference/names-and-ids/). Only in answers asked for in a language other than English; show it to people, never store or compare it.
data.days[].vara.number
integer
Weekday number, 1 to 7.
data.days[].vara.lord
string | null
Planetary lord of the weekday.
data.days[].vara.lord_id
string | null
Fixed id of lord (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.days[].vara.lord_label
string | null
lord in the answer's language (see https://docs.asterwise.com/reference/names-and-ids/). Only in answers asked for in a language other than English; show it to people, never store or compare it.
data.days[].nakshatra
object
data.days[].nakshatra.name
string
Nakshatra name.
data.days[].nakshatra.id
string | null
Fixed id of name (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.days[].nakshatra.label
string | null
name in the answer's language (see https://docs.asterwise.com/reference/names-and-ids/). Only in answers asked for in a language other than English; show it to people, never store or compare it.
data.days[].nakshatra.index
integer
Zero-based nakshatra index, 0 to 26.
data.days[].nakshatra.pada
integer
Pada number, 1 to 4.
data.days[].nakshatra.end_time
string | null
Nakshatra end time if available.
data.days[].yoga
object
data.days[].yoga.name
string
Yoga name.
data.days[].yoga.id
string | null
Fixed id of name (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.days[].yoga.label
string | null
name in the answer's language (see https://docs.asterwise.com/reference/names-and-ids/). Only in answers asked for in a language other than English; show it to people, never store or compare it.
data.days[].yoga.index
integer
Zero-based yoga index, 0 to 26.
data.days[].yoga.is_inauspicious
boolean
True if this yoga is inauspicious.
data.days[].yoga.end_time
string | null
Yoga end time if available.
data.days[].karana
object
data.days[].karana.name
string
Karana name.
data.days[].karana.id
string | null
Fixed id of name (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.days[].karana.label
string | null
name in the answer's language (see https://docs.asterwise.com/reference/names-and-ids/). Only in answers asked for in a language other than English; show it to people, never store or compare it.
data.days[].karana.number
integer
Karana number.
data.days[].karana.end_time
string | null
Karana end time if available.
data.days[].rahu_kaal
object
data.days[].rahu_kaal.start
string
Rahu Kaal start time in HH:MM local time.
data.days[].rahu_kaal.start_at
string | null
Rahu Kaal start time, ISO 8601 local time with date and UTC offset.
data.days[].rahu_kaal.start_utc
string | null
Rahu Kaal start time, ISO 8601 UTC with Z.
data.days[].rahu_kaal.end
string
Rahu Kaal end time in HH:MM local time.
data.days[].rahu_kaal.end_at
string | null
Rahu Kaal end time, ISO 8601 local time with date and UTC offset.
data.days[].rahu_kaal.end_utc
string | null
Rahu Kaal end time, ISO 8601 UTC with Z.
data.days[].sunrise
string | null
Sunrise, ISO 8601 local time with offset.
data.days[].sunset
string | null
Sunset, ISO 8601 local time with offset.
data.days[].moonrise
string | null
First moonrise before the next sunrise. Null if none.
data.days[].moonset
string | null
First moonset before the next sunrise. Null if none.
data.days[].paksha
string | null
Paksha at sunrise.
data.days[].paksha_id
string | null
Fixed id of paksha (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.days[].paksha_label
string | null
paksha in the answer's language (see https://docs.asterwise.com/reference/names-and-ids/). Only in answers asked for in a language other than English; show it to people, never store or compare it.
data.days[].masa
Masa | null
Lunar month at sunrise, amanta and purnimanta.
data.days[].tithis
array[DayTithi] | null
Every tithi active between this sunrise and the next.
data.days[].nakshatras
array[DayNakshatra] | null
Every nakshatra active between this sunrise and the next.
data.days[].yogas
array[DayYoga] | null
Every yoga active between this sunrise and the next.
data.days[].karanas
array[DayKarana] | null
Every karana active between this sunrise and the next.
data.days[].bhadra
array[BhadraWindow] | null
Bhadra (Vishti karana) windows during the day.
data.days[].moon_rashi
array[SignSpan] | null
Every sign the Moon is in between this sunrise and the next, with start and end times: sidereal for the request's ayanamsa, tropical when ayanamsa is tropical.
key_labels
object | null
Labels of the names and ids this answer uses as map keys ({"Sun": ...} -> {"Sun": "सूर्य"}, {"varna": ...} -> {"varna": "वर्ण"}), in the answer's language (see https://docs.asterwise.com/reference/names-and-ids/). Only in answers asked for in a language other than English; the keys themselves never change.

Errors​

Invalid API key format.
API key is missing. Include it in the Authorization header as 'Bearer YOUR_KEY'.
The provided API key was not found. Verify the key in your Asterwise dashboard.
This API key has been revoked.
Too many requests per minute. Please slow down.
Confirm your email first. Open the link we emailed you, or sign in at asterwise.com/dashboard to send a new one.
Something went wrong on our end. Please try again, or contact [email protected] if the problem persists. Include your request_id when contacting support.
Too many requests from this IP address. Please slow down.
Monthly API call limit reached. Upgrade your plan to continue.
Request body exceeds maximum allowed size of 64KB.
Your subscription has expired. Please renew at asterwise.com/dashboard to continue.
The request couldn't be processed. See the 'details' field for specific field-level issues.