Skip to content
Get API key
UtilitiesSandbox

Moon Phase API

"operation": "moon-phase"

Add a Moon phase card for a day.

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

Request

Make a calculation

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

Send these sample parameters under parameters: date. 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":{"date":"2026-11-12"},"operation":"moon-phase"}'

Response

What comes back.

Illustrative response excerpt

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "moon-phase",
    "result": {
      "phase": {
        "name": "Waxing Crescent",
        "illumination": 0.14
      }
    }
  },
  "calculated": true
}

Utilities

Build with the result

Display phase and illumination from data.result. Example field: data.result.phase.

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