/v1/meta
Styles & locales
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/datelocale-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/datelocale-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/datelocale-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/datelocale-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Humanise timestamps and format dates for any locale and timezone with full ICU. /v1/relative?from=2026-06-02T10:00:00Z&locale=de turns an instant into a localised relative phrase against now (or a given 'to') — 'vor 3 Stunden', '3 hours ago', 'in 2 days', 'il y a 5 minutes' — automatically choosing the best unit (second to year). /v1/format?date=...&locale=fr-FR&dateStyle=full&timeStyle=short&timezone=Europe/Paris renders a localised date/time string (e.g. 'mardi 2 juin 2026 à 15:30') with a parts breakdown, honouring the locale, named IANA timezone and 12/24-hour preference. Pass dates as ISO 8601 or unix timestamps. Everything is computed locally with no network calls. Ideal for internationalised UIs, feeds, notifications, comments and dashboards. A relative-time and locale date formatter — distinct from current-time-in-a-timezone (time), the UTC parse/token toolkit (datetime) and number/currency formatting (numberformat). No key, no cache.",
"styles": [
"full",
"long",
"medium",
"short"
],
"endpoints": [
"/v1/relative",
"/v1/format",
"/v1/meta"
],
"example_locales": [
"en-US",
"de-DE",
"fr-FR",
"es-ES",
"ja-JP",
"ar-EG",
"pt-BR",
"zh-CN"
]
},
"meta": {
"timestamp": "2026-06-01T23:40:41.683Z",
"request_id": "004535e9-df95-40ed-a71b-a35c497d4b1a"
},
"status": "ok",
"message": "Meta retrieved",
"success": true
}