Skip to content
Get API key
CoreSandbox

Instant Panchang API

"operation": "panchang"

Show Panchang elements 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": "panchang" 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":"panchang"}'

Response

What comes back.

Verified sandbox response excerpt

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "panchang",
    "engineVersion": "mantrilo-astro-1",
    "datetimeUtc": "2026-11-12T12:00:00.000Z",
    "panchang": {
      "elongationDegrees": 35.69949,
      "tithi": {
        "number": 3,
        "numberWithinPaksha": 3,
        "paksha": "Shukla"
      },
      "nakshatra": {
        "number": 19,
        "name": "Mula",
        "pada": 1
      },
      "yoga": {
        "number": 7
      },
      "karana": {
        "halfTithiNumber": 6,
        "name": "Garaja"
      },
      "sunRashi": {
        "number": 7,
        "name": "Tula",
        "degreesWithin": 25.881416
      },
      "moonRashi": {
        "number": 9,
        "name": "Dhanu",
        "degreesWithin": 1.580906
      }
    }
  },
  "calculated": true
}

Core

Build with the result

Render data.panchang.tithi, nakshatra, yoga and karana.

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

This calculation describes one instant. For a local calendar day and sunrise-based timings, see the Daily Panchang API. Its location and time zone determine the local day.