Vai al contenuto
GET /v1/brightest

Brightest stars (overall or in a constellation)

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/stars-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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",
  
…