/v1/brightest
Brightest stars (overall or in a constellation)
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/stars-api/v1/brightest" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stars-api/v1/brightest", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stars-api/v1/brightest");
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/brightest",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"count": 10,
"stars": [
{
"id": 0,
"ra": 0,
"dec": 0,
"hip": null,
"name": "Sol",
"bayer": null,
"magnitude": -26.7,
"distance_ly": null,
"abs_magnitude": 4.85,
"constellation": null,
"spectral_class": "G2V",
"constellation_name": null
},
{
"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"
},
{
"id": 30365,
"ra": 6.399195,
"dec": -52.69566,
"hip": "30438",
"name": "Canopus",
"bayer": "Alp Car",
"magnitude": -0.62,
"distance_ly": 309.15,
"abs_magnitude": -5.504,
"constellation": "Car",
"spectral_class": "F0Ib",
"constellation_name": "Carina"
},
{
"id": 69451,
"ra": 14.26103,
"dec": 19.18241,
"hip": "69673",
"name": "Arcturus",
"bayer": "16Alp Boo",
"magnitude": -0.05,
"distance_ly": 36.72,
"abs_magnitude": -0.307,
"constellation": "Boo",
"spectral_class": "K2IIIp",
"constellation_name": "Bootes"
},
{
"id": 71456,
"ra": 14.660765,
"dec": -60.833976,
"hip": "71683",
"name": "Rigil Kentaurus",
"bayer": "Alp1Cen",
"magnitude": -0.01,
"distance_ly": 4.32,
"abs_magnitude": 4.379,
"constellation": "Cen",
"spectral_class": "G2V",
"constellation_name": "Centaurus"
},
{
"id": 90979,
"ra": 18.61564,
"dec": 38.783692,
"hip": "91262",
"name": "Vega",
"bayer": "3Alp Lyr",
"magnitude": 0.03,
"distance_ly": 25.04,
"abs_magnitude": 0.604,
"constellation": "Lyr",
"spectral_class": "A0Vvar",
"constellation_name": "Lyra"
},
{
"id": 24549,
"ra": 5.27815,
"dec": 45.997991,
"hip": "24608",
…