Skip to content
Get API key
WesternSandbox

Western Ephemeris API

"operation": "western-ephemeris"

Show planetary motion for selected dates.

POST/v1/astrology/calculate
  • 500 free calls a month
  • No card needed
  • Failed calculations are free

Request

Make a calculation

Send "operation": "western-ephemeris" to POST /v1/astrology/calculate from your server with your API key.

Send these sample parameters under parameters: start, bodies, include_moon_void_of_course, fixed_stars. The request uses synthetic inputs where applicable. The sample includes optional settings when relevant.

request.sh
curl -X POST "$MANTRILO_API_URL/v1/astrology/calculate" \
  -H "Authorization: Bearer $MANTRILO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"parameters":{"start":"2026-03-01T00:00:00Z","bodies":["Sun","Moon","Mercury"],"include_moon_void_of_course":true,"fixed_stars":["Spica","Regulus"]},"operation":"western-ephemeris"}'

Response

What comes back.

Illustrative response excerpt

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "western-ephemeris",
    "result": {
      "data": {
        "timestamp": "2026-03-01T00:00:00Z",
        "astrology": {
          "retrograde_bodies": [
            "Mercury"
          ]
        }
      }
    }
  },
  "calculated": true
}

Western

Build with the result

Display the dates and planetary positions from data.result. Example field: data.result.data.astrology.

A successful call uses one content request. Sandbox and live requests have separate usage totals. Failed calculations are refunded.