Naar de inhoud
GET /v1/language

Countries speaking a language

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/countries-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "count": 7,
        "language": "german",
        "countries": [
            {
                "cca2": "AT",
                "cca3": "AUT",
                "name": "Austria",
                "region": "Europe",
                "capital": [
                    "Vienna"
                ],
                "flag_svg": "https://flagcdn.com/at.svg",
                "subregion": "Central Europe",
                "population": 9200931,
                "official_name": "Republic of Austria"
            },
            {
                "cca2": "BE",
                "cca3": "BEL",
                "name": "Belgium",
                "region": "Europe",
                "capital": [
                    "Brussels"
                ],
                "flag_svg": "https://flagcdn.com/be.svg",
                "subregion": "Western Europe",
                "population": 11825551,
                "official_name": "Kingdom of Belgium"
            },
            {
                "cca2": "DE",
                "cca3": "DEU",
                "name": "Germany",
                "region": "Europe",
                "capital": [
                    "Berlin"
                ],
                "flag_svg": "https://flagcdn.com/de.svg",
                "subregion": "Western Europe",
                "population": 83491249,
                "official_name": "Federal Republic of Germany"
            },
            {
                "cca2": "LI",
                "cca3": "LIE",
                "name": "Liechtenstein",
                "region": "Europe",
                "capital": [
                    "Vaduz"
                ],
                "flag_svg": "https://flagcdn.com/li.svg",
                "subregion": "Western Europe",
                "population": 40900,
                "official_name": "Principality of Liechtenstein"
            },
            {
                "cca2": "LU",
                "cca3": "LUX",
                "name": "Luxembourg",
                "region": "Europe",
                "capital": [
                    "Luxembourg"
                ],
                "flag_svg": "https://flagcdn.com/lu.svg",
                "subregion": "Western Europe",
                "population": 681973,
                "official_name": "Grand Duchy of Luxembourg"
            },
            {
                "cca2": "NA",
                "cca3": "NAM",
                "name": "Namibia",
                "region": "Africa",
                "capital": [
                    "Windhoek"
                ],
                "flag_svg": "https://flagcdn.com/na.svg",
                "subregion": "Southern Africa",
                "population": 3022401,
                "official_name": "Republic of Namibia"
            },
            {
                "cca2": "CH",
                "cca3": "CHE",
                "name": "Switzerland",
                "region": "Europe",
                "capital": [
                    "Bern"
                ],
                "flag_svg
…