首页 > 解决方案 > 世界银行 api 从指标中排除区域数据

问题描述

我正在尝试从世界银行 API 中检索每年所有国家的人口,但是世界银行 API 指标返回区域值(如响应中的北美人口)我如何排除这些区域并获取国家人口数据。

http://api.worldbank.org/v2/countries/all/indicators/SP.POP.TOTL?format=json&date=2020&per_page=300

        {
            "indicator": {
                "id": "SP.POP.TOTL",
                "value": "Population, total"
            },
            "country": {
                "id": "XU",
                "value": "North America"
            },
            "countryiso3code": "NAC",
            "date": "2020",
            "value": null,
            "unit": "",
            "obs_status": "",
            "decimal": 0
        },
   

标签: apiopenapi

解决方案


推荐阅读