/v1/star
A single star by name or id
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}