The request: a birth and an age
{ "date": "1973-04-24", "time": "17:25:00", "tz_offset_minutes": 330,
"lat": 19.076, "lng": 72.8777, "age": 53 }ageis an integer from 1 to 150: the birthday being cast, soage: 53is the return in April 2026. There is noyearfield; sending one is a400 VALIDATION_ERROR(Unrecognized key: "year"), as isage: 0.- The body is strict: exactly the five birth fields plus
age. - All four endpoints -
/chart,/planets,/housesand/aspectsunder/v1/western/solar-return/- take this body and are on the Pro plan.
Finding the return moment
The engine takes the natal tropical Sun - 34.1595°, Taurus 4°09′ for this birth - and starts its search at the birth instant plus age × 365.2422 days. Each step measures how far the Sun is from the natal longitude and divides by the Sun's current speed; it stops once the gap is under one arc-second, after at most 12 steps. /chart returns the result as return_utc (to the whole second), return_jd, natal_sun_longitude and the cast chart.
| age | `return_utc` | Mumbai ascendant |
|---|---|---|
| 52 | 2025-04-24T02:15:25Z | Taurus 28.50° |
| 53 | 2026-04-24T07:57:43Z | Leo 17.74° |
| 54 | 2027-04-24T13:39:46Z | Scorpio 7.58° |
Each return lands about 5 h 42 m later in the day than the last until a leap day pulls it back, so the return can fall on the day before or after the calendar birthday. The Sun in the age-53 return chart is at 34.159521° against the natal 34.159524° - a hundredth of an arc-second apart. Always display the returned instant (it is UTC) rather than assuming the birthday.
Birthplace or current residence
The endpoint has no separate location field - location is rejected as an unrecognised key. It casts the return chart for whatever lat and lng you send. Because the Sun's position is geocentric, the coordinates do not move the return instant at all; they only move the angles and houses. So the endpoint gives you both techniques:
- Birthplace return: send the birth exactly as recorded.
- Relocated return: keep
date,timeandtz_offset_minutesfrom the birth, and replace onlylatandlngwith where the person is on the birthday.
# solar_return.py - Python 3.9+, standard library only.
import json, os, urllib.request
API = os.environ.get("ASTRONODE_API", "https://api.astronode.dev")
KEY = os.environ["ASTRONODE_API_KEY"]
# Birth moment: keep date, time and tz_offset_minutes from the BIRTH.
BIRTH = {"date": "1973-04-24", "time": "17:25:00", "tz_offset_minutes": 330}
BIRTHPLACE = {"lat": 19.076, "lng": 72.8777} # Mumbai
RESIDENCE = {"lat": 51.5074, "lng": -0.1278} # London, where they spend the birthday
def houses(place, age):
body = {**BIRTH, **place, "age": age}
req = urllib.request.Request(
API + "/v1/western/solar-return/houses",
data=json.dumps(body).encode(),
headers={"Authorization": "Bearer " + KEY, "Content-Type": "application/json"},
)
return json.load(urllib.request.urlopen(req))["data"]
for label, place in [("birthplace", BIRTHPLACE), ("residence", RESIDENCE)]:
d = houses(place, 53)
asc, mc = d["ascendant"], d["midheaven"]
print(f"{label:10} {d['return_utc']} Asc {asc['sign']} {asc['degree']:.2f} MC {mc['sign']} {mc['degree']:.2f}")$ python3 solar_return.py birthplace 2026-04-24T07:57:43.000Z Asc Leo 17.74 MC Taurus 17.14 residence 2026-04-24T07:57:43.000Z Asc Cancer 4.21 MC Aquarius 29.56
Do not change tz_offset_minutes to the new place's offset. It is part of the birth moment, not the return location. Sending the London coordinates with tz_offset_minutes: 0 moved the birth by five and a half hours and produced a return at 13:27:31 UTC with a Virgo ascendant - a different person's chart.
House cusps and the polar limit
The chart is tropical with Placidus houses by default (chart.meta.house_system: "placidus"); send house_system - placidus, koch, equal, whole-sign or porphyry - to change it. /houses returns ascendant, midheaven and twelve houses entries, each with cusp_longitude, sign and degree_in_sign. Planets carry a house number from those cusps: the return Sun is in the 9th house for Mumbai, just past the midheaven at 13:27 IST, and in the 11th for London.
Placidus cannot be computed for some moments inside the polar circles. A return cast for Tromsø (69.65° N) answers 400 VALIDATION_ERROR explaining that some ecliptic degrees never rise there and suggesting porphyry, equal or whole-sign houses. Send one of those as house_system and the same request returns the chart: for the sample birth at age 53, the return falls at 07:57:43 UTC on 24 April 2026 with a Leo 13.14° Ascendant in all three, and the Sun lands in the 9th house with equal houses and the 10th with whole-sign or porphyry. For a product with polar users, catch the 400 and retry once with porphyry, or default to it above about 66° latitude.
/aspects lists the aspects inside the return chart, not return-to-natal contacts. It includes a pair you will probably filter before display: the ascendant and midheaven are listed as aspecting each other. (Before engine 1.4.2 it also listed the True Node opposing the South Node, which is true by construction; that pair is no longer returned.)
Not the same as a Varshphal
The Vedic annual chart solves the same kind of problem with the sidereal Sun and lands hours away - for this birth, /v1/varshphal/year-chart with year: 53 returns 2026-04-25T02:07:50Z, the next morning. It also casts for the birth place and builds Muntha and Mudda dasha on top. If a user asks for "my solar return", the tradition decides which endpoint answers; the Varshphal guide covers the Tajika side.
Questions
- Does the solar return endpoint use the birthplace or the current location?
- It casts the chart for the
latandlngin the request and has no separate location field. Send the birth coordinates for a birthplace return; keep the birth date, time andtz_offset_minutesand change onlylatandlngfor a relocated return. The return instant does not change. - How accurate is the solar return moment?
- The engine iterates on the tropical Sun's longitude until it is within one arc-second of the natal value, then returns the instant in UTC to the whole second as
return_utc. - Which house system does the solar return chart use?
- Placidus, with no option to change it. Inside the polar circles, where Placidus is undefined for some moments, the request returns
400 VALIDATION_ERROR.