POST · WESTERN

Planet in House

Endpoint POST https://starsapi.com/api/v3/western/predictions/planet-in-house

Computes the tropical natal chart and returns a prewritten interpretation for each of 13 bodies in its house — Sun through Pluto, plus Chiron, Lilith (Mean Black Moon), and Part of Fortune (Asc + Moon − Sun). The 156 combinations (13 bodies × 12 houses) cover the canonical Western placement readings, written in a warm, professional second-person voice and capped at roughly 100 words per entry for app and dashboard use. Supports 23 house systems.

For sign-based readings use planet-in-sign. For aspect interpretations use aspects.

Content tiers — the content tier is derived from your API key, not from the request. Internal keys receive premium content (richer voice, deeper detail); public keys receive canonical. Future white-label partners will receive their own branded text via partner_{slug}. When the requested language has no entry, the response falls back to English automatically.

Authentication

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

Request body

FieldTypeRequiredDescription
yearintegerYesBirth year.
monthintegerYesBirth month, 1–12.
dayintegerYesBirth day.
hourintegerYesBirth hour, 0–23 (24-hour).
minuteintegerYesBirth minute, 0–59.
secondintegerNoBirth second, default 0.
latitudenumberYesDecimal degrees.
longitudenumberYesDecimal degrees.
timezonestringYesIANA timezone (e.g. Asia/Kolkata).
languagestringNoLanguage code. Supported: en, es (Spanish), fr (French), pt (Portuguese), it (Italian), de (German), ru (Russian). Default en. Falls back to English when the requested language has no entry.
house_systemstringNoAny of 23 supported systems. Default placidus. See house systems.
node_typestringNoOne of true, mean, both. Default true.

Response shape

FieldTypeDescription
house_systemstringThe house system actually applied (default Placidus).
languagestringThe language requested.
predictions[]arrayOne entry per body (Sun…Pluto, Chiron, Lilith, Fortune). Each carries planet, house (1–12), sign, retrograde, and prediction (title and text). When the combination has no entry in any tier or language, prediction is null.

Errors

HTTPCodeCause
400MISSING_FIELDRequired field absent.
400INVALID_DATEBad calendar date.
400INVALID_PARAMBad language value (must be one of the seven supported codes).
400INVALID_TIMEZONENon-IANA timezone.
400INVALID_COORDINATELat/lon out of range.
405METHOD_NOT_ALLOWEDNon-POST request.

See also