Zum Inhalt springen
GET /v1/code

Look up by ISO code(s)

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/countries-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 3,
        "countries": [
            {
                "tld": [
                    ".de"
                ],
                "cca2": "DE",
                "cca3": "DEU",
                "ccn3": null,
                "name": "Germany",
                "latlng": [
                    51,
                    9
                ],
                "region": "Europe",
                "borders": [
                    "AUT",
                    "BEL",
                    "CZE",
                    "DNK",
                    "FRA",
                    "LUX",
                    "NLD",
                    "POL",
                    "CHE"
                ],
                "capital": [
                    "Berlin"
                ],
                "area_km2": 357114,
                "flag_png": "https://flagcdn.com/w320/de.png",
                "flag_svg": "https://flagcdn.com/de.svg",
                "languages": [
                    "German"
                ],
                "subregion": "Western Europe",
                "timezones": [],
                "continents": [
                    "Europe"
                ],
                "currencies": [
                    {
                        "code": "EUR",
                        "name": "euro",
                        "symbol": "€"
                    }
                ],
                "population": 83491249,
                "google_maps": null,
                "calling_code": "+49",
                "driving_side": null,
                "official_name": "Federal Republic of Germany"
            },
            {
                "tld": [
                    ".fr"
                ],
                "cca2": "FR",
                "cca3": "FRA",
                "ccn3": null,
                "name": "France",
                "latlng": [
                    46,
                    2
                ],
                "region": "Europe",
                "borders": [
                    "AND",
                    "BEL",
                    "DEU",
                    "ITA",
                    "LUX",
                    "MCO",
                    "ESP",
                    "CHE"
                ],
                "capital": [
                    "Paris"
                ],
                "area_km2": 551695,
                "flag_png": "https://flagcdn.com/w320/fr.png",
                "flag_svg": "https://flagcdn.com/fr.svg",
                "languages": [
                    "French"
                ],
                "subregion": "Western Europe",
                "timezones": [],
                "continents": [
                    "Europe"
                ],
                "currencies": [
                    {
                        "code": "EUR",
                        "name": "euro",
                        "symbol": "€"
                    }
                ],
                "population": 66351959,
                "google_maps": null,
                "calling_code": "
…