Skip to content
Get API key
WesternSandbox

Western Birth Chart Similarity API

"operation": "western-chart-similarity"

Compare a birth chart with a ranked set of similar charts.

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

Request

Make a calculation

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

Send these sample parameters under parameters: natal, settings. Use the birth shape shown in the request. For split fields, year/month/day are local calendar integers and hour/minute are local 24-hour time. lat/lng are decimal degrees and tz_str is an IANA time zone or AUTO where shown. Nested datetime and location objects follow the sample. The request uses synthetic inputs where applicable. The sample includes optional settings when relevant.

request.sh
curl -X POST "$MANTRILO_API_URL/v1/astrology/calculate" \
  -H "Authorization: Bearer $MANTRILO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"parameters":{"natal":{"name":"Sample User","year":1995,"month":9,"day":5,"hour":20,"minute":0,"city":"Paris, France","lat":48.8566,"lng":2.3522,"tz_str":"Europe/Paris","true_node":true},"settings":{"top_n":3,"include_angles":true,"close_position_orb_deg":5,"close_angle_orb_deg":5,"close_aspect_orb_deg":2,"max_detail_items":3}},"operation":"western-chart-similarity"}'

Response

What comes back.

Illustrative response excerpt

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "western-chart-similarity",
    "result": {
      "matches": [
        {
          "score": 71,
          "summary": {
            "why_this_match": "Several similar placements."
          }
        }
      ]
    }
  },
  "calculated": true
}

Western

Build with the result

Display the ranked matches and their scores from data.result. Example field: data.result.matches.

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