POST · WESTERN

Synastry Chart

Endpoint POST https://starsapi.com/api/v3/western/compatibility/synastry-chart

Computes both natal charts plus synastry inter-aspects and returns a signed URL to a bi-wheel PNG image showing Person A’s chart on the inner ring and Person B’s planets on the outer ring. The URL is valid for 24 hours.

Authentication

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

Request body

Two person objects are required. Each contains birth data:

FieldTypeRequiredDescription
person1objectYesInner-ring person (see fields below).
person2objectYesOuter-ring person (same fields).
house_systemstringNoDefault placidus.
node_typestringNotrue (default) or mean.
center_textstringNoCustom text in chart center.

Person object fields

FieldTypeRequiredDescription
namestringNoLabel on chart. Default "Person A" / "Person B".
yearintegerYesBirth year.
monthintegerYesBirth month, 1–12.
dayintegerYesDay of month.
hourintegerYesHour, 0–23.
minuteintegerYesMinute, 0–59.
secondintegerNoDefault 0.
latitudenumberYesDecimal degrees.
longitudenumberYesDecimal degrees.
timezonestringYesIANA timezone identifier.

Response shape

FieldTypeDescription
chart_urlstringSigned URL to the bi-wheel PNG image. Valid for 24 hours.

Errors

HTTPCodeCause
400MISSING_FIELDperson1 or person2 missing, or required sub-fields absent.
405METHOD_NOT_ALLOWEDNon-POST request.
500EPHEMERIS_ERRORChart computation failed for one of the persons.

Notes

  • The image URL is a signed, time-limited link — cache the URL or download the image within 24 hours.
  • For synastry data (inter-aspects, planet positions) without the chart image, use Synastry.

See also