POST · VEDIC

Sun Sign

Endpoint POST https://starsapi.com/api/v3/vedic/natal/sun-sign

Returns the sidereal Sun sign (Surya Rashi) — the zodiac sign occupied by the Sun at the moment of birth. The sidereal Sun sign differs from the tropical (Western) Sun sign by roughly one sign due to the precession of equinoxes. In Vedic astrology the Sun sign indicates the native’s soul nature, authority, vitality, and relationship with the father.

The response includes the sign (English and Hindi), sign lord, element, quality, and the Sun’s exact sidereal longitude.

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. All core fields are required.

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.
latitudenumberYesSigned decimal degrees, −90…90. Positive = North.
longitudenumberYesSigned decimal degrees, −180…180. Positive = East.
timezonestringYesIANA timezone identifier.
namestringNoUse /vedic/birth-details to retrieve.
placestringNoUse /vedic/birth-details to retrieve.
ayanamsastringNoDefault lahiri. Full list →

Response shape

FieldTypeDescription
data.sun_sign
signstringSun sign in English (e.g. Taurus).
sign_hindistringHindi name (e.g. Vrishabha).
sign_numberinteger1 = Aries … 12 = Pisces.
sign_lordstringRuling planet of the Sun sign.
elementstringFire, Earth, Air, or Water.
qualitystringMovable, Fixed, or Dual.
sun_longitudenumberSun’s sidereal longitude (0–360).
sun_longitude_dmsstringSame in D°M′S″ format.
sun_degree_in_signnumberSun’s degree within the sign (0–30).
sun_degree_in_sign_dmsstringSame in D°M′S″ format.

Use cases

  • Sidereal vs tropical comparison — show users how their Vedic Sun sign differs from their Western one.
  • Sankranti tracking — the Sun’s sign ingress marks the start of a new solar month in the Hindu calendar.
  • Profile cards — pair Sun sign, Moon sign, and Lagna for a three-point personality summary.
  • Solar return — use the Sun’s exact degree to compute Varshphal (annual chart) timing.

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