Zum Inhalt springen
GET /v1/meta

Spec

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "notes": "Feet, nm, arcmin (standard refraction). horizon = 1.169·√h_ft; dip = 0.97·√h_ft; geographic range = 1.169·(√h_eye+√h_obj). Geometric only — for luminous range use the light's nominal range. For great-circle distance use a geo-distance API.",
        "service": "horizon-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/horizon": "Distance to the sea horizon and dip from the height of eye.",
            "GET /v1/object-height": "Object height needed to be seen at a target range.",
            "GET /v1/geographic-range": "Range a light/landmark is first seen (eye + object)."
        },
        "description": "Sea-horizon and visibility maths: distance to the horizon and dip, geographic range of a light, and object height for a range."
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:58.775Z",
        "request_id": "c012a832-4d03-4d0e-b5d8-6dcbde6dff4d"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}