Zum Inhalt springen
GET /v1/constellations

The 88 constellations with star counts

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/stars-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/stars-api/v1/constellations" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stars-api/v1/constellations", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stars-api/v1/constellations");
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/constellations",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 88,
        "constellations": [
            {
                "code": "And",
                "name": "Andromeda",
                "stars": 158
            },
            {
                "code": "Ant",
                "name": "Antlia",
                "stars": 44
            },
            {
                "code": "Aps",
                "name": "Apus",
                "stars": 40
            },
            {
                "code": "Aqr",
                "name": "Aquarius",
                "stars": 179
            },
            {
                "code": "Aql",
                "name": "Aquila",
                "stars": 128
            },
            {
                "code": "Ara",
                "name": "Ara",
                "stars": 73
            },
            {
                "code": "Ari",
                "name": "Aries",
                "stars": 85
            },
            {
                "code": "Aur",
                "name": "Auriga",
                "stars": 160
            },
            {
                "code": "Boo",
                "name": "Bootes",
                "stars": 150
            },
            {
                "code": "Cae",
                "name": "Caelum",
                "stars": 20
            },
            {
                "code": "Cam",
                "name": "Camelopardalis",
                "stars": 157
            },
            {
                "code": "Cnc",
                "name": "Cancer",
                "stars": 104
            },
            {
                "code": "CVn",
                "name": "Canes Venatici",
                "stars": 61
            },
            {
                "code": "CMa",
                "name": "Canis Major",
                "stars": 149
            },
            {
                "code": "CMi",
                "name": "Canis Minor",
                "stars": 48
            },
            {
                "code": "Cap",
                "name": "Capricornus",
                "stars": 83
            },
            {
                "code": "Car",
                "name": "Carina",
                "stars": 227
            },
            {
                "code": "Cas",
                "name": "Cassiopeia",
                "stars": 161
            },
            {
                "code": "Cen",
                "name": "Centaurus",
                "stars": 287
            },
            {
                "code": "Cep",
                "name": "Cepheus",
                "stars": 159
            },
            {
                "code": "Cet",
                "name": "Cetus",
                "stars": 200
            },
            {
                "code": "Cha",
                "name": "Chamaeleon",
                "stars": 33
            },
            {
                "code": "Cir",
                "name": "Circinus",
                "stars": 40
            },
            {
                "code": "Col",
                "name": "Col
…