GET /economics/:country/:indicator
Hae a single economic indicator for a specific country with multiple years of historical data. Provide the country code and indicator key (e.g., gdp, inflation, gdp_per_capita, unemployment, ppp) in the URL. Palauttaa year-by-year values for trend analysis. More focused than the full country endpoint when you only need one metric, hyödyllinen time-series charts and targeted economic comparisons.
country
pakollinen
Country code
indicator
pakollinen
Indicator key (e.g. gdp, inflation, gdp_per_capita)
| Nimi | Pakollinen | Oletus | Kuvaus |
|---|---|---|---|
country |
Kyllä | - | Country code |
indicator |
Kyllä | - | 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}]}