POST · VEDIC

Natal Basics

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

Returns the foundational Vedic chart profile for a birth event — Lagna, Moon sign, Sun sign, birth nakshatra, and the complete Panchang snapshot (tithi, yoga, karana, vaar, paksha) along with precise time-correction data (sunrise, GMT, DST, LMT, ishtakal) and Hindu calendar context (maas, samvatsara, ritu). This is the “birth certificate” of Vedic astrology: everything an astrologer reads before opening the planetary chart.

Tithi and nakshatra are returned both at sunrise and at birth — a critical distinction in Vedic practice, since the astrological day begins at sunrise, not midnight. Bhayat (elapsed nakshatra time) and Bhabhog (total nakshatra duration) are given in ghati-pala and HMS formats for Dasha balance computation.

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 — sunrise computation and Panchang elements depend on the precise time and place of birth.

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 (e.g. 28.6139).
longitudenumberYesSigned decimal degrees, −180…180. Positive = East (e.g. 77.2090).
timezonestringYesIANA timezone identifier (e.g. Asia/Kolkata). 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. 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

The response is grouped into logical sections under data. Birth input is not echoed back — call /vedic/birth-details separately for that.

vedic_profile

The four anchor points of a Vedic horoscope at a glance.

FieldTypeDescription
vedic_profile.moon_sign
signstringMoon’s sidereal sign (Rashi) in English.
sign_hindistringSign in Hindi.
sign_numberinteger1 = Aries … 12 = Pisces.
degreenumberMoon’s degree within the sign (0–30).
degree_dmsstringSame in D°M′S″ format.
vedic_profile.nakshatra
namestringBirth nakshatra (lunar mansion of the Moon).
nakshatra_padaintegerPada (quarter), 14.
nakshatra_lordstringVimshottari dasha lord of the nakshatra.
longitudenumberAbsolute sidereal longitude of the Moon (0–360).
longitude_dmsstringSame in D°M′S″ format.
vedic_profile.sun_sign
signstringSun’s sidereal sign in English.
sign_hindistringSign in Hindi.
sign_numberintegerSign number (1–12).
degreenumberSun’s degree within the sign (0–30).
degree_dmsstringSame in D°M′S″ format.
vedic_profile.lagna
signstringAscendant (Lagna) sign in English.
sign_hindistringLagna sign in Hindi.
sign_numberintegerSign number (1–12).
degreenumberAscendant degree within the sign (0–30).
degree_dmsstringSame in D°M′S″ format.

sunrise

Sunrise at the birth location on the birth date. The Vedic day begins at sunrise, not midnight.

FieldTypeDescription
ut_timestringSunrise in Universal Time (HH:MM:SS).
local_timestringSunrise in local clock time.
local_datetimestringFull local date-time of sunrise.
timezonestringIANA timezone used.
timezone_offsetnumberUTC offset in hours (e.g. 5.5 for IST).
sunrise_datestringCalendar date of sunrise (YYYY-MM-DD).
birth_before_sunrisebooleantrue if birth occurred before sunrise — the Vedic day belongs to the previous calendar date.

time_corrections

GMT, DST, and Local Mean Time adjustments applied to the birth time.

FieldTypeDescription
gmt_at_birthstringBirth time converted to GMT (HH:MM:SS).
dst_correctionstringDST offset applied (e.g. +00:00:00 if none).
lmt_correctionstringLocal Mean Time correction from the standard meridian.
lmt_correction_minutesnumberSame correction in decimal minutes.
local_mean_timestringBirth time adjusted to Local Mean Time (HH:MM:SS).
standard_meridianstringStandard meridian for the timezone (e.g. 82°30′E for IST).
standard_meridian_degnumberSame in decimal degrees.

bhayat & bhabhog

Bhayat is the elapsed portion of the birth nakshatra at the time of birth. Bhabhog is the total duration of that nakshatra. Together they determine the Dasha balance at birth — the starting point for all Vimshottari timing.

FieldTypeDescription
bhayat (elapsed)
ghatiintegerElapsed ghatis (1 ghati = 24 minutes).
palaintegerElapsed palas (1 pala = 24 seconds).
vighatinumberElapsed vighatis (sub-pala).
decimal_ghatinumberTotal elapsed time as decimal ghatis.
hmsstringElapsed time in HH:MM:SS.
percent_traversednumberPercentage of nakshatra completed at birth.
percent_remainingnumberPercentage remaining.
nakshatra_entrystringDate-time when Moon entered this nakshatra.
bhabhog (total duration)
ghatiintegerTotal ghatis for the full nakshatra transit.
palaintegerTotal palas.
vighatinumberTotal vighatis.
decimal_ghatinumberTotal duration as decimal ghatis.
hmsstringTotal duration in HH:MM:SS.
nakshatra_exitstringDate-time when Moon exits this nakshatra.

ishtakal

Time elapsed since sunrise to the moment of birth, in Vedic time units.

FieldTypeDescription
ghatiintegerElapsed ghatis since sunrise.
palaintegerElapsed palas.
vighatinumberElapsed vighatis.
decimal_ghatisnumberTotal as decimal ghatis.
elapsed_hmsstringElapsed time in HH:MM:SS.
from_sunrisestringSunrise time used as reference (HH:MM:SS).
measured_fromstringWhich sunrise was used: same-day sunrise or previous-day sunrise.

Panchang elements

The five limbs of the Panchang at birth, plus vaar (weekday).

FieldTypeDescription
tithi (at_sunrise & at_birth)
tithi_numberintegerTithi number in the lunar month (1–30).
tithi_in_pakshaintegerTithi number within the paksha (1–15).
tithi_namestringTithi name (e.g. Ekadashi).
pakshastringShukla (waxing) or Krishna (waning).
paksha_tithi_namestringCombined name (e.g. Krishna Ekadashi).
start_utstringTithi start in Universal Time.
end_utstringTithi end in Universal Time.
nakshatra (at_sunrise & at_birth)
namestringNakshatra name.
nakshatra_padaintegerPada (1–4).
nakshatra_lordstringVimshottari lord.
vaar (astrological & western)
vaar_numberintegerDay number (0 = Sunday … 6 = Saturday).
vaar_namestringHindi weekday name (e.g. Ravivaar).
vaar_name_enstringEnglish weekday name.
vaar_lordstringPlanetary lord of the day.
birth_before_sunrisebooleanIf true, the astrological vaar differs from the western calendar day.
yoga
yoga_numberintegerYoga number (1–27).
yoga_namestringYoga name (e.g. Vishkambha).
start_ut / end_utstringYoga start and end in UT.
karana
karana_numberintegerKarana number (1–60 in the cycle).
karana_namestringKarana name (e.g. Bava).
halfstringFirst or Second half of the tithi.
start_ut / end_utstringKarana start and end in UT.
paksha
pakshastringTop-level: Shukla or Krishna.

Hindu calendar

FieldTypeDescription
maas
is_adhika_maasbooleantrue if birth falls in an intercalary (extra) month.
purnimant.maas_namestringMonth name in the Purnimant (North Indian) system.
purnimant.maas_name_hindistringSame in Hindi.
amant.maas_namestringMonth name in the Amant (South Indian) system.
amant.maas_name_hindistringSame in Hindi.
samvatsara
samvatsara_numberintegerPosition in the 60-year Jupiter cycle (1–60).
samvatsara_namestringSamvatsara name (e.g. Srimukha).
vikram_samvatintegerYear in the Vikram Samvat calendar.
shaka_samvatintegerYear in the Shaka Samvat (national) calendar.
ritu
ritu_numberintegerSeason number (1–6).
ritu_namestringSeason name in Sanskrit (e.g. Vasanta).
ritu_name_enstringEnglish season name.
ritu_monthsstring[]The two Hindu months that fall in this season.

meta

FieldTypeDescription
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.namestringSidereal mode applied.
meta.ayanamsa.valuenumberAyanamsa offset in decimal degrees.
meta.ayanamsa.value_dmsstringSame in D°M′S″ format.

Use cases

  • Birth profile cards — surface Lagna, Moon sign, Sun sign, and birth nakshatra the moment a user enters their details.
  • Dasha balance — use bhayat and bhabhog to compute the exact Vimshottari starting balance without a second call.
  • Panchang at birth — display tithi, yoga, karana, and vaar for muhurta analysis or compatibility checks.
  • Localized calendars — render the birth month in both Purnimant (North) and Amant (South) systems, with Vikram and Shaka year numbers.
  • Pre-sunrise births — the birth_before_sunrise flag and dual sunrise/birth panchang lets you handle the Vedic day boundary correctly.

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