POST/v1/astro/panchanga/choghadiya
Choghadiya periods
Calculate all 16 Choghadiya periods (8 day + 8 night) for a given date and location. Each period is classified (e.g. highly auspicious for Amrit, good, beneficial, neutral, or inauspicious) with the ruling planet.
GET works tooGET /v1/astro/panchanga/choghadiya: Same answer as the POST route with the same fields as query parameters; cacheable (public, 10 minutes). Current-moment flags such as is_current may lag by up to the cache age.
Request parameters
daterequired
string
Date in YYYY-MM-DD format
locationoptional
string | null
City name. Example: 'Mumbai'
latitudeoptional
number | null
Latitude in decimal degrees, north positive. Use with longitude and timezone instead of location.
longitudeoptional
number | null
Longitude in decimal degrees, east positive. Use with latitude and timezone instead of location.
timezoneoptional
string | null
IANA timezone string
Response fields
success
boolean
True if the request succeeded
message
string
Human-readable status message
data
object
data.status
string
ok, or no_sunrise when the place has no sunrise or sunset on that date (polar latitudes): the window fields are then null.
data.status_detail
string | null
Plain-English reason when status is not ok.
data.date
string
Date for which Choghadiya is calculated (YYYY-MM-DD).
data.sunrise
string | null
Sunrise time in HH:MM local time.
data.sunrise_at
string | null
Sunrise time, ISO 8601 local time with date and UTC offset.
data.sunrise_utc
string | null
Sunrise time, ISO 8601 UTC with Z.
data.sunset
string | null
Sunset time in HH:MM local time.
data.sunset_at
string | null
Sunset time, ISO 8601 local time with date and UTC offset.
data.sunset_utc
string | null
Sunset time, ISO 8601 UTC with Z.
data.day_choghadiya
array[ChoghadiyaPeriod] | null
8 Choghadiya periods from sunrise to sunset.
data.night_choghadiya
array[ChoghadiyaPeriod] | null
8 Choghadiya periods from sunset to next sunrise.
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.
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.