Vai al contenuto
GET /v1/search

Search subtags by description

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/bcp47-api

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/bcp47-api/v1/search" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bcp47-api/v1/search", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bcp47-api/v1/search");
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/bcp47-api/v1/search",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

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

{
    "data": {
        "type": null,
        "count": 20,
        "limit": 20,
        "query": "chinese",
        "total": 60,
        "offset": 0,
        "results": [
            {
                "type": "language",
                "subtag": "zh",
                "description": "Chinese"
            },
            {
                "type": "language",
                "subtag": "ace",
                "description": "Achinese"
            },
            {
                "type": "language",
                "subtag": "cdo",
                "description": "Min Dong Chinese"
            },
            {
                "type": "language",
                "subtag": "cjy",
                "description": "Jinyu Chinese"
            },
            {
                "type": "language",
                "subtag": "cmn",
                "description": "Mandarin Chinese"
            },
            {
                "type": "language",
                "subtag": "cnp",
                "description": "Northern Ping Chinese"
            },
            {
                "type": "language",
                "subtag": "cpi",
                "description": "Chinese Pidgin English"
            },
            {
                "type": "language",
                "subtag": "cpx",
                "description": "Pu-Xian Chinese"
            },
            {
                "type": "language",
                "subtag": "csl",
                "description": "Chinese Sign Language"
            },
            {
                "type": "language",
                "subtag": "csp",
                "description": "Southern Ping Chinese"
            },
            {
                "type": "language",
                "subtag": "czh",
                "description": "Huizhou Chinese"
            },
            {
                "type": "language",
                "subtag": "czo",
                "description": "Min Zhong Chinese"
            },
            {
                "type": "language",
                "subtag": "gan",
                "description": "Gan Chinese"
            },
            {
                "type": "language",
                "subtag": "hak",
                "description": "Hakka Chinese"
            },
            {
                "type": "language",
                "subtag": "hsn",
                "description": "Xiang Chinese"
            },
            {
                "type": "language",
                "subtag": "ltc",
                "description": "Late Middle Chinese"
            },
            {
                "type": "language",
                "subtag": "luh",
                "description": "Leizhou Chinese"
            },
            {
                "type": "language",
                "subtag": "lzh",
                "description": "Literary Chinese"
            },
            {
                "type": "language",
                "subtag": "mnp",
                "description": "Min Bei Chinese"
            },
            {
              
…