Skip to content
Get API key
CoreSandbox

Planetary Positions API

"operation": "positions"

Show the planets at a specific instant.

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

Request

Make a calculation

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

datetime must be ISO 8601 with seconds and a UTC offset. Optional ayanamsaDegrees overrides the approximate sidereal offset. The default is a linear Lahiri approximation.

request.sh
curl -X POST "$MANTRILO_API_URL/v1/astrology/calculate" \
  -H "Authorization: Bearer $MANTRILO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"datetime":"2026-11-12T12:00:00Z","operation":"positions"}'

Response

What comes back.

Verified sandbox response excerpt

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "positions",
    "engineVersion": "mantrilo-astro-1",
    "datetimeUtc": "2026-11-12T12:00:00.000Z",
    "planets": [
      {
        "body": "Sun",
        "tropicalLongitudeDegrees": 230.113778,
        "siderealLongitudeDegrees": 205.881416,
        "latitudeDegrees": 0.000047,
        "distanceAU": 0.989889235,
        "motion": {
          "degreesPerDay": 1.006151,
          "retrograde": false
        },
        "rashi": {
          "number": 7,
          "name": "Tula",
          "degreesWithin": 25.881416
        },
        "nakshatra": {
          "number": 16,
          "name": "Vishakha",
          "pada": 2
        }
      }
    ]
  },
  "calculated": true
}

Core

Build with the result

Render data.planets with each body, its longitude in degrees and its rashi or nakshatra.

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