GET /economics/compare/:indicator
Compare a specifik ekonomisk indikator över flera länder sida vid sida. Provide the indicator key i URL and a comma-sepabedömda list of landskods as a parameter. Returnerar the latest värde för varje land, vilket gör det enkelt att bygga jämförelse bar diagram, ranking tabeller, and cross-land ekonomisk analys verktyg. For example, jämföra GDP per capita över Norway, USA, Germany, and Estland.
indicator
obligatorisk
Indicator key
countries
obligatorisk
Comma-separated country codes
| Namn | Obligatorisk | Standard | Beskrivning |
|---|---|---|---|
indicator |
Ja | - | Indicator key |
countries |
Ja | - | Comma-separated country codes |
curl "https://nordapi.ee/api/v1/economics/compare/gdp_per_capita?countries=NO,US,DE,EE"
curl "https://nordapi.ee/api/v1/economics/compare/gdp_per_capita?countries=NO,US,DE,EE"
curl "https://nordapi.ee/api/v1/economics/compare/inflation?countries=US,GB,DE,FR,JP,CA,IT"
curl "https://nordapi.ee/api/v1/economics/compare/unemployment?countries=NO,SE,DK,FI"
{
"data": [
{
"country": "NO",
"value": 86785.4334,
"year": 2024
},
{
"country": "US",
"value": 84534.0408,
"year": 2024
},
{
"country": "DE",
"value": 56103.7323,
"year": 2024
},
{
"country": "EE",
"value": 31428.3548,
"year": 2024
}
],
"indicator": "gdp_per_capita",
"indicator_name": "GDP per capita (current US$)",
"success": true
}
{"success":true,"data":[{"country":"NO","value":86785.43},{"country":"US","value":84534.04}]}