POST · VEDIC

Prastharaka Ashtakvarga

Endpoint POST https://starsapi.com/api/v3/vedic/ashtakvarga/prastharaka

Returns the full Prastharaka spread — the astrologer-grade detail behind every BAV figure: for each sign, exactly which of the 8 contributors (7 planets + Lagna) granted the bindu. Also includes the complete Shodhana pipeline (Trikona and Ekadhipatya reductions per planet) and the final Shodhya Pinda strength values (Rashi Pinda + Graha Pinda), computed by the classical occupancy-based method and verified against standard references.

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
contributor_orderarrayThe 8 contributors: Sun…Saturn, Lagna.
prastara.{Planet}.total_pointsintegerPlanet’s BAV total.
prastara.{Planet}.spread.{Sign}objectbindus (count) and contributors — 1/0 per contributor showing exactly who granted each point.
shodhana.trikona.{Planet}objectTrikona-reduced figures: points_by_sign, total.
shodhana.ekadhipatya.{Planet}objectShuddha bindus after the classical occupancy-based dual-lordship reduction.
shodhana.shodhya_pinda.{Planet}objectshuddha_bindus (per sign), rashi_pinda, graha_pinda, shodhya_pinda (= rashi + graha). Used for transit strength and longevity techniques.

Methodology

Trikona Shodhana subtracts the minimum within each trine (1-5-9, 2-6-10, 3-7-11, 4-8-12). Ekadhipatya Shodhana then applies the classical occupancy rules to each same-lord sign pair: pairs where either sign has 0 bindus, or both signs hold planets, are untouched; both-unoccupied pairs reduce to the lower value (to 0 when equal); occupied-vs-unoccupied pairs reduce only the unoccupied sign. Rashi Pinda weights the shuddha bindus by each sign’s classical multiplier; Graha Pinda weights the bindus of each occupied sign by the occupying planet’s multiplier.

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