/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/lighttime-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lighttime-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lighttime-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/lighttime-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"notes": "Distance units: m, km, mi, au, ly (light-year), pc (parsec), ls (light-second), lm (light-minute). Time units: s, min, h, day, year. c = 299,792,458 m/s exactly.",
"service": "lighttime-api",
"constants": {
"speed_of_light_ms": 299792458
},
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/distance": "Distance light covers in a time (s, min, h, day, year).",
"GET /v1/round-trip": "One-way and round-trip light/communication delay to a target.",
"GET /v1/travel-time": "Light travel time from a distance (m, km, mi, au, ly, pc, light-second/minute)."
},
"description": "Light-travel-time calculator: the time light takes to cross a distance, the distance light covers in a time, and the one-way and round-trip communication delay to a target."
},
"meta": {
"timestamp": "2026-06-05T19:50:33.447Z",
"request_id": "694f9a85-fc14-43f1-8ca3-852d0cd42eef"
},
"status": "ok",
"message": "Meta",
"success": true
}