← Finanzas y divisas

Indicador específico

GET /economics/:country/:indicator

Get a single indicador económico for a specific país with multiple years of datos históricos. Provide the código de país and indicator key (e.g., gdp, inflation, gdp_per_capita, unemployment, ppp) in the URL. Returns year-by-year values for análisis de tendencias. More focused than the full país endpoint when you only need one metric, useful for series temporales charts and targeted economic comparisons.

Parametros

country requerido

Country code

indicator requerido

Indicator key (e.g. gdp, inflation, gdp_per_capita)

Ejemplos de solicitudes

Uso basico
curl https://nordapi.ee/api/v1/economics/US/gdp_per_capita
US GDP per capita over time
curl https://nordapi.ee/api/v1/economics/US/gdp_per_capita
Norway inflation rate
curl https://nordapi.ee/api/v1/economics/NO/inflation
Germany unemployment rate
curl https://nordapi.ee/api/v1/economics/DE/unemployment

Respuesta en vivo

{
  "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
}

Ejemplo de respuesta

{"success":true,"data":[{"year":2024,"value":84534.04},{"year":2023,"value":80035.18}]}