Skip to content
GET /v1/search

Search subtags by description

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/bcp47-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest 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"
            },
            {
              
…