Naar de inhoud
GET /v1/search

Search observatories by name or code

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "count": 4,
        "query": "paranal",
        "total": 4,
        "observatories": [
            {
                "code": "309",
                "name": "Cerro Paranal",
                "latitude": -24.4818,
                "lon_east": 289.5957,
                "longitude": -70.4043,
                "rho_cos_phi": 0.909943,
                "rho_sin_phi": -0.414336,
                "has_location": true
            },
            {
                "code": "W75",
                "name": "SPECULOOS-South Observatory, Paranal",
                "latitude": -24.4707,
                "lon_east": 289.6094,
                "longitude": -70.3906,
                "rho_cos_phi": 0.910001,
                "rho_sin_phi": -0.41415,
                "has_location": true
            },
            {
                "code": "W91",
                "name": "VHS-VISTA, Cerro Paranal",
                "latitude": -24.4705,
                "lon_east": 289.6026,
                "longitude": -70.3974,
                "rho_cos_phi": 0.910007,
                "rho_sin_phi": -0.414148,
                "has_location": true
            },
            {
                "code": "X11",
                "name": "VLT Survey Telescope, Paranal",
                "latitude": -24.4809,
                "lon_east": 289.596,
                "longitude": -70.404,
                "rho_cos_phi": 0.909953,
                "rho_sin_phi": -0.414324,
                "has_location": true
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:11.336Z",
        "request_id": "4a43f320-e1f4-47a2-a9fe-aa26320c38b9"
    },
    "status": "ok",
    "message": "Search results retrieved successfully",
    "success": true
}