← 金融与货币

指定指标

GET /economics/:country/:indicator

获取特定国家含多年历史数据的单一经济指标。在 URL 中提供国家代码和指标键(例如 gdp、inflation、gdp_per_capita、unemployment、ppp)。返回逐年值用于趋势分析。当只需要一个指标时比完整国家端点更聚焦,适用于时间序列图表和有针对性的经济比较。

参数

country 必填

Country code

indicator 必填

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

请求示例

基本用法
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

实时响应

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