POST · VEDIC

Ascendant

Endpoint POST https://starsapi.com/api/v3/vedic/natal/ascendant

Returns the sidereal Ascendant (Lagna) for a given birth — the rising sign at the exact moment and location of birth. The Ascendant is the most personal point in a Vedic horoscope: it determines the house framework, sets the Dasha starting point, and shapes the native’s physical constitution and outlook.

The response includes the sign (with Hindi name, lord, element, and quality), ecliptic longitude, degree within the sign, nakshatra, nakshatra lord, and pada — everything needed to anchor a chart or power a horoscope UI.

Authentication

Required. Three methods accepted:

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

See authentication for security considerations.

Request body

Send a JSON object with Content-Type: application/json. The core fields are required — the ascendant depends on the precise time and place of birth, so an approximate value in any field shifts the rising sign.

FieldTypeRequiredDescription
yearintegerYesBirth year, 4-digit (e.g. 1990).
monthintegerYesBirth month, 112.
dayintegerYesDay of month, 131.
hourintegerYesHour in 24-hour local clock time, 023.
minuteintegerYesMinute, 059.
secondintegerNoSecond, 059. Default 0. Improves precision — the Ascendant moves ∼1° every 4 minutes.
latitudenumberYesSigned decimal degrees, −90…90. Positive = North (e.g. 28.6139).
longitudenumberYesSigned decimal degrees, −180…180. Positive = East (e.g. 77.2090).
timezonestringYesIANA timezone identifier (e.g. Asia/Kolkata, America/New_York). DST is resolved automatically.
namestringNoNative’s name. Not returned by this endpoint; use /vedic/birth-details to retrieve it.
placestringNoBirth place label. Not returned by this endpoint; use /vedic/birth-details to retrieve it.
ayanamsastringNoSidereal mode. Default lahiri. Popular: lahiri, raman, kp, kp_new, kp_senthil, fagan_bradley, yukteshwar. Full list of 45+ ayanamsas →
Use the local clock time of birth. Pass the wall-clock time as recorded on the birth certificate together with the IANA timezone of the birth place — the backend converts to UTC internally. Do not pre-convert to UTC yourself.

Response shape

A successful response carries a top-level status + success flag, a data.ascendant object, and a meta envelope with request metadata. Birth input (name, date, time, gender, location) is not echoed back — call /vedic/birth-details separately to retrieve resolved birth details.

FieldTypeDescription
statusintegerHTTP status code echo (200 on success).
successbooleanAlways true on success.
data.ascendant
signstringRising sign in English (e.g. Virgo).
sign_hindistringHindi / Sanskrit name (e.g. Kanya).
sign_numberintegerSign number, 1 = Aries … 12 = Pisces.
sign_lordstringRuling planet of the rising sign — the chart lord.
elementstringElement (tattva): Fire, Earth, Air, or Water.
qualitystringModality: Movable (Cardinal), Fixed, or Dual (Mutable).
longitudenumberAbsolute sidereal ecliptic longitude in decimal degrees (0–360).
longitude_dmsstringSame longitude in D°M′S″ format.
degree_in_signnumberDegree within the sign (0–30).
degree_in_sign_dmsstringSame in D°M′S″ format.
nakshatrastringLunar mansion the Ascendant falls in.
nakshatra_lordstringVimshottari lord of the nakshatra.
nakshatra_padaintegerQuarter within the nakshatra (14).
meta
meta.endpointstringEcho of the called endpoint path.
meta.versionstringAPI version (currently 3.0).
meta.response_time_msintegerServer-side response time in milliseconds.
meta.timestampstring (ISO 8601)Time the response was served.
meta.credits_remainingintegerAPI credits remaining on your plan.
meta.request_idstringUnique request identifier — include in support tickets.
meta.ayanamsa.namestringName of the sidereal mode applied (e.g. Lahiri).
meta.ayanamsa.valuenumberAyanamsa offset in decimal degrees.
meta.ayanamsa.value_dmsstringSame in D°M′S″ format.

Use cases

  • Chart casting — the ascendant fixes house 1; pair it with the planetary-positions endpoint to assemble a full Lagna chart.
  • Onboarding — surface a user’s rising sign and chart lord the moment they enter birth details, before computing anything heavier.
  • Personality summaries — combine sign, sign_lord, and nakshatra for a rising-sign profile card.
  • Localized UI — the dual English / Hindi fields let you render the same response in either language without a second call.

Errors

HTTPCodeCause
400MISSING_FIELDA required birth field is absent.
400INVALID_DATEInvalid calendar date.
400INVALID_TIMEHour/minute/second out of range.
400INVALID_TIMEZONENumeric or non-IANA timezone.
400INVALID_COORDINATElatitude / longitude out of range.
401AUTH_MISSING_KEYNo API key in request.
401AUTH_INVALID_KEYKey format invalid or not found.
401AUTH_REVOKED_KEYKey has been revoked.
403AUTH_ORIGIN_DENIEDRequest from non-whitelisted origin.
405METHOD_NOT_ALLOWEDNon-POST request.
429RATE_LIMIT_EXCEEDEDPlan quota exceeded.
500CALCULATION_ERROREphemeris calculation failed.

Error response format

{
  "success": false,
  "error": {
    "code": "INVALID_TIMEZONE",
    "message": "Unrecognised timezone: 'Asia/Calcutta_'. Use a valid IANA identifier such as 'Asia/Kolkata'."
  }
}

See also