Skip to main content

Daily Panchanga

Calculate Vedic Panchanga for a given date and location. Returns Tithi, Nakshatra, Yoga, Karana, Vara (weekday), and auspicious and inauspicious periods for the day. Returns Tithi, Vara (weekday), Nakshatra, Yoga, and Karana for the birth date and location.

Endpoint

POST /v1/astro/panchanga

Request parameters

FieldTypeRequiredDescription
locationstring | nullNoCity name to resolve to lat/lon/tz automatically. Example: 'Mumbai' or 'New Delhi, India'. If provided, latitude, longitude and timezone are not required.
namestring | nullNoOptional. Name is not used in panchanga calculations.
datestringYesBirth date in YYYY-MM-DD format
timestring | nullNoBirth time in HH:MM 24-hour format. If omitted, sunrise chart is used as fallback.
latitudenumber | nullNoLatitude. Required if location not provided.
longitudenumber | nullNoLongitude. Required if location not provided.
timezonestring | nullNoIANA timezone. Required if location not provided.
ayanamsastringNoSidereal ayanamsa mode used in calculations

Example request

curl -X POST "https://api.asterwise.com/v1/astro/panchanga" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date":"1990-05-15","latitude":28.6139,"longitude":77.209,"timezone":"Asia/Kolkata"}'

Example response

{
"success": true,
"message": "success",
"data": {
"tithi": {
"number": 20,
"name": "Panchami",
"paksha": "Krishna",
"degrees_elapsed": 9.0905,
"degrees_remaining": 2.9095,
"end_time": "1990-05-15T06:09:28Z"
},
"vara": {
"number": 2,
"name": "Somvar",
"lord": "Moon",
"end_time": null
},
"nakshatra": {
"index": 20,
"name": "Uttara Ashadha",
"pada": 1,
"degrees_elapsed": 0.6146,
"degrees_remaining": 12.7187,
"end_time": "1990-05-16T00:41:05Z"
},
"yoga": {
"index": 22,
"name": "Shubha",
"is_inauspicious": false,
"degrees_elapsed": 4.1387,
"end_time": "1990-05-15T16:36:20Z"
},
"karana": {
"number": 40,
"name": "Taitila",
"degrees_elapsed": 3.0905,
"degrees_remaining": 2.9095,
"end_time": "1990-05-15T06:09:28Z"
}
}
}

Response fields

FieldTypeDescription
successbooleanTrue if the request succeeded
messagestringHuman-readable status message
dataobject
data.tithiobject
data.tithi.numberintegerTithi number, 1 to 30
data.tithi.namestringTithi name, e.g. Pratipada, Purnima, Amavasya
data.tithi.pakshastringPaksha — Shukla (waxing) or Krishna (waning)
data.tithi.degrees_elapsednumberDegrees completed within the current tithi
data.tithi.degrees_remainingnumberDegrees remaining until the next tithi
data.tithi.end_timestring | null
data.varaobject
data.vara.numberintegerWeekday number, 1 to 7
data.vara.namestringWeekday name in Sanskrit, e.g. Ravivar, Somvar
data.vara.lordstringPlanetary lord of the weekday, e.g. Sun, Moon
data.vara.end_timestring | null
data.nakshatraobject
data.nakshatra.indexintegerZero-based nakshatra index, 0 to 26
data.nakshatra.namestringNakshatra name, e.g. Ashwini, Revati
data.nakshatra.padaintegerPada number, 1 to 4
data.nakshatra.degrees_elapsednumberDegrees completed within the current nakshatra
data.nakshatra.degrees_remainingnumberDegrees remaining until the next nakshatra
data.nakshatra.end_timestring | null
data.yogaobject
data.yoga.indexintegerZero-based yoga index, 0 to 26
data.yoga.namestringYoga name, e.g. Vishkumbha, Shiva
data.yoga.is_inauspiciousbooleanTrue if this yoga is considered inauspicious
data.yoga.degrees_elapsednumberDegrees completed within the current yoga
data.yoga.end_timestring | null
data.karanaobject
data.karana.numberintegerKarana number, 1 to 60
data.karana.namestringKarana name
data.karana.degrees_elapsednumberDegrees completed within the current karana
data.karana.degrees_remainingnumberDegrees remaining until the next karana
data.karana.end_timestring | null

Errors

CodeDescriptionReference
authentication_failedMissing or invalid API key.authentication_failed
ephemeris_unavailableUpstream ephemeris service error.ephemeris_unavailable
insufficient_tierAPI key tier does not include this endpoint.insufficient_tier
internal_errorUnexpected server error.internal_error
ip_rate_limit_exceededToo many requests in a short window.ip_rate_limit_exceeded
payload_too_largeRequest body exceeds the size limit.payload_too_large
resource_not_foundReferenced resource was not found.resource_not_found
validation_errorRequest body failed schema validation.validation_error