GET /countries/:code
Flettu upp detailed currency information for a specific country by its ISO landakóða. Skilar 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, eins og auto-detecting a user's currency from their country setting.
code
nauðsynlegt
ISO country code in URL
| Nafn | Nauðsynlegt | Sjálfgefið | Lýsing |
|---|---|---|---|
code |
Já | - | ISO country code in URL |
curl https://nordapi.ee/api/v1/countries/NO
curl https://nordapi.ee/api/v1/countries/NO
curl https://nordapi.ee/api/v1/countries/US
curl https://nordapi.ee/api/v1/countries/JP
{
"data": {
"code": "NO",
"currency": "NOK",
"flag": "🇳🇴",
"name": "Norway",
"region": "Europe"
},
"success": true
}
{"success":true,"data":{"code":"NO","name":"Norway","currency":"NOK","region":"Europe","flag":"\u{1f1f3}\u{1f1f4}"}}