世界银行发展指标 API

API ID 953

世界银行发展指标API提供对来自200多个国家和18个区域及收入组分类的广泛经济和社会数据的访问。API允许开发者检索有关各种指标的数据,如GDP、人口、通货膨胀等。API以JSON格式返回数据

100% 正常运行时间 327 ms 平均响应

API 文档

端点

请求
世界银行发展指标API的“获取指标列表”端点允许开发者检索所有可用指标及其代码的列表,这些指标和代码可以用于从API查询数据。该端点返回的信息包括指标名称、来源和描述,使开发者能够理解他们所检索的数据,并识别特定数据查询的适当指标代码
Endpoint ID: 774
GET https://zylalabs.com/api/953/world+bank+development+indicators+api/774/get+indicators+list
输入参数

获取指标列表 — 端点功能

对象 描述
q 必需 Indicator to retrieve

剩余免费测试请求:3 / 3。


输入参数

q
API 示例响应
JSON
{
    "total": 85,
    "page": 1,
    "pageSize": 50,
    "items": [
        {
            "indicatorCode": "BG.GSR.NFSV.GD.ZS",
            "indicatorName": "Trade in services (% of GDP)"
        },
        {
            "indicatorCode": "BM.KLT.DINV.WD.GD.ZS",
            "indicatorName": "Foreign direct investment, net outflows (% of GDP)"
        },
        {
            "indicatorCode": "BN.CAB.XOKA.GD.ZS",
            "indicatorName": "Current account balance (% of GDP)"
        },
        {
            "indicatorCode": "BX.KLT.DINV.WD.GD.ZS",
            "indicatorName": "Foreign direct investment, net inflows (% of GDP)"
        },
        {
            "indicatorCode": "BX.TRF.PWKR.DT.GD.ZS",
            "indicatorName": "Personal remittances, received (% of GDP)"
        },
        {
            "indicatorCode": "CM.MKT.LCAP.GD.ZS",
            "indicatorName": "Market capitalization of listed domestic companies (% of GDP)"
        },
        {
            "indicatorCode": "CM.MKT.TRAD.GD.ZS",
            "indicatorName": "Stocks traded, total value (% of GDP)"
        },
        {
            "indicatorCode": "EG.EGY.PRIM.PP.KD",
            "indicatorName": "Energy intensity level of primary energy (MJ/$2021 PPP GDP)"
        },
        {
            "indicatorCode": "EG.GDP.PUSE.KO.PP",
            "indicatorName": "GDP per unit of energy use (PPP $ per kg of oil equivalent)"
        },
        {
            "indicatorCode": "EG.GDP.PUSE.KO.PP.KD",
            "indicatorName": "GDP per unit of energy use (constant 2021 PPP $ per kg of oil equivalent)"
        },
        {
            "indicatorCode": "EG.USE.COMM.GD.PP.KD",
            "indicatorName": "Energy use (kg of oil equivalent) per $1,000 GDP (constant 2021 PPP)"
        },
        {
            "indicatorCode": "EN.GHG.CO2.RT.GDP.KD",
            "indicatorName": "Carbon intensity of GDP (kg CO2e per constant 2021 US$ of GDP)"
        },
        {
            "indicatorCode": "EN.GHG.CO2.RT.GDP.PP.KD",
            "indicatorName": "Carbon intensity of GDP (kg CO2e per 2021 PPP $)"
        },
        {
            "indicatorCode": "ER.GDP.FWTL.M3.KD",
            "indicatorName": "Water productivity, total (constant 2015 US$ GDP per cubic meter of total freshwater withdrawal)"
        },
        {
            "indicatorCode": "FD.AST.PRVT.GD.ZS",
            "indicatorName": "Domestic credit to private sector by banks (% of GDP)"
        },
        {
            "indicatorCode": "FM.AST.PRVT.GD.ZS",
            "indicatorName": "Monetary sector credit to private sector (% of GDP)"
        },
        {
            "indicatorCode": "FM.LBL.BMNY.GD.ZS",
            "indicatorName": "Broad money (% of GDP)"
        },
        {
            "indicatorCode": "FS.AST.CGOV.GD.ZS",
            "indicatorName": "Claims on central government, etc. (% of GDP)"
        },
        {
            "indicatorCode": "FS.AST.DOMO.GD.ZS",
            "indicatorName": "Claims on other sectors of the domestic economy (% of GDP)"
        },
        {
            "indicatorCode": "FS.AST.DOMS.GD.ZS",
            "indicatorName": "Domestic credit provided by financial sector (% of GDP)"
        },
        {
            "indicatorCode": "FS.AST.PRVT.GD.ZS",
            "indicatorName": "Domestic credit to private sector (% of GDP)"
        },
        {
            "indicatorCode": "GB.XPD.RSDV.GD.ZS",
            "indicatorName": "Research and development expenditure (% of GDP)"
        },
        {
            "indicatorCode": "GC.AST.TOTL.GD.ZS",
            "indicatorName": "Net acquisition of financial assets (% of GDP)"
        },
        {
            "indicatorCode": "GC.DOD.TOTL.GD.ZS",
            "indicatorName": "Central government debt, total (% of GDP)"
        },
        {
            "indicatorCode": "GC.LBL.TOTL.GD.ZS",
            "indicatorName": "Net incurrence of liabilities, total (% of GDP)"
        },
        {
            "indicatorCode": "GC.NFN.TOTL.GD.ZS",
            "indicatorName": "Net investment in nonfinancial assets (% of GDP)"
        },
        {
            "indicatorCode": "GC.NLD.TOTL.GD.ZS",
            "indicatorName": "Net lending (+) / net borrowing (-) (% of GDP)"
        },
        {
            "indicatorCode": "GC.REV.XGRT.GD.ZS",
            "indicatorName": "Revenue, excluding grants (% of GDP)"
        },
        {
            "indicatorCode": "GC.TAX.TOTL.GD.ZS",
            "indicatorName": "Tax revenue (% of GDP)"
        },
        {
            "indicatorCode": "GC.XPN.TOTL.GD.ZS",
            "indicatorName": "Expense (% of GDP)"
        },
        {
            "indicatorCode": "MS.MIL.XPND.GD.ZS",
            "indicatorName": "Military expenditure (% of GDP)"
        },
        {
            "indicatorCode": "NE.CON.GOVT.ZS",
            "indicatorName": "General government final consumption expenditure (% of GDP)"
        },
        {
            "indicatorCode": "NE.CON.PRVT.ZS",
            "indicatorName": "Households and NPISHs final consumption expenditure (% of GDP)"
        },
        {
            "indicatorCode": "NE.CON.TOTL.ZS",
            "indicatorName": "Final consumption expenditure (% of GDP)"
        },
        {
            "indicatorCode": "NE.DAB.TOTL.ZS",
            "indicatorName": "Gross national expenditure (% of GDP)"
        },
        {
            "indicatorCode": "NE.EXP.GNFS.ZS",
            "indicatorName": "Exports of goods and services (% of GDP)"
        },
        {
            "indicatorCode": "NE.GDI.FPRV.ZS",
            "indicatorName": "Gross fixed capital formation, private sector (% of GDP)"
        },
        {
            "indicatorCode": "NE.GDI.FTOT.ZS",
            "indicatorName": "Gross fixed capital formation (% of GDP)"
        },
        {
            "indicatorCode": "NE.GDI.TOTL.ZS",
            "indicatorName": "Gross capital formation (% of GDP)"
        },
        {
            "indicatorCode": "NE.IMP.GNFS.ZS",
            "indicatorName": "Imports of goods and services (% of GDP)"
        },
        {
            "indicatorCode": "NE.RSB.GNFS.ZS",
            "indicatorName": "External balance on goods and services (% of GDP)"
        },
        {
            "indicatorCode": "NE.TRD.GNFS.ZS",
            "indicatorName": "Trade (% of GDP)"
        },
        {
            "indicatorCode": "NV.AGR.TOTL.ZS",
            "indicatorName": "Agriculture, forestry, and fishing, value added (% of GDP)"
        },
        {
            "indicatorCode": "NV.IND.MANF.ZS",
            "indicatorName": "Manufacturing, value added (% of GDP)"
        },
        {
            "indicatorCode": "NV.IND.TOTL.ZS",
            "indicatorName": "Industry, including construction, value added (% of GDP)"
        },
        {
            "indicatorCode": "NV.SRV.TOTL.ZS",
            "indicatorName": "Services, value added (% of GDP)"
        },
        {
            "indicatorCode": "NY.GDP.COAL.RT.ZS",
            "indicatorName": "Coal rents (% of GDP)"
        },
        {
            "indicatorCode": "NY.GDP.DEFL.KD.ZG",
            "indicatorName": "Inflation, GDP deflator (annual % growth)"
        },
        {
            "indicatorCode": "NY.GDP.DEFL.KD.ZG.AD",
            "indicatorName": "Inflation, GDP deflator, linked series (annual % growth)"
        },
        {
            "indicatorCode": "NY.GDP.DEFL.ZS",
            "indicatorName": "GDP deflator (base year varies by country)"
        }
    ]
}
获取指标列表 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/953/world+bank+development+indicators+api/774/get+indicators+list?q=GDP' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
根据指标名称,您将能够检索所有相关细节。获得对该指标的更好理解
Endpoint ID: 775
GET https://zylalabs.com/api/953/world+bank+development+indicators+api/775/get+indicators+details
输入参数

剩余免费测试请求:3 / 3。

API 示例响应
JSON
{
    "indicatorCode": "NY.GDP.DEFL.KD.ZG",
    "indicatorName": "Inflation, GDP deflator (annual % growth)",
    "topic": "Financial Sector: Exchange rates & prices",
    "shortDescription": null,
    "longDescription": "Inflation as measured by the annual growth rate of the GDP implicit deflator shows the rate of price change in the economy as a whole. The GDP implicit deflator is the ratio of GDP in current local currency to GDP in constant local currency."
}
获取指标详情 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/953/world+bank+development+indicators+api/775/get+indicators+details&indicatorCode=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
使用指标代码,您将能够查询与您选择的国家相关的该指标的数据
Endpoint ID: 776
GET https://zylalabs.com/api/953/world+bank+development+indicators+api/776/get+indicator+data
输入参数

获取指标数据 — 端点功能

对象 描述
country 必需 ISO 3166 alpha-3 country codes
indicator 必需 Enter the indicator

剩余免费测试请求:3 / 3。


输入参数

country
indicator
API 示例响应
JSON
{
    "countryCode": "ARG",
    "countryName": "Argentina",
    "indicatorCode": "NE.TRD.GNFS.ZS",
    "indicatorName": "Trade (% of GDP)",
    "data": {
        "1960": 15.208096087379678,
        "1961": 11.98989231097267,
        "1962": 14.075525649563655,
        "1963": 15.780906235374886,
        "1964": 11.127429679548754,
        "1965": 10.376457409948538,
        "1966": 11.642605417141128,
        "1967": 12.49266037291795,
        "1968": 11.888164885294229,
        "1969": 12.797426633059802,
        "1970": 10.33744408092327,
        "1971": 12.615188915543923,
        "1972": 14.035643197271522,
        "1973": 13.322168511557578,
        "1974": 13.19157985763214,
        "1975": 11.802724294775576,
        "1976": 15.09688462425186,
        "1977": 16.94228656793501,
        "1978": 14.323796372436885,
        "1979": 12.840684641136772,
        "1980": 11.545672460684356,
        "1981": 14.292977478883442,
        "1982": 15.61148609998856,
        "1983": 14.987670106859074,
        "1984": 12.346381429221664,
        "1985": 18.009425070688028,
        "1986": 14.486032792139502,
        "1987": 15.44896988295196,
        "1988": 15.743458608705046,
        "1989": 19.637797701883777,
        "1990": 14.990858999944138,
        "1991": 13.75305415888915,
        "1992": 14.730980586353043,
        "1993": 16.223151447783952,
        "1994": 18.13434586699813,
        "1995": 19.771423090375507,
        "1996": 21.50646840572148,
        "1997": 23.33617884374392,
        "1998": 23.35002797306892,
        "1999": 21.382744962489816,
        "2000": 22.622444777734284,
        "2001": 21.85225545154528,
        "2002": 41.75272435856421,
        "2003": 40.64474803110855,
        "2004": 40.69264610894695,
        "2005": 40.55127097062381,
        "2006": 40.43347987191512,
        "2007": 40.94517061857098,
        "2008": 40.40267337903824,
        "2009": 34.05712690548787,
        "2010": 34.97101326356957,
        "2011": 35.20615499996436,
        "2012": 30.526542371710804,
        "2013": 29.33392900210371,
        "2014": 28.40679364522745,
        "2015": 22.48622608897916,
        "2016": 26.093887848879856,
        "2017": 25.28960113767786,
        "2018": 30.7625359549926,
        "2019": 32.630615045849886,
        "2020": 30.20369880741596,
        "2021": 33.07868956746599,
        "2022": 31.580179260625613,
        "2023": 26.67695124822146,
        "2024": 27.929760849367003,
        "2025": 30.364633685192
    }
}
获取指标数据 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/953/world+bank+development+indicators+api/776/get+indicator+data?country=ARG&indicator=NE.TRD.GNFS.ZS' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 世界银行发展指标 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

(年度计费可节省 2 个月 🎉)

🚀 企业版套餐

起价
$ 10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

关于API:

世界银行发展指标API是一个强大的资源,供开发者查找来自全球的经济和社会数据。该API提供访问来自200多个国家和18个地区和收入组分类的广泛数据,涵盖各种发展指标,如国内生产总值(GDP)、人口、通货膨胀等。数据来源于世界银行,世界领先的全球发展数据和分析提供者。

这个API允许开发者检索广泛指标的数据,使其成为数据可视化、经济分析和研究等多种应用的重要工具。该API支持多年的数据,因此开发者可以检索历史数据以及最新数据。数据以JSON格式返回,易于集成到各种应用和系统中。该API还支持过滤,允许开发者仅检索所需数据,这可以帮助优化性能并减少数据传输成本。

凭借其广泛的全球发展指标覆盖和灵活的查询能力,世界银行发展指标API是任何处理经济和社会数据的开发者的必备工具。该API还支持多种语言。

 

这个API最常见的用例是什么?

  1. 数据可视化:该API可以用于检索广泛发展指标的数据,使其成为创建经济和社会趋势互动可视化的宝贵工具。

  2. 经济分析:该API可以用于检索GDP、通货膨胀和其他经济指标的历史数据,使其成为经济研究和分析的宝贵工具。

  3. 社会研究:该API可以用于检索人口、教育和其他社会指标的数据,使其成为社会研究和分析的宝贵工具。

  4. 政府和政策:该API可以用于检索与政府和政策制定相关的各种指标的数据,例如GDP和通货膨胀。

  5. 商业和金融:该API可以用于检索与商业和金融相关的各种指标的数据,例如GDP和通货膨胀。

  6. 国际发展:该API可以用于检索与国际发展相关的各种指标的数据,例如GDP和贫困水平。

 

你的计划有任何限制吗?

除了每月的API调用限制外,没有其他限制

世界银行发展指标 API FAQs

“获取指标列表”端点返回可用指标的列表,包括它们的代码、名称和描述。“获取指标详情”端点提供有关特定指标的详细信息,包括其主题和描述。“获取指标数据”端点返回指定指标和国家的历史和当前数据,并按年份组织

响应数据中的关键字段包括“indicatorCode”“indicatorName”“countryCode”“countryName”和“data”(包含年份-值对)这些字段有助于识别指标及其对应的每年数据

响应数据采用JSON格式结构。对于“获取指标数据”接口,数据按国家和指标组织,年份作为键,对应的值为数据。这种结构便于访问特定数据点

"获取指标列表"提供了全面的指标列表 "获取指标详情"提供了特定指标的深入描述 "获取指标数据"提供了各国和各年所选指标的实际数据值

用户可以通过指定参数如“indicatorCode”来定制请求以获取“获取指标数据”端点,并按国家或地区进行过滤。这允许根据特定需求进行有针对性的数据提取

数据来源于世界银行,这是一个信誉良好的全球发展数据提供者。世界银行通过严格的收集和验证过程确保数据的准确性,保持高质量标准

典型的使用案例包括经济分析、社会研究、数据可视化和政策制定。开发人员可以利用该API创建应用程序,以分析趋势、可视化数据或为决策过程提供信息

当遇到部分或空结果时,用户应检查请求参数的准确性。此外,建议在应用程序中实现错误处理,以管理某些年份或指标的数据可能不可用的情况

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API