Skip to main content
POST/v1/western/day

Western day view

One calendar day at a place, Western style: planetary hours, void-of-course Moon periods, Moon sign changes and the Moon phase. The day runs from local midnight to midnight; every planetary hour that falls in it is listed, with the void-of-course periods that overlap it and the Moon's tropical sign at the start and end. Same engines as /v1/western/planetary-hours and /v1/western/moon/void-of-course, in one call. Western counterpart of the panchanga civil day.

GET works too

GET /v1/western/day: Same answer as the POST route with the same fields as query parameters; cacheable (public, 10 minutes).

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.date
string
data.timezone
string
data.start
string
Local midnight that opens the day, ISO 8601 with offset.
data.end
string
Local midnight that closes it.
data.start_utc
string
data.end_utc
string
data.status
string
no_sunrise at polar latitudes: planetary_hours is then null.
data.status_detail
string | null
data.planetary_hours
array[PlanetaryHour] | null
Every planetary hour that overlaps the civil day (the hours after midnight come from the previous sunrise's night).
data.void_of_course
array[object]
Void-of-course Moon periods that overlap the civil day (traditional rule, see /v1/western/moon/void-of-course).
data.void_of_course[].start_utc
string
data.void_of_course[].end_utc
string
data.void_of_course[].duration_hours
number
data.void_of_course[].moon_sign
string
data.void_of_course[].moon_sign_id
string | null
Fixed id of moon_sign (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.void_of_course[].moon_sign_label
string | null
moon_sign 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.void_of_course[].next_sign
string
data.void_of_course[].next_sign_id
string | null
Fixed id of next_sign (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.void_of_course[].next_sign_label
string | null
next_sign 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.void_of_course[].last_aspect
VoidOfCourseLastAspect | null
data.void_of_course[].whole_sign_void
boolean
data.moon
object
data.moon.sign_at_start
string
Tropical Moon sign at local midnight opening the day.
data.moon.sign_at_start_id
string | null
Fixed id of sign_at_start (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.moon.sign_at_start_label
string | null
sign_at_start 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.moon.sign_at_end
string
Tropical Moon sign at the midnight closing it.
data.moon.sign_at_end_id
string | null
Fixed id of sign_at_end (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.moon.sign_at_end_label
string | null
sign_at_end 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.moon.sign_changes
array[object]
Moon sign changes inside the day, with exact times.
data.moon.sign_changes[].at_utc
string
data.moon.sign_changes[].at_local
string
data.moon.sign_changes[].from_sign
string
data.moon.sign_changes[].from_sign_id
string | null
Fixed id of from_sign (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.moon.sign_changes[].from_sign_label
string | null
from_sign 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.moon.sign_changes[].to_sign
string
data.moon.sign_changes[].to_sign_id
string | null
Fixed id of to_sign (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.moon.sign_changes[].to_sign_label
string | null
to_sign 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.moon.phase_name
string
Moon phase for the date (eight 45° phases).
data.moon.phase_name_id
string | null
Fixed id of phase_name (see https://docs.asterwise.com/reference/names-and-ids/). Stays the same in every language; store and compare this, not the name.
data.moon.phase_name_label
string | null
phase_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.moon.illumination_pct
number
data.moon.is_waxing
boolean
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.