/v1/observatory
Observatory by MPC code
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/observatories-api/v1/observatory" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/observatories-api/v1/observatory", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/observatories-api/v1/observatory");
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/observatories-api/v1/observatory",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"observatory": {
"code": "309",
"name": "Cerro Paranal",
"latitude": -24.4818,
"lon_east": 289.5957,
"longitude": -70.4043,
"rho_cos_phi": 0.909943,
"rho_sin_phi": -0.414336,
"has_location": true
}
},
"meta": {
"timestamp": "2026-06-08T18:25:11.218Z",
"request_id": "5b47bf8a-734f-4729-acc1-d2a45815aaa3"
},
"status": "ok",
"message": "Observatory retrieved successfully",
"success": true
}