世界银行发展指标 API

世界银行发展指标API提供对来自200多个国家和18个区域及收入组分类的广泛经济和社会数据的访问。API允许开发者检索有关各种指标的数据,如GDP、人口、通货膨胀等。API以JSON格式返回数据
通过 MCP 从您的 AI 代理使用此 API
支持 OpenClaw、Claude Code/Desktop、Cursor、Windsurf、Cline 以及任何兼容 MCP 的 AI 客户端。
文档和设置
通过封装此 MCP 创建技能: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

关于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 文档

端点


世界银行发展指标API的“获取指标列表”端点允许开发者检索所有可用指标及其代码的列表,这些指标和代码可以用来从API查询数据。该端点返回的信息包括指标名称、来源和描述,使开发者能够理解他们所检索的数据,并确定特定数据查询的适当指标代码



                                                                            
GET https://www.zylalabs.com/api/953/%e4%b8%96%e7%95%8c%e9%93%b6%e8%a1%8c%e5%8f%91%e5%b1%95%e6%8c%87%e6%a0%87+api/774/%e8%8e%b7%e5%8f%96%e6%8c%87%e6%a0%87%e5%88%97%e8%a1%a8
                                                                            
                                                                        

获取指标列表 - 端点功能

对象 描述
q [必需] Indicator to retrieve
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"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/%e4%b8%96%e7%95%8c%e9%93%b6%e8%a1%8c%e5%8f%91%e5%b1%95%e6%8c%87%e6%a0%87+api/774/%e8%8e%b7%e5%8f%96%e6%8c%87%e6%a0%87%e5%88%97%e8%a1%a8?q=GDP' --header 'Authorization: Bearer YOUR_API_KEY' 


    

根据指标名称,您将能够获取所有相关的详细信息。更好地了解该指标



                                                                            
GET https://www.zylalabs.com/api/953/%e4%b8%96%e7%95%8c%e9%93%b6%e8%a1%8c%e5%8f%91%e5%b1%95%e6%8c%87%e6%a0%87+api/775/%e8%8e%b7%e5%8f%96%e6%8c%87%e6%a0%87%e8%af%a6%e6%83%85
                                                                            
                                                                        

测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"indicatorCode":"NE.GDI.TOTL.ZS","indicatorName":"Gross capital formation (% of GDP)","topic":"Economic Policy & Debt: National accounts: Shares of GDP & other","shortDescription":null,"longDescription":"Gross capital formation (formerly gross domestic investment) consists of outlays on additions to the fixed assets of the economy plus net changes in the level of inventories. Fixed assets include land improvements (fences, ditches, drains, and so on); plant, machinery, and equipment purchases; and the construction of roads, railways, and the like, including schools, offices, hospitals, private residential dwellings, and commercial and industrial buildings. Inventories are stocks of goods held by firms to meet temporary or unexpected fluctuations in production or sales, and \"work in progress.\" According to the 1993 SNA, net acquisitions of valuables are also considered capital formation."}
                                                                                                                                                                                                                    
                                                                                                    

获取指标详情 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/953/%e4%b8%96%e7%95%8c%e9%93%b6%e8%a1%8c%e5%8f%91%e5%b1%95%e6%8c%87%e6%a0%87+api/775/%e8%8e%b7%e5%8f%96%e6%8c%87%e6%a0%87%e8%af%a6%e6%83%85&indicatorCode=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

通过指标代码,您将能够查询您选择的国家与该指标相关的数据



                                                                            
GET https://www.zylalabs.com/api/953/%e4%b8%96%e7%95%8c%e9%93%b6%e8%a1%8c%e5%8f%91%e5%b1%95%e6%8c%87%e6%a0%87+api/776/%e8%8e%b7%e5%8f%96%e6%8c%87%e6%a0%87%e6%95%b0%e6%8d%ae
                                                                            
                                                                        

获取指标数据 - 端点功能

对象 描述
country [必需] ISO 3166 alpha-3 country codes
indicator [必需]
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"countryCode":"EUU","countryName":"European Union","indicatorCode":"NY.GDP.MKTP.CD","indicatorName":"GDP (current US$)","data":{"1960":285151593517.8653,"1961":316957315284.2486,"1962":350242479710.816,"1963":384746828593.3421,"1964":426774574129.4504,"1965":467012617276.6352,"1966":505529224628.4718,"1967":538186984638.65045,"1968":577537349543.9318,"1969":644490038737.5481,"1970":728936354558.5033,"1971":823997564740.8566,"1972":993807576357.3236,"1973":1285760453749.9297,"1974":1455564730991.1843,"1975":1694691860215.149,"1976":1775046705220.4775,"1977":2011021369358.248,"1978":2449229543717.8096,"1979":2960086312677.681,"1980":3311398072837.089,"1981":2890050505826.477,"1982":2787868117631.329,"1983":2710862889681.462,"1984":2612656839102.004,"1985":2686730457063.8086,"1986":3753266239108.059,"1987":4639614022608.166,"1988":5094084472960.005,"1989":5202884439938.858,"1990":6505695339260.155,"1991":6727631751634.049,"1992":7389295673878.143,"1993":6750807644414.015,"1994":7157908667157.895,"1995":8298352822403.698,"1996":8433614719069.702,"1997":7735885029565.067,"1998":7970103042535.264,"1999":7936107808460.764,"2000":7288481048952.246,"2001":7407615944962.443,"2002":8100430284893.673,"2003":9956860723577.65,"2004":11449101966447.191,"2005":11954349375611.97,"2006":12768357074578.389,"2007":14789471689508.004,"2008":16364455236166.71,"2009":14844813523139.973,"2010":14641773544950.594,"2011":15874713437636.057,"2012":14731876146120.652,"2013":15398507628838.623,"2014":15763596442222.57,"2015":13656252620703.34,"2016":13988147697216.623,"2017":14871313684625.824,"2018":16092403309151.48,"2019":15809073096211.443,"2020":15504055464107.43,"2021":17495226733585.229,"2022":17023612496380.377,"2023":18659133072074.81,"2024":19497115588443.58}}
                                                                                                                                                                                                                    
                                                                                                    

获取指标数据 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/953/%e4%b8%96%e7%95%8c%e9%93%b6%e8%a1%8c%e5%8f%91%e5%b1%95%e6%8c%87%e6%a0%87+api/776/%e8%8e%b7%e5%8f%96%e6%8c%87%e6%a0%87%e6%95%b0%e6%8d%ae?country=EUU&indicator=NY.GDP.MKTP.CD' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 世界银行发展指标 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
标头
标头 描述
授权 [必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

简单透明的定价

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

🚀 企业版

起价
$ 10,000/年


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

客户喜爱的功能

  • ✔︎ 仅支付成功请求
  • ✔︎ 7 天免费试用
  • ✔︎ 多语言支持
  • ✔︎ 一个 API 密钥,所有 API。
  • ✔︎ 直观的仪表板
  • ✔︎ 全面的错误处理
  • ✔︎ 开发者友好的文档
  • ✔︎ Postman 集成
  • ✔︎ 安全的 HTTPS 连接
  • ✔︎ 可靠的正常运行时间

世界银行发展指标 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 秒直到限制重置。

是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。

您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。

7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。

当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。

付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。


相关 API


您可能还喜欢