Vai al contenuto
GET /v1/moon

Detailed lunar phase & next phases

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/astronomy-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}