Skip to content
Get API key
VedicSandbox

Vedic Moon Sign Compatibility API

"operation": "vedic-compatibility"

Compare two profiles using Moon placements.

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

Request

Make a calculation

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

Send these sample parameters under parameters: person1_moon, person2_moon, language. The request uses synthetic inputs where applicable. The sample includes optional settings when relevant.

Hindi responses. Add "language": "hi" under parameters to get the messages and the sign and nakshatra names in Hindi. Codes, scores and calculated values stay the same as in English.
request.sh
curl -X POST "$MANTRILO_API_URL/v1/astrology/calculate" \
  -H "Authorization: Bearer $MANTRILO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"parameters":{"person1_moon":{"label":"Person 1","moon_nakshatra":22,"moon_sign":10,"moon_degree":14.2,"moon_pada":2},"person2_moon":{"label":"Person 2","moon_nakshatra":13,"moon_sign":6,"moon_degree":8.5,"moon_pada":3},"language":"en"},"operation":"vedic-compatibility"}'

Response

What comes back.

Illustrative response excerpt

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "vedic-compatibility",
    "result": {
      "ashtakoota": {
        "score": 25,
        "max_score": 36
      }
    }
  },
  "calculated": true
}

Vedic

Build with the result

Display compatibility scores and factors from data.result. Example field: data.result.ashtakoota.score.

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