← Rahandus ja valuuta

Riigi üksikasjad

GET /countries/:code

Otsige üles detailed currency information for a specific country by its ISO riigikood. Tagastab country name, currency code, geographic region, and flag emoji. Useful when you know the country and need to determine its currency for conversion or display purposes, nagu auto-detecting a user's currency from their country setting.

Parameetrid

code kohustuslik

ISO country code in URL

Näidispäringud

Põhikasutus
curl https://nordapi.ee/api/v1/countries/NO
Norway country detail
curl https://nordapi.ee/api/v1/countries/NO
United States country detail
curl https://nordapi.ee/api/v1/countries/US
Japan country detail
curl https://nordapi.ee/api/v1/countries/JP

Reaalajas vastus

{
  "data": {
    "code": "NO",
    "currency": "NOK",
    "flag": "🇳🇴",
    "name": "Norway",
    "region": "Europe"
  },
  "success": true
}

Näidisvastus

{"success":true,"data":{"code":"NO","name":"Norway","currency":"NOK","region":"Europe","flag":"\u{1f1f3}\u{1f1f4}"}}