Naar de inhoud
GET /v1/search

Search & filter stars

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/stars-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "count": 8,
        "limit": 20,
        "total": 8,
        "offset": 0,
        "filters": {
            "q": null,
            "named": false,
            "constellation": "Ori",
            "max_magnitude": 3
        },
        "results": [
            {
                "id": 24378,
                "ra": 5.242298,
                "dec": -8.20164,
                "hip": "24436",
                "name": "Rigel",
                "bayer": "19Bet Ori",
                "magnitude": 0.18,
                "distance_ly": 862.85,
                "abs_magnitude": -6.933,
                "constellation": "Ori",
                "spectral_class": "B8Ia",
                "constellation_name": "Orion"
            },
            {
                "id": 27919,
                "ra": 5.919529,
                "dec": 7.407063,
                "hip": "27989",
                "name": "Betelgeuse",
                "bayer": "58Alp Ori",
                "magnitude": 0.45,
                "distance_ly": 497.95,
                "abs_magnitude": -5.469,
                "constellation": "Ori",
                "spectral_class": "M2Ib",
                "constellation_name": "Orion"
            },
            {
                "id": 25273,
                "ra": 5.418851,
                "dec": 6.349702,
                "hip": "25336",
                "name": "Bellatrix",
                "bayer": "24Gam Ori",
                "magnitude": 1.64,
                "distance_ly": 252.44,
                "abs_magnitude": -2.804,
                "constellation": "Ori",
                "spectral_class": "B2III",
                "constellation_name": "Orion"
            },
            {
                "id": 26246,
                "ra": 5.603559,
                "dec": -1.20192,
                "hip": "26311",
                "name": "Alnilam",
                "bayer": "46Eps Ori",
                "magnitude": 1.69,
                "distance_ly": 1976.7,
                "abs_magnitude": -7.223,
                "constellation": "Ori",
                "spectral_class": "B0Ia",
                "constellation_name": "Orion"
            },
            {
                "id": 26662,
                "ra": 5.679313,
                "dec": -1.942572,
                "hip": "26727",
                "name": "Alnitak",
                "bayer": "50Zet Ori",
                "magnitude": 1.74,
                "distance_ly": 736.24,
                "abs_magnitude": -5.028,
                "constellation": "Ori",
                "spectral_class": "O9.5Ib SB",
                "constellation_name": "Orion"
            },
            {
                "id": 27298,
                "ra": 5.795941,
                "dec": -9.669605,
                "hip": "27366",
                "name": "Saiph",
                "bayer": "53Kap Ori",
                "magnitude": 2.07,
                "distance_ly": 647.13,
                "abs_magnitude": -4.418,
                "constellation": "Ori",
…