POST/v1/western/compatibility
Western Compatibility Score
Overall compatibility score (0-100) between two natal charts. Scores element affinity, synastry aspects between personal planets (Sun, Moon, Venus, Mars), and Sun/Moon/rising sign comparisons.
Request parameters
person1required
object
person1.locationoptional
string | null
City name to resolve to lat/lon/tz automatically. Example: 'Mumbai' or 'New Delhi, India'. If provided, latitude, longitude and timezone are not required.
person1.nameoptional
string
Person name associated with the birth record
person1.daterequired
string
Birth date in YYYY-MM-DD format
person1.timeoptional
string | null
Birth time in HH:MM 24-hour format. If omitted, sunrise chart is used as fallback.
person1.latitudeoptional
number | null
Latitude. Required if location not provided.
person1.longitudeoptional
number | null
Longitude. Required if location not provided.
person1.timezoneoptional
string | null
IANA timezone. Required if location not provided.
person1.ayanamsaoptional
string
Sidereal ayanamsa mode used in calculations
person2required
object
person2.locationoptional
string | null
City name to resolve to lat/lon/tz automatically. Example: 'Mumbai' or 'New Delhi, India'. If provided, latitude, longitude and timezone are not required.
person2.nameoptional
string
Person name associated with the birth record
person2.daterequired
string
Birth date in YYYY-MM-DD format
person2.timeoptional
string | null
Birth time in HH:MM 24-hour format. If omitted, sunrise chart is used as fallback.
person2.latitudeoptional
number | null
Latitude. Required if location not provided.
person2.longitudeoptional
number | null
Longitude. Required if location not provided.
person2.timezoneoptional
string | null
IANA timezone. Required if location not provided.
person2.ayanamsaoptional
string
Sidereal ayanamsa mode used in calculations
Response fields
success
boolean
True if the request succeeded
message
string
Human-readable status message
data
object
data.overall_score
integer
data.element_score
integer
data.aspect_score
integer
data.sun_sign_affinity
string
data.moon_sign_affinity
string
data.rising_sign_affinity
string
data.person1_sun
string
data.person2_sun
string
data.person1_moon
string
data.person2_moon
string
data.key_aspects
array[object]
data.key_aspects[].person1_planet
string
data.key_aspects[].person2_planet
string
data.key_aspects[].type
string
data.key_aspects[].exact_angle
number
data.key_aspects[].orb
number
Errors
Missing or invalid API key.
Upstream ephemeris service error.
API key tier does not include this endpoint.
Unexpected server error.
Too many requests in a short window.
Request body exceeds the size limit.
Referenced resource was not found.
Request body failed schema validation.