POST · VEDIC

Kala Bala

Endpoint POST https://starsapi.com/api/v3/vedic/shadbala/kala

Returns Kala Bala (temporal strength) with all nine classical sub-balas: Nathonnatha (day/night arc), Paksha (lunar fortnight), Tribhaga (day/night thirds), Varsha/Maasa/Vaara (year, month, and weekday lords by Ahargana), Hora (planetary hour), Ayana (declination), and Yuddha (planetary war). Sunrise and sunset are computed astronomically for the birth location; time-of-day components use Local Mean Time.

Authentication

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

Request body

FieldTypeRequiredDescription
namestringNoEchoed in the response.
yearintegerYesBirth year.
monthintegerYesBirth month, 1–12.
dayintegerYesDay of month.
hourintegerYesHour, 24-hour.
minuteintegerYesMinute.
secondintegerNoDefault 0.
latitudenumberYesDecimal degrees.
longitudenumberYesDecimal degrees.
timezonestringYesIANA timezone.
ayanamsastringNoDefault lahiri.
node_typestringNomean (default) or true.

Response shape

FieldTypeDescription
kala_bala.{Planet}.totalnumberSum of the nine sub-balas (Virupas).
details.nathonnatha_balanumberDiurnal planets (Sun/Jupiter/Venus): LMT arc from midnight ÷ 3; nocturnal (Moon/Mars/Saturn): arc from midday ÷ 3; Mercury always 60.
details.paksha_balanumberMoon–Sun elongation ÷ 3 for benefics; 60 minus that for malefics.
details.tribhaga_balanumber60 to the lord of the day/night third containing the birth (day: Mercury/Sun/Saturn; night: Moon/Venus/Mars); Jupiter always 60.
details.varsha_bala / maasa_bala / vaara_balanumber15 / 30 / 45 to the Ahargana-derived year, month, and weekday lords.
details.hora_balanumber60 to the planetary-hour lord at birth.
details.ayana_balanumberDeclination-based: Sun/Mars/Jupiter/Venus gain with north declination, Moon/Saturn with south; Mercury always gains.
details.yuddha_balanumberPlanetary-war adjustment (±) when two non-luminaries are within 1°.

Errors

HTTPCodeCause
400MISSING_FIELDRequired field absent.
400INVALID_DATEBad calendar date.
400INVALID_TIMEHour/minute/second out of range.
400INVALID_TIMEZONENon-IANA timezone.
400INVALID_COORDINATELat/lon out of range.
400INVALID_PARAMBad ayanamsa or node_type.
405METHOD_NOT_ALLOWEDNon-POST request.

See also