Skip to content
GET /v1/moon

Detailed lunar phase & next phases

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/astronomy-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/astronomy-api/v1/moon" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/astronomy-api/v1/moon", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/astronomy-api/v1/moon");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/astronomy-api/v1/moon",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "next": {
            "new_moon": "2026-06-15T02:54:39.007Z",
            "full_moon": "2026-05-31T08:45:48.291Z",
            "last_quarter": "2026-06-08T10:00:59.929Z",
            "first_quarter": "2026-06-21T21:55:57.925Z"
        },
        "age_days": 14.116,
        "datetime": "2026-05-30T22:48:45.472Z",
        "position": {
            "azimuth_deg": 181.8297,
            "altitude_deg": 10.6284,
            "above_horizon": true
        },
        "phase_name": "Full Moon",
        "distance_km": 405839,
        "phase_angle_deg": 175.463,
        "apparent_magnitude": -12.39,
        "illuminated_fraction": 0.99656
    },
    "meta": {
        "timestamp": "2026-05-30T22:48:45.476Z",
        "request_id": "3ba07b77-dd6a-43b6-b484-0f3d906640fb"
    },
    "status": "ok",
    "message": "OK",
    "success": true
}