Zum Inhalt springen
GET /v1/currency

Countries using a currency

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

Beispiel-Response

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

{
    "data": {
        "count": 36,
        "currency": "EUR",
        "countries": [
            {
                "cca2": "AX",
                "cca3": "ALA",
                "name": "Åland Islands",
                "region": "Europe",
                "capital": [
                    "Mariehamn"
                ],
                "flag_svg": "https://flagcdn.com/ax.svg",
                "subregion": "Northern Europe",
                "population": 30654,
                "official_name": "Åland Islands"
            },
            {
                "cca2": "AD",
                "cca3": "AND",
                "name": "Andorra",
                "region": "Europe",
                "capital": [
                    "Andorra la Vella"
                ],
                "flag_svg": "https://flagcdn.com/ad.svg",
                "subregion": "Southern Europe",
                "population": 88406,
                "official_name": "Principality of Andorra"
            },
            {
                "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": "HR",
                "cca3": "HRV",
                "name": "Croatia",
                "region": "Europe",
                "capital": [
                    "Zagreb"
                ],
                "flag_svg": "https://flagcdn.com/hr.svg",
                "subregion": "Southeast Europe",
                "population": 3866233,
                "official_name": "Republic of Croatia"
            },
            {
                "cca2": "CY",
                "cca3": "CYP",
                "name": "Cyprus",
                "region": "Europe",
                "capital": [
                    "Nicosia"
                ],
                "flag_svg": "https://flagcdn.com/cy.svg",
                "subregion": "Southern Europe",
                "population": 1442614,
                "official_name": "Republic of Cyprus"
            },
            {
                "cca2": "EE",
                "cca3": "EST",
                "name": "Estonia",
                "region": "Europe",
                "capital": [
                    "Tallinn"
                ],
                "flag_svg": "https://flagcdn.com
…