Back to Docs

SVG Synastry Chart Generator

SVG Synastry Chart Generator

POST/api/v1/natal/chart/synastry

Generate a true synastry bi-wheel SVG/PNG chart using person A as the reference frame, with person B overlaid. Supports independent planet colors, aspect visibility toggles, secondary house ring/angles, and independent A/B lane background colors.

Related SVG Endpoints

Synastry is the bi-wheel relationship view. If you want one standalone chart from two people, use the midpoint composite endpoint instead.

Full URL

https://api.freeastroapi.com/api/v1/natal/chart/synastry

Top-level Parameters

Request-level controls specific to the synastry endpoint.

ParameterTypeRequiredDefaultDescription
person_aobjectYes-Primary person object using the same birth-data fields as the SVG/PNG Chart Generator.
person_bobjectYes-Secondary person object using the same birth-data fields as the SVG/PNG Chart Generator.
show_a_aspectsbooleanNofalseShow aspect lines inside person A set.
show_inter_aspectsbooleanNotrueShow aspect lines between person A and person B.
show_b_aspectsbooleanNofalseShow aspect lines inside person B set.
person_a_planet_colorstring|nullNo#1565C0Color override for person A planets and degree labels.
person_b_planet_colorstring|nullNo#C62828Color override for person B planets and degree labels.
person_a_angle_colorstring|nullNo#1A1A1AColor override for person A angle glyphs (ASC/MC/DSC/IC).
person_b_angle_colorstring|nullNo#1A1A1AColor override for person B angle glyphs (ASC/MC/DSC/IC).
show_person_b_housesbooleanNotrueRender secondary house ring (only when person_b.time_known=true).
show_person_b_anglesbooleanNotrueRender secondary angle axes and angle glyphs (only when person_b.time_known=true).
person_a_zone_bg_colorstring|nullNonullBackground color for person A planet lane.
person_a_zone_bg_opacityfloat|nullNonullOpacity for person A lane background (0.0 to 1.0).
person_b_zone_bg_colorstring|nullNonullBackground color for person B planet lane.
person_b_zone_bg_opacityfloat|nullNonullOpacity for person B lane background (0.0 to 1.0).

person_a / person_b Schema

Both nested objects use the same birth-data schema as the SVG/PNG Chart Generator.

ParameterTypeRequiredDefaultDescription
namestringNoUserDisplay name for the person.
yearintegerYes-Birth year.
monthintegerYes-Birth month (1-12).
dayintegerYes-Birth day (1-31).
hourintegerNo12Birth hour (0-23).
minuteintegerNo0Birth minute (0-59).
time_knownbooleanNotrueSet false if time is unknown. Houses/angles are removed for that person.
citystringNo-Birth city. Optional when lat/lng are provided.
latfloatNoautoOptional latitude override. Required with lng if city is omitted.
lngfloatNoautoOptional longitude override. Required with lat if city is omitted.
tz_strstringNoAUTOTimezone or AUTO.
formatstringNosvgOutput format: 'svg' or 'png' (from person_a).
sizeintegerNo700Output width/height in px (from person_a).
theme_typestringNolightTheme: 'light', 'dark', 'mono' (from person_a).
display_settingsobjectNonullPer-person body visibility toggles (sun, moon, mercury... asc/mc, nodes, asteroids).
chart_configobjectNonullAdvanced chart styling controls shared with the SVG/PNG Chart Generator.

display_settings (nested)

Optional body visibility toggles inside each person object.

ParameterTypeRequiredDefaultDescription
sun..plutobooleanNotrueShow or hide major planets.
north_nodebooleanNotrueShow North Node.
ascbooleanNotrueShow Ascendant glyph.
mcbooleanNofalseShow Midheaven glyph.
chiron / asteroids / lilithbooleanNofalseOptional extras.

chart_config (nested)

Optional advanced styling settings shared with the SVG/PNG Chart Generator.

ParameterTypeRequiredDefaultDescription
custom_sign_bg_colorstringNonullSingle sign background color.
custom_house_bg_colorstringNonullSingle house background color.
show_retrograde_markersbooleanNofalseShow retrograde marker on degree text.
retrograde_marker_stylestringNoRR or rx.
houses_inside_planetsbooleanNotruePreferred layout for synastry bi-wheel.
line/ring/aspect widths + colorsvariousNovariesAdvanced visual style controls.

Sample Code

curl -X POST "https://api.freeastroapi.com/api/v1/natal/chart/synastry" \
 -H "Content-Type: application/json" \
 -H "x-api-key: YOUR_API_KEY" \
 -d '{
  "person_a": {
    "name": "Person A",
    "year": 1990,
    "month": 5,
    "day": 15,
    "hour": 14,
    "minute": 30,
    "time_known": true,
    "city": "London",
    "tz_str": "AUTO",
    "format": "svg",
    "size": 900,
    "theme_type": "light"
  },
  "person_b": {
    "name": "Person B",
    "year": 1992,
    "month": 8,
    "day": 6,
    "hour": 6,
    "minute": 45,
    "time_known": true,
    "city": "Paris",
    "tz_str": "AUTO"
  },
  "show_a_aspects": false,
  "show_inter_aspects": true,
  "show_b_aspects": false,
  "person_a_planet_color": "#1565C0",
  "person_b_planet_color": "#C62828",
  "person_a_angle_color": "#1A1A1A",
  "person_b_angle_color": "#1A1A1A",
  "show_person_b_houses": true,
  "show_person_b_angles": true,
  "person_a_zone_bg_color": "#fde3e3",
  "person_a_zone_bg_opacity": 0.55,
  "person_b_zone_bg_color": "#e3ecff",
  "person_b_zone_bg_opacity": 0.55
}' --output synastry_chart.svg

Sample Output (PNG)

Synastry SVG endpoint sample output