Aller au contenu
GET /v1/hour-angle

Hour angle

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/sidereal-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "Hour angle HA = LST − RA. HA = 0 means the object is on the local meridian (highest point); positive HA is west of the meridian, negative is east.",
        "inputs": {
            "lst": 18,
            "right_ascension": 12
        },
        "position": "west of the meridian (setting)",
        "gmst_hours": null,
        "hour_angle_hours": 6,
        "hour_angle_degrees": 90,
        "hour_angle_signed_hours": 6
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:26.693Z",
        "request_id": "d5ef4164-89bd-4377-8335-676ae731e28a"
    },
    "status": "ok",
    "message": "Hour angle",
    "success": true
}