/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}