Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/horizon-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}