World Bank Country Comparison
APISold by Data 37
Side-by-side comparison of multiple countries across any World Bank indicators. Pass comma-separated ISO3 codes and indicator codes. Returns labeled values per country per indicator. Powered by World Bank Open Data (CC BY 4.0).
The paid URL
Send a GET request (parameters in the query string). Without payment the relay answers 402 Payment Required and tells you exactly what to pay; with a valid X-PAYMENT header it settles on-chain and returns the origin's JSON response.
https://api.datapoint.market/r/data37/worldbank-country-compare
Example request
{
"countries": "USA,CHN",
"indicators": "NY.GDP.MKTP.CD"
}
Response shape
Fields
- object
dataobjectcountriesarray of- string
indicatorsarray of- string
dataobjectUSAobjectNY.GDP.MKTP.CDobjectvaluenumberunitanyyearintegerindicator_codestringindicator_namestringsourcestring
CHNobjectNY.GDP.MKTP.CDobjectvaluenumberunitanyyearintegerindicator_codestringindicator_namestringsourcestring
metaobjectverticalstringsourcestringdatasetstringlicensestringattributionstringnotesarray of- any
retrieved_atstring · date-timecache_statusstring
Example response (JSON)
{
"data": {
"countries": [
"string",
"example"
],
"indicators": [
"stringxxxxxxxx",
"examplexxxxxxx"
],
"data": {
"USA": {
"NY.GDP.MKTP.CD": {
"value": 12.34,
"unit": null,
"year": 12,
"indicator_code": "stringxxxxxxxx",
"indicator_name": "stringxxxxxxxxxxx",
"source": "stringxxxxxxxxxxxxxx"
}
},
"CHN": {
"NY.GDP.MKTP.CD": {
"value": 12.34,
"unit": null,
"year": 12,
"indicator_code": "stringxxxxxxxx",
"indicator_name": "stringxxxxxxxxxxx",
"source": "stringxxxxxxxxxxxxxx"
}
}
}
},
"meta": {
"vertical": "stringxxx",
"source": "stringxxxxxxxxxxxxxx",
"dataset": "stringxxxxxxxxxxxxxxxxxxxxxx",
"license": "stringxxx",
"attribution": "stringxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"notes": [
"string",
"example"
],
"retrieved_at": "2024-01-15T09:30:00Z",
"cache_status": "string"
}
}⚗︎ Generated example data — the structure is real, the values are fabricated. The real data is available on payment (or via 3 free trial calls).
Call it from the shell
curl 'https://api.datapoint.market/r/data37/worldbank-country-compare?countries=USA%2CCHN&indicators=NY.GDP.MKTP.CD' \ -H 'X-PAYMENT: <base64 payment payload>'
Call it from an agent
Connected in Claude (or any agent on the connector)? Buy it in one call — no API key, no signup. Call it once with no payment to take a free trial (real data) or get a price quote before you pay.
call_endpoint("data37", "worldbank-country-compare", params={"countries":"USA,CHN","indicators":"NY.GDP.MKTP.CD"})
No account, no API key — buyers pay per call over x402. An immutable on-chain splitter pays the provider and a datapoint.market fee in one transaction; datapoint.market never holds provider revenue.
Provider: Data 37