Skip to main content

Planetary transits — Gochar

Scans a date range for planetary sign ingresses and retrograde/direct station events. Requires authenticated API key access (Vedic tier or above in product terms). Returns grouped transit events for supported planets. Also known as Gochar. Returns planetary sign ingresses and retrograde/direct station events for a given date range.

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.

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","latitude":28.6139,"longitude":77.209,"timezone":"Asia/Kolkata"}'

Example response

{
"success": true,
"message": "success",
"data": {
"ingresses": [
{
"planet": "Moon",
"from_sign": 1,
"to_sign": 2,
"jd": 2461042.6640625,
"date_iso": "2026-01-02T03:56:15",
"is_sankranti": false,
"retrograde_ingress": false
},
{
"planet": "Moon",
"from_sign": 2,
"to_sign": 3,
"jd": 2461044.6762695312,
"date_iso": "2026-01-04T04:13:49",
"is_sankranti": false,
"retrograde_ingress": false
},
"... and 1 more item"
],
"stations": []
}
}

Response fields

FieldTypeDescription
successbooleanTrue if the request succeeded
messagestringHuman-readable status message
dataobject
data.ingressesarray[object]All sign ingress events in the requested date range. Includes all 9 Vedic planets: Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn, Rahu, Ketu.
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[].jdnumberJulian Day number of the ingress moment
data.ingresses[].date_isostringDate of ingress in YYYY-MM-DD format
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.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_isostringDate of station in YYYY-MM-DD format
data.stations[].longitudenumberSidereal longitude of the planet at the moment of station

Errors

CodeDescriptionReference
authentication_failedMissing or invalid API key.authentication_failed
ephemeris_unavailableUpstream ephemeris service error.ephemeris_unavailable
insufficient_tierAPI key tier does not include this endpoint.insufficient_tier
internal_errorUnexpected server error.internal_error
ip_rate_limit_exceededToo many requests in a short window.ip_rate_limit_exceeded
payload_too_largeRequest body exceeds the size limit.payload_too_large
resource_not_foundReferenced resource was not found.resource_not_found
validation_errorRequest body failed schema validation.validation_error