Planetary Positions API
Show the planets at a specific instant.
/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.
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
{
"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.
Related Core capabilities
Same endpoint, another operation.
Instant Panchang API
Show Panchang elements at a specific instant.
"operation": "chart"Vedic Birth Chart API
Build a Lahiri birth chart with optional Dasha periods.
"operation": "daily-panchang"Daily Panchang API
Build a local daily Panchang calendar.
"operation": "match"Guna Milan API
Compare two birth profiles in a compatibility view.
"operation": "chart-image"Vedic Chart Image API
Show a North, South or East Indian chart in an app.
"operation": "places"Find a Place API
Let a user select a birthplace and time zone.
