Skip to content
Get API key
CoreSandbox

Guna Milan API

"operation": "match"

Compare two birth profiles in a compatibility view.

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

Request

Make a calculation

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

Provide person1 and person2. Each needs an ISO 8601 datetime with seconds set to 00 and an offset matching the IANA timezone, plus latitude and longitude in decimal degrees.

request.sh
curl -X POST "$MANTRILO_API_URL/v1/astrology/calculate" \
  -H "Authorization: Bearer $MANTRILO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"person1":{"datetime":"1995-06-20T12:30:00+05:30","latitude":28.6139,"longitude":77.209,"timezone":"Asia/Kolkata"},"person2":{"datetime":"1996-04-25T09:00:00+05:30","latitude":28.6139,"longitude":77.209,"timezone":"Asia/Kolkata"},"operation":"match"}'

Response

What comes back.

Illustrative response excerpt

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "match",
    "score": 25,
    "maxScore": 36,
    "factors": []
  },
  "calculated": true
}

Core

Build with the result

Show data.score out of data.maxScore, followed by data.factors.

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