/v1/star
A single star by name or id
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/stars-api/v1/star" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stars-api/v1/star", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stars-api/v1/star");
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/stars-api/v1/star",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"id": 32263,
"ra": 6.752481,
"dec": -16.716116,
"hip": "32349",
"name": "Sirius",
"bayer": "9Alp CMa",
"magnitude": -1.44,
"distance_ly": 8.6,
"abs_magnitude": 1.454,
"constellation": "CMa",
"spectral_class": "A0m...",
"constellation_name": "Canis Major"
},
"meta": {
"timestamp": "2026-05-31T02:18:48.264Z",
"request_id": "48d38efa-7188-468a-acaa-4069e09de660"
},
"status": "ok",
"message": "Star retrieved",
"success": true
}