Naar de inhoud
GET /v1/meta

Source & units

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "note": "Live close approaches of near-Earth asteroids and comets. dist_max in AU (default 0.05 ≈ 19.5 lunar distances). Diameter estimated from absolute magnitude.",
        "units": {
            "au": "astronomical units",
            "km": "kilometres",
            "lunar": "lunar distances (1 LD = 384,400 km)",
            "velocity": "km/s relative to Earth"
        },
        "source": "NASA/JPL CAD — Close-Approach Data API",
        "endpoints": [
            "/v1/approaches",
            "/v1/object",
            "/v1/meta"
        ]
    },
    "meta": {
        "timestamp": "2026-05-31T06:28:02.554Z",
        "request_id": "6c7a585a-d2e7-4d64-8c3d-c9e9c31a03e1"
    },
    "status": "ok",
    "message": "Meta retrieved",
    "success": true
}