POST · WESTERN

Transit Houses

Endpoint POST https://starsapi.com/api/v3/western/predictions/transit-natal-houses

Computes current (or specified date) planetary positions and determines which natal house each transiting planet occupies using the natal chart's house cusps. Returns a prewritten interpretation with keyword pills for each of the 10 transiting planets. This is the foundation of personalized daily, weekly, and monthly horoscope content — “Saturn is transiting your 7th house” is the language that drives subscription astrology apps.

Transit date — if transit_year is omitted, the endpoint defaults to the current UTC time. Supply transit_year, transit_month, transit_day (and optionally transit_hour, transit_minute, transit_second) for any date from 1800 to 2400.

Authentication

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

Request body

FieldTypeRequiredDescription
Natal birth data
yearintegerYesBirth year (1800–2400).
monthintegerYesBirth month, 1–12.
dayintegerYesBirth day.
hourintegerYesBirth hour, 0–23.
minuteintegerYesBirth minute, 0–59.
secondintegerNoDefault 0.
latitudenumberYesBirth latitude, decimal degrees.
longitudenumberYesBirth longitude, decimal degrees.
timezonestringYesBirth IANA timezone.
Transit date (optional — defaults to now)
transit_yearintegerNoTransit year (1800–2400).
transit_monthintegerNoTransit month.
transit_dayintegerNoTransit day.
transit_hourintegerNoTransit hour. Default 12.
transit_minuteintegerNoTransit minute. Default 0.
transit_timezonestringNoTransit timezone. Defaults to natal timezone.
Options
languagestringNoLanguage code. Default en.
house_systemstringNoDefault placidus.

Response shape

FieldTypeDescription
natal_datestringBirth date (YYYY-MM-DD).
transit_datestringTransit date (YYYY-MM-DD).
transit_houses[]array10 entries (Sun…Pluto). Each: transit_planet, sign, natal_house (1–12), retrograde, prediction with title, text, keywords.

Errors

HTTPCodeCause
400MISSING_FIELDRequired field absent.
400INVALID_DATEBad natal or transit date.
400INVALID_TIMEZONENon-IANA timezone.
400INVALID_COORDINATELat/lon out of range.
405METHOD_NOT_ALLOWEDNon-POST request.

See also