/v1/meta
Types & example locales
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/displaynames-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/displaynames-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/displaynames-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/displaynames-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"note": "Get the localized display name of a code in any language — countries/regions, languages, currencies, scripts and calendars. /v1/name?code=US&type=region&locale=fr returns 'États-Unis'; code=de&type=language&locale=fr returns 'allemand'; code=EUR&type=currency returns 'Euro'. /v1/list?type=region&locale=ja returns every country name localized (e.g. for a Japanese country dropdown), sorted in that locale's collation; works for region, language and currency (and calendar/script). Powered by the platform's full ICU data (Intl.DisplayNames), computed locally with no network calls. Ideal for building localized country/language/currency pickers, internationalised forms and multilingual UIs. A localized-names resolver — distinct from country reference data in English (countries), number/currency formatting (numberformat) and locale date formatting (datelocale). No key, no cache.",
"types": [
"region",
"language",
"currency",
"script",
"calendar",
"dateTimeField"
],
"endpoints": [
"/v1/name",
"/v1/list",
"/v1/meta"
],
"example_locales": [
"en",
"de",
"fr",
"es",
"ja",
"ar",
"pt-BR",
"zh"
]
},
"meta": {
"timestamp": "2026-06-01T23:40:41.334Z",
"request_id": "64787fd9-691a-40df-a3ff-925985511b8f"
},
"status": "ok",
"message": "Meta retrieved",
"success": true
}