/v1/moon
Detailed lunar phase & next phases
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}