Skip to main content

Planetary transits — Gochar

Scans a date range for planetary sign ingresses (Moon included) and retrograde/direct station events, each with its exact UTC time. Lahiri sidereal by default; set ayanamsa to 'tropical' for Western (tropical) sign changes, or 'raman' / 'kp' for those ayanamsas. Also known as Gochar.

Endpoint​

POST /v1/astro/transits

Request parameters​

FieldTypeRequiredDescription
from_datestringYesStart of the date range to scan, in YYYY-MM-DD format.
to_datestringYesEnd of the date range to scan, in YYYY-MM-DD format. Maximum range is 3 years (1095 days) from from_date.
ayanamsastringNoZodiac for the sign changes. lahiri (default), raman and kp are sidereal ayanamsas (Vedic). tropical is the Western zodiac with no ayanamsa, so ingresses become Western sign changes (Sun into Aries at the March equinox, Moon sign changes every ~2.5 days). Station moments do not depend on this; only their reported longitude does.

Example request​

curl -X POST "https://api.asterwise.com/v1/astro/transits" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"from_date":"2026-01-01","to_date":"2026-01-07"}'

Example response​

Example response omitted — live API call did not return HTTP 200.

Response fields​

FieldTypeDescription
successbooleanTrue if the request succeeded
messagestringHuman-readable status message
dataobject
data.zodiacstringZodiac used for every event: sidereal (Vedic, default) or tropical (Western).
data.ayanamsastringAyanamsa used: lahiri (default), raman, kp, or tropical (no ayanamsa).
data.ingressesarray[object]All sign ingress events in the requested date range, Moon sign changes included. Covers all 9 Vedic planets: Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn, Rahu, Ketu (Rahu/Ketu are the mean nodes).
data.ingresses[].planetstringPlanet name, e.g. Sun, Mars, Rahu
data.ingresses[].from_signintegerZero-based sign index the planet is leaving, 0 for Aries through 11 for Pisces
data.ingresses[].to_signintegerZero-based sign index the planet is entering
data.ingresses[].from_sign_namestring | nullName of the sign the planet is leaving, e.g. Pisces
data.ingresses[].to_sign_namestring | nullName of the sign the planet is entering, e.g. Aries
data.ingresses[].jdnumberJulian Day number of the ingress moment
data.ingresses[].date_isostringInstant of ingress in UTC, ISO 8601 without an offset (YYYY-MM-DDTHH:MM:SS). Read it as UTC; datetime_utc carries the Z.
data.ingresses[].datetime_utcstring | nullInstant of ingress, ISO 8601 UTC with Z (e.g. 2026-06-02T08:03:11Z).
data.ingresses[].is_sankrantibooleanTrue for solar ingress (Sankranti); false for all other planets.
data.ingresses[].retrograde_ingressbooleanTrue when the planet is retrograde (speed < 0) at the ingress moment.
data.ingresses[].zodiacstring | nullZodiac the signs are measured in: sidereal or tropical.
data.ingresses[].ayanamsastring | nullAyanamsa used: lahiri, raman, kp, or tropical (none).
data.stationsarray[object]All retrograde and direct station events in the requested date range. Only the 7 classical planets (Sun through Saturn) have stations. Rahu and Ketu are always excluded from this list.
data.stations[].planetstringPlanet name. Rahu and Ketu never have station events.
data.stations[].station_typestringretrograde — planet appears to reverse direction. direct — planet resumes forward motion.
data.stations[].jdnumberJulian Day number of the station moment
data.stations[].date_isostringInstant of station in UTC, ISO 8601 without an offset (YYYY-MM-DDTHH:MM:SS). Read it as UTC; datetime_utc carries the Z.
data.stations[].datetime_utcstring | nullInstant of station, ISO 8601 UTC with Z.
data.stations[].longitudenumberLongitude of the planet at the moment of station, in the requested zodiac (sidereal by default; tropical when ayanamsa is tropical).
data.stations[].signinteger | nullZero-based sign index at the station, 0 for Aries through 11 for Pisces
data.stations[].sign_namestring | nullName of the sign at the station, e.g. Gemini
data.stations[].zodiacstring | nullZodiac the longitude is measured in: sidereal or tropical.
data.stations[].ayanamsastring | nullAyanamsa used: lahiri, raman, kp, or tropical (none).

Errors​

CodeDescriptionReference
api_key_invalidInvalid API key format.api_key_invalid
api_key_missingAPI key is missing. Include it in the Authorization header as 'Bearer YOUR_KEY'.api_key_missing
api_key_not_foundThe provided API key was not found. Verify the key in your Asterwise dashboard.api_key_not_found
api_key_revokedThis API key has been revoked.api_key_revoked
burst_limit_exceededToo many requests per minute. Please slow down.burst_limit_exceeded
internal_errorSomething went wrong on our end. Please try again, or contact [email protected] if the problem persists. Include your request_id when contacting support.internal_error
ip_rate_limit_exceededToo many requests from this IP address. Please slow down.ip_rate_limit_exceeded
monthly_usage_limit_exceededMonthly API call limit reached. Upgrade your plan to continue.monthly_usage_limit_exceeded
payload_too_largeRequest body exceeds maximum allowed size of 64KB.payload_too_large
subscription_expiredYour subscription has expired. Please renew at asterwise.com/dashboard to continue.subscription_expired
validation_errorThe request couldn't be processed. See the 'details' field for specific field-level issues.validation_error