• 160
  • 129
  • 16

中国宏观经济数据

第三方提供 支持HTTPS

中国宏观经济数据

  • API文档
  • 错误码参照
  • 示例代码
  • 联系我们
立即调用
接口地址:http://op.juhe.cn/economy/gdp/index
返回格式:json/xml
请求方式:get/post
请求示例:http://op.juhe.cn/economy/gdp/index?indicID=M010000002&key=您申请到的APPKEY
接口备注:包含中国GDP数据。历史数据从1984年开始,按季更新。

请求参数说明:

名称 必填 类型 说明
  indicID string 指标代码
  key string 您申请到的APPKEY
  beginDate string 开始日期,所查询的指标数据的起始时间,如:20140101
  endDate string 截止日期,所查询的指标数据的结束时间,如:20141229

返回参数说明:

名称 类型 说明
  error_code int 返回码
  reason string 返回说明
  result string 返回结果集

JSON返回示例:

{
    "reason": "成功的返回",
    "result": {
        "data": [
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2011-04-15 10:00:00",
                "periodDate": "2011-03-31",
                "dataValue": 2.3,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-05-28 14:40:20"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2011-07-13 10:00:00",
                "periodDate": "2011-06-30",
                "dataValue": 2.5,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-05-28 14:40:20"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2011-10-18 10:00:00",
                "periodDate": "2011-09-30",
                "dataValue": 2.2,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-05-28 14:40:20"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2012-01-17 10:00:00",
                "periodDate": "2011-12-31",
                "dataValue": 1.8,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-05-28 14:40:20"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2012-04-13 10:00:00",
                "periodDate": "2012-03-31",
                "dataValue": 1.4,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-05-28 14:40:20"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2012-07-13 10:00:00",
                "periodDate": "2012-06-30",
                "dataValue": 2.1,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-05-28 14:40:20"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2012-10-18 10:00:00",
                "periodDate": "2012-09-30",
                "dataValue": 2,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-05-28 14:40:20"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2013-01-18 10:00:00",
                "periodDate": "2012-12-31",
                "dataValue": 1.9,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-05-28 14:40:20"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2013-04-15 10:00:00",
                "periodDate": "2013-03-31",
                "dataValue": 1.6,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-10-23 13:12:44"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2013-07-15 10:00:00",
                "periodDate": "2013-06-30",
                "dataValue": 1.8,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-05-28 14:40:20"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2013-10-18 10:00:00",
                "periodDate": "2013-09-30",
                "dataValue": 2.3,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-05-28 14:40:20"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2014-01-20 10:00:00",
                "periodDate": "2013-12-31",
                "dataValue": 1.7,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-05-28 14:40:20"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2014-04-16 10:00:00",
                "periodDate": "2014-03-31",
                "dataValue": 1.5,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-10-23 13:12:32"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2014-07-16 10:00:00",
                "periodDate": "2014-06-30",
                "dataValue": 2,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-08-14 09:25:47"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2014-10-21 10:00:00",
                "periodDate": "2014-09-30",
                "dataValue": 1.9,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2014-10-21 10:23:39"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2015-01-21 10:00:00",
                "periodDate": "2014-12-31",
                "dataValue": 1.5,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2015-01-21 10:04:44"
            },
            {
                "indicID": "M010000002",
                "indicName": "季_GDP_环比",
                "publishTime": "2015-04-15 10:00:00",
                "periodDate": "2015-03-31",
                "dataValue": 1.3,
                "unit": "%",
                "region": "中国",
                "dataSource": "国家统计局",
                "updateTime": "2015-04-15 15:34:14"
            }
        ]
    },
    "error_code": 0
}

服务级错误码参照(error_code):

  错误码 说明

系统级错误码参照:

  错误码 说明 旧版本(resultcode)

错误码格式说明(示例:200201):

  2 002 01
  服务级错误(1为系统级错误) 服务模块代码(即数据ID) 具体错误代码

完整教学代码示例:

  语言 标题 提供者 时间

常见问题:

  内容 详细
  常见问题: http://www.juhe.cn/qa/index/1548228791

联系我们

  内容 详细
  接口测试: API测试工具
  技术支持: info@juhe.cn
  联系电话: 400-882-7715
  在线客服QQ: 800076065

现在注册,百款接口免费测试

免费注册