Skip to content

Economic indicators

Annual values of one World Bank development indicator for one country or aggregate, over a span of at most 70 years between 1960 and the current year (default the latest 10 years). Served by world-bank; use World Bank indicator codes such as NY.GDP.MKTP.CD or SP.POP.TOTL.

Endpoint POST /v1/economic-indicator-queries
Scope economic_indicator:query
MCP tool economic_indicator
Usage units points

Usage units appear in execution.usage.units for reconciliation and billing.

Field Type Required Description
invocation_id string yes The market’s invocation id: one execution per id and operation, so a retry with the same id is rejected instead of charged twice. 1-128 characters of A-Z a-z 0-9 . _ : -.
provider string yes Provider that serves the request; choose by the coverage described for this tool. One of: world-bank
country string yes ISO 3166-1 alpha-2 or alpha-3 country code or a World Bank aggregate code, for example US, CHN or WLD.
indicator string yes World Bank indicator code, 3-64 characters of letters, digits, dot or underscore, for example NY.GDP.MKTP.CD.
end_year integer no Optional last year, not after the current year; default the current year; the span is at most 70 years.
start_year integer no Optional first year, 1960 or later; default nine years before end_year.
Provider Region Source Limits
world-bank US World Bank Open Data max_years: 70, timeout_seconds: 60
终端窗口
curl -sS https://services.zgi.im/v1/economic-indicator-queries \
-H "Authorization: Bearer $ZGI_SERVICES_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"invocation_id": "docs-1791778521-economic_indicator", "provider": "world-bank", "country": "CN", "indicator": "NY.GDP.MKTP.CD", "start_year": 2021, "end_year": 2023}'

A real response, with lists cut to two items and long text shortened.

{
"code": 0,
"message": "success",
"data": {
"execution": {
"id": "exe_01a12e52a3877609ae4068b210f2ee08",
"invocation_id": "docs-1791778521-economic_indicator",
"capability": "economic_indicator",
"operation": "economic_indicator.query",
"provider": "world-bank",
"outcome": "succeeded",
"error_category": null,
"error_code": null,
"usage": {
"provider_requests": 1,
"units": [
{
"name": "points",
"value": 3,
"source": "measured"
}
]
},
"upstream_ref": null,
"request_id": "req_0eec0b8365e4da96a817cf29",
"started_at": "2026-10-12T04:15:30.183393545Z",
"finished_at": "2026-10-12T04:15:30.735150514Z",
"duration_ms": 551
},
"result": {
"indicator": {
"id": "NY.GDP.MKTP.CD",
"name": "GDP (current US$)"
},
"country": {
"id": "CN",
"name": "China"
},
"values": [
{
"year": 2021,
"value": 18201698719564
},
{
"year": 2022,
"value": 18316765021690.2
}
],
"last_updated": "2026-10-08",
"source": {
"name": "The World Bank: World Development Indicators",
"license": "CC-BY-4.0",
"url": "https://data.worldbank.org"
}
}
}
}