/api/astro/mundane/events/1 creditSky events timeline
Every sky event in a window, as one ordered timeline. Ingresses, retrograde stations, lunations and eclipses merged and sorted — a year-ahead calendar in one call rather than four. This is the feed to build a scheduler or a content calendar on. Use `include` to pick which families you want and `bodies` to narrow the planets; a five-year window with everything switched on is a large response. Eclipses come from the same engine code as the /api/astro/eclipse/ endpoints, so the two never disagree.
https://yogataraapi.prahlad.app/api/astro/mundane/events/Authentication
Send your key in the X-API-Key header. Keys are server-side credentials — never put one in browser JavaScript or a mobile app.
X-API-Key: yt_live_a1b2c3d4_…
Content-Type: application/jsonRequest fields
| Field | Type | Required | Notes |
|---|---|---|---|
| date_time | string (date-time) | required | The moment to calculate for, ISO 8601. ALWAYS include an offset or a trailing Z - a value with no zone is read as Asia/Kolkata (UTC+05:30), not UTC, and can return the previous day's result with a 200. '2026-09-01T06:00:00Z' and '2026-09-01 06:00:00' are different instants and give different answers. |
| end_date_time | string (date-time) | required | End of the window. |
| bodies | array | optional | Defaults to all eleven. Narrow it to keep responses small. |
| include | array | optional | Which event families to merge. Defaults to all four. |
| keys | array | optional | Which calculations to return, as a list of names. See the key table for this endpoint; an unrecognised name rejects the whole request. One call costs one credit however many keys you ask for, so request everything you need at once rather than making several calls. |
| latitude | number (double) | optional | Latitude of the place, in decimal degrees. Positive is north, negative is south. Example: 26.9124 for Jaipur, 40.7128 for New York. Minutes and seconds are not accepted - convert first. |
| longitude | number (double) | optional | Longitude of the place, in decimal degrees. Positive is east, negative is west. Example: 75.7873 for Jaipur, -74.0060 for New York. Note the sign: a missing minus puts New York in China. |
| phases | array | optional | Defaults to all four. Ask for new_moon and full_moon only if you do not need the quarters. |
| timezone_as_float | number (double) | optional | UTC offset of the place, in hours, as a decimal. Example: 5.5 for India (UTC+05:30), -5 for New York in winter, 5.75 for Nepal. This is NOT validated against date_time - if the two disagree you get a successful response for the wrong moment, so derive both from the same source. Use the offset in force on that date, not today's: a summer birth in a country with daylight saving needs the summer offset. min -12 · max 14 |
Example request
curl -X POST https://yogataraapi.prahlad.app/api/astro/mundane/events/ \
-H "X-API-Key: $OCCULT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date_time":"2026-01-01T00:00:00+00:00","end_date_time":"2026-06-30T23:59:59+00:00","timezone_as_float":0,"bodies":["mars","mercury"],"phases":["new_moon","full_moon"]}'Response
{
"_truncated": true,
"_note": "Response shortened for the catalogue.",
"preview": "{\"data\": {\"count\": 30, \"counts_by_type\": {\"ingress\": 12, \"lunation\": 13, \"eclipse\": 2, \"station\": 3}, \"included\": [\"eclipses\", \"ingresses\", \"lunations\", \"stations\"], \"events\": [{\"type\": \"ingress\", \"body\": \"mercury\", \"datetime_utc\": \"2026-01-01T21:10:42Z\", \"julian_day_ut\": 2461042.38243192, \"from_sign\": \"Sagittarius\", \"to_sign\": \"Capricorn\", \"retrograde\": false, \"sign\": \"Capricorn\", \"sign_index\": 10, \"degree_in_sign\": 0.0}, {\"type\": \"lunation\", \"phase\": \"full_moon\", \"datetime_utc\": \"2026-01-03T10:02:55Z\", \"julian_day_ut\": 2461043.91868991, \"elongation_deg\": 180.0, \"moon\": {\"sign\": \"Cancer\", \"sign_index\": 4, \"degree_in_sign\": 13.0329}, \"sun\": {\"sign\": \"Capricorn\", \"sign_index\": 10, \"degree_in_sign\": 13.0329}}, {\"type\": \"lunation\", \"phase\": \"new_moon\", \"datetime_utc\": \"2026-01-18T19:51:59Z\", \"julian_day_ut\": 2461059.32776864, \"elongation_deg\": 0.0, \"moon\": {\"sign\": \"Capricorn\", \"sign_index\": 10, \"degree_in_sign\": 28.7321}, \"sun\": {\"sign\": \"Capricorn\", \"sign_index\": 10, \"degree_in_sign\": 28.7321}}, {\"type\": \"ingress\", \"body\": \"mercury\", \"datetime_utc\": \"2026-01-20T16:41:11Z\", \"julian_day_ut\": 2461061.19526785, \"from_sign\": \"Capricorn\", \"to_sign\": \"Aquarius\", \"retrograde\": false, \"sign\": \"Aquarius\", \"sign_index\": 11, \"degree_in_sign\": 0.0}, {\"type\": \"ingress\", \"body\": \"mars\", \"datetime_utc\": \"2026-01-23T09:16:45Z\", \"julian_day_ut\": 2461063.88663757, \"from_sign\": \"Capricorn\", \"to_sign\": \"Aquarius\", \"retrograde\": false, \"sign\": \"Aquarius\", \"sign_index\": 11, \"degree_in_sign\": 0.0}, {\"type\": \"lunation\", \"phase\": \"full_moon\", \"datetime_utc\": \"2026-02-01T22:09:15Z\", \"julian_day_ut\": 2461073.4230902, \"elongation_deg\": 180.0, \"moon\": {\"sign\": \"Leo\", \"sign_index\": 5, \"degree_in_sign\": 13.0612}, \"sun\": {\"sign\": \"Aquarius\", \"sign_index\": 11, \"degree_in_sign\": 13.0612}}, {\"type\": \"ingress\", \"body\": \"mercury\", \"datetime_utc\": \"2026-02-06T22:48:04Z\", \"julian_day_ut\": 2461078.45004688, \"from_sign\": \"Aquarius\", \"to_sign\": \"Pisces\", \"retrograde\": false, \"sign\": \"Aquarius\", \"sign_index\": 11, \"degree_in_sign\": 30.0}, {\"type\": \"lunation\", \"phase\": \"new_moon\", \"datetime_utc\": \"2026-02-17T12:01:09Z\", \"julian_day_ut\": 2461089.00080288, \"elongation_deg\": 0.0, \"moon\": {\"sign\": \"Aquarius\", \"sign_index\": 11, \"degree_in_sign\": 28.8289}, \"sun\": {\"sign\": \"Aquarius\", \"sign_index\": 11, \"degree_in_sign\": 28.8289}}, {\"type\": \"eclipse\", \"kind\": \"solar\", \"eclipse_type\": \"annular\", \"datetime_utc\": \"2026-02-17T12:11:53Z\", \"julian_day_ut\": 2461089.00825231, \"times\": {\"maximum\": \"2026-02-17T12:11:53Z\", \"local_apparent_noon\": \"2026-02-17T11:18:50Z\", \"begin\": \"2026-02-17T09:56:47Z\", \"end\": \"2026-02-17T14:27:39Z\", \"totality_begin\": \"2026-02-17T11:43:04Z\", \"totality_end\": \"2026-02-17T12:41:04Z\", \"centre_line_begin\": \"2026-02-17T11:48:26Z\", \"centre_line_end\": \"2026-02-17T12:35:43Z\"}}, {\"type\": \"station\", \"body\": \"mercury\", \"station\": \"retrograde\", \"datetime_utc\": \"2026-02-26T06:48:10Z\", \"julian_day_ut\": 2461097.78344903, \"sign\": \"Pisces\", \"sign_index\": 12, \"degree_in_sign\": 22.5653}, {\"type\": \"ingress\", \"body\": \"mars\", \"datetime_utc\": \"2026-03-02T14:15:50Z\", \"julian_day_ut\": 2461102.09433434, \"from_sign\": \"Aquarius\", \"to_sign\": \"Pisces\", \"retrograde\": false, \"sign\": \"Pisces\", \"sign_index\": 12, \"degree_in_sign\": 0.0}, {\"type\": \"eclipse\", \"kind\": \"lunar\", \"eclipse_type\": \"total\", \"datetime_utc\": \"2026-03-03T11:33:41Z\", \"julian_day_ut\": 2461102.98172454, \"times\": {\"maximum\": \"2026-03-03T11:33:41Z\", \"partial_begin\": \"2026-03-03T09:50:05Z\", \"partial_end\": \"2026-03-03T13:17:17Z\", \"totality_begin\": \"2026-03-03T11:04:32Z\", \"totality_end\": \"2026-03-03T12:02:51Z\", \"penumbral_begin\": \"2026-03-03T08:44:24Z\", \"penumbral_end\": \"2026-03-03T14:23:07Z\"}}, {\"type\": \"lunation\", \"phase\": \"full_moon\", \"datetime_utc\": \"2026-03-03T11:37:54Z\", \"julian_day_ut\": 2461102.98465322, \"elongation_deg\": 180.0, \"moon\": {\"sign\": \"Virgo\", \"sign_index\": 6, \"degree_in_sign\": 12.8981}, \"sun\": {\"sign\": \"Pisces\", \"sign_index\": 12, \"degree_in_sign\": 12.8981}}, {\"type\": \"lunation\", \"phase\": \"new_moon\", \"datetime_utc\""
}Captured from a real call using the exact request above. Results sit under data.
Errors
Metering errors return { "error": "…", "message": "<code>", "is_error": true }. Show error to people and branch on message. See the error reference.