POST · VEDIC

Birth Details

Endpoint POST https://starsapi.com/api/v3/vedic/birth-details

Overview

Returns resolved birth details — date, time, weekday, gender, name, location, timezone offset and node type. This endpoint performs no astrological computation — no planets, no houses, no ayanamsa. It exists so your app can confirm and display the native’s birth data independently of any chart calculations.

Typical app flow: submit /birth-details alongside /ayanamsa on form submit. The first resolves the input; the second returns the sidereal correction(s) your chart screens need. Then call any compute endpoint (planets, ascendant, dashas, etc.) for actual chart data.

Authentication

MethodExample
Header (recommended)X-Api-Key: am_live_xxxxxxxxxxxx
BearerAuthorization: Bearer am_live_xxxxxxxxxxxx
Query?api_key=am_live_xxxxxxxxxxxx

Request body

FieldTypeRequiredDescription
yearintegerYesBirth year (e.g. 1990)
monthintegerYesBirth month (1–12)
dayintegerYesBirth day (1–31)
hourintegerYesBirth hour (0–23)
minuteintegerYesBirth minute (0–59)
secondintegerNoBirth second (0–59). Defaults to 0.
latitudenumberYesSigned decimal latitude. Positive = North, negative = South.
longitudenumberYesSigned decimal longitude. Positive = East, negative = West.
timezonestringYesIANA timezone identifier (e.g. Asia/Kolkata).
genderstringYesmale, female, m, or f.
namestringNoNative’s name. Returned at data.name.
placestringNoBirth place label. Returned inside data.location.

Response shape

data.name

Echoed name (top-level in data), or absent if not sent.

data.birth_details

FieldTypeDescription
datestringResolved birth date (YYYY-MM-DD).
timestringResolved birth time (HH:MM:SS).
daystringWeekday name (e.g. Sunday).
genderstringAs submitted (male or female).

data.location

FieldTypeDescription
latitudenumberDecimal degrees as submitted.
longitudenumberDecimal degrees as submitted.
placestring|nullEchoed place label, or absent if not sent.

Other data fields

FieldTypeDescription
timezonestringIANA timezone string as submitted.
timezone_offsetnumberUTC offset in hours (e.g. 5.5 for IST).
node_typestringAlways "mean".

meta

FieldTypeDescription
endpointstringRequest path.
versionstringAPI version (3.0).
response_time_msintegerServer processing time in milliseconds.
timestampstringISO 8601 response timestamp.
credits_remainingintegerRemaining API credits.
request_idstringUnique request identifier for debugging.
node_typestringEchoed node type.

No ayanamsa sub-block appears in meta — this endpoint performs no sidereal computation.

Errors

HTTPCodeCause
400MISSING_FIELDA required field is absent (including gender).
400INVALID_DATEYear/month/day combination does not resolve to a real date.
400INVALID_TIMEHour/minute/second outside valid range.
400INVALID_TIMEZONETimezone string is not a valid IANA identifier.
400INVALID_COORDINATELatitude or longitude outside valid range.
400INVALID_JSONRequest body is not valid JSON.
401UNAUTHORIZEDMissing or invalid API key.
405METHOD_NOT_ALLOWEDRequest method is not POST.

See also