Skip to content
Get API key
CoreSandbox

Vedic Chart Image API

"operation": "chart-image"

Show a North, South or East Indian chart in an app.

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

Request

Make a calculation

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

Provide birth with an offset-aware ISO datetime (seconds set to 00), decimal latitude/longitude, and an IANA timezone matching the offset. Optionally choose divisions 1 and/or 9 and layout north, south, or east.

request.sh
curl -X POST "$MANTRILO_API_URL/v1/astrology/calculate" \
  -H "Authorization: Bearer $MANTRILO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"birth":{"datetime":"1995-06-20T12:30:00+05:30","latitude":28.6139,"longitude":77.209,"timezone":"Asia/Kolkata"},"divisions":[1,9],"layout":"north","operation":"chart-image"}'

Response

What comes back.

Illustrative response excerpt

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "chart-image",
    "contentType": "image/png",
    "imageBase64": "<PNG bytes encoded as base64>"
  },
  "calculated": true
}

Core

Build with the result

Use data.contentType and data.imageBase64 to render the chart as a data URI.

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