Zum Inhalt springen
GET /v1/seasons

Equinoxes & solstices of a year

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/astronomy-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/astronomy-api/v1/seasons" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/astronomy-api/v1/seasons", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/astronomy-api/v1/seasons");
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/seasons",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "year": 2026,
        "june_solstice": "2026-06-21T08:25:00.316Z",
        "march_equinox": "2026-03-20T14:45:36.044Z",
        "december_solstice": "2026-12-21T20:50:22.187Z",
        "september_equinox": "2026-09-23T00:05:38.617Z"
    },
    "meta": {
        "timestamp": "2026-05-30T22:48:45.677Z",
        "request_id": "a931d2e7-84ac-4007-8a27-85e3ccadf621"
    },
    "status": "ok",
    "message": "OK",
    "success": true
}