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/lighttime-api

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "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
}