POST · VEDIC

KP Ruling Planets

Endpoint POST https://starsapi.com/api/v3/vedic/kp/ruling-planets

Returns the Ruling Planets for the moment of query (or any supplied time). The response carries a day_lord block plus moon and ascendant blocks — each with sign, nakshatra and the four KP lords (sign, star, sub, sub-sub) — the KP tool for timing and instant guidance.

All KP endpoints default to the KP Old (Krishnamurti) ayanamsa and mean nodes, matching classical KP ephemeris practice. Both are overridable per request.

Authentication

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

Request body

FieldTypeRequiredDescription
namestringNoEchoed in the response.
yearintegerYesYear.
monthintegerYesMonth, 1–12.
dayintegerYesDay of month.
hourintegerYesHour, 24-hour.
minuteintegerYesMinute.
secondintegerNoDefault 0.
latitudenumberYesDecimal degrees.
longitudenumberYesDecimal degrees.
timezonestringYesIANA timezone.
ayanamsastringNoDefault kp_old (Krishnamurti). Any supported ayanamsa accepted.
node_typestringNomean (default, per classical KP ephemeris practice) or true.

Response shape

FieldTypeDescription
query_timeobjectThe moment used — date, time, day, timezone.
ruling_planets.day_lordobjectplanet ruling the weekday, plus the day name.
ruling_planets.moonobjectMoon block — sign, nakshatra, sign_lord, star_lord, sub_lord, sub_sub_lord.
ruling_planets.ascendantobjectAscendant (Lagna) block — same six keys as moon.
summary.all_rulersarrayUnique ruling planets, in traditional order of derivation.
summary.by_strengtharrayRuling planets sorted by frequency of appearance (repetition = strength).
summary.strongeststringThe single strongest ruling planet.

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, node_type, or other option.
405METHOD_NOT_ALLOWEDNon-POST request.

See also