GET /economics/:country/:indicator
Fáðu eina hagvísi for a specific country with mörg ár of söguleg gögn. Gefðu upp the landakóða and indicator key (t.d. gdp, inflation, gdp_per_capita, unemployment, ppp) í slóðinni. Skilar year-by-year values for trend analysis. More focused than the full country endapunktur when you only need one metric, gagnlegt fyrir time-series charts and targeted economic comparisons.
country
nauðsynlegt
Country code
indicator
nauðsynlegt
Indicator key (e.g. gdp, inflation, gdp_per_capita)
| Nafn | Nauðsynlegt | Sjálfgefið | Lýsing |
|---|---|---|---|
country |
Já | - | Country code |
indicator |
Já | - | Indicator key (e.g. gdp, inflation, gdp_per_capita) |
curl https://nordapi.ee/api/v1/economics/US/gdp_per_capita
curl https://nordapi.ee/api/v1/economics/US/gdp_per_capita
curl https://nordapi.ee/api/v1/economics/NO/inflation
curl https://nordapi.ee/api/v1/economics/DE/unemployment
{
"country": "US",
"data": [
{
"value": 84534.0408,
"year": 2024
},
{
"value": 81032.2621,
"year": 2023
},
{
"value": 76657.2489,
"year": 2022
},
{
"value": 70205.0509,
"year": 2021
},
{
"value": 63515.9492,
"year": 2020
},
{
"value": 64746.4507,
"year": 2019
},
{
"value": 62499.8744,
"year": 2018
},
{
"value": 59635.0984,
"year": 2017
},
{
"value": 57638.1018,
"year": 2016
},
{
"value": 56572.9189,
"year": 2015
},
{
"value": 54973.4208,
"year": 2014
},
{
"value": 53179.0128,
"year": 2013
},
{
"value": 51708.4012,
"year": 2012
},
{
"value": 50024.8688,
"year": 2011
},
{
"value": 48642.61,
"year": 2010
},
{
"value": 47194.9434,
"year": 2009
},
{
"value": 48570.046,
"year": 2008
},
{
"value": 48050.2238,
"year": 2007
},
{
"value": 46302.0009,
"year": 2006
},
{
"value": 44123.4071,
"year": 2005
}
],
"indicator": "gdp_per_capita",
"indicator_name": "GDP per capita (current US$)",
"success": true
}
{"success":true,"data":[{"year":2024,"value":84534.04},{"year":2023,"value":80035.18}]}