World Bank country indicator snapshot
Bundle six official World Development Indicators into one normalized country snapshot with latest and previous GDP, growth, population, inflation, unemployment, and life-expectancy observations plus source and license evidence.
$0.005 USDCBasex402 v2POST
Endpoint
https://apiacre.com/v1/data/worldbank-snapshotSend the JSON body below. An unpaid request returns HTTP 402 with a PAYMENT-REQUIRED header; an x402-compatible buyer signs the requirement and retries with PAYMENT-SIGNATURE.
Agent one-call path
Optional third-party AgentCash can inspect this route and handle the x402 retry. Its fetch command may automatically pay, so this example caps the call at exactly $0.005 USDC. Copying the command does not pay; review the local wallet and request before running it.
npx --yes agentcash@latest check https://apiacre.com/v1/data/worldbank-snapshot
npx --yes agentcash@latest fetch https://apiacre.com/v1/data/worldbank-snapshot \
--method POST \
--header 'content-type: application/json' \
--body '{"country_code":"GBR","lookback_years":3}' \
--payment-protocol x402 \
--payment-network base \
--max-amount 0.005AgentCash CLI documentation · Official SDK and wallet-safety alternatives
Input example
{
"country_code": "GBR",
"lookback_years": 3
}Response shape
{
"request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
"service": "data.worldbank-snapshot",
"version": "1",
"data": {
"country": {
"iso3Code": "GBR",
"iso2Code": "GB",
"name": "United Kingdom",
"region": "Europe & Central Asia",
"incomeLevel": "High income",
"lendingType": "Not classified",
"capitalCity": "London"
},
"window": {
"startYear": 2024,
"endYear": 2026,
"lookbackYears": 3
},
"availableMetricCount": 6,
"metrics": {
"gdpCurrentUsd": {
"key": "gdpCurrentUsd",
"indicatorCode": "NY.GDP.MKTP.CD",
"name": "GDP (current US$)",
"unit": "current USD",
"latest": {
"year": 2025,
"value": 4002587541846.01,
"status": null
},
"previous": {
"year": 2024,
"value": 3695539513534.15,
"status": null
},
"latestDelta": 307048028311.86,
"availableObservationCount": 2,
"observations": [
{
"year": 2024,
"value": 3695539513534.15,
"status": null
},
{
"year": 2025,
"value": 4002587541846.01,
"status": null
},
{
"year": 2026,
"value": null,
"status": null
}
],
"sourceLastUpdated": "2026-07-13",
"sourceUrl": "https://api.worldbank.org/v2/country/GBR/indicator/NY.GDP.MKTP.CD?format=json&date=2024%3A2026&per_page=100"
},
"gdpGrowthAnnualPct": {
"key": "gdpGrowthAnnualPct",
"indicatorCode": "NY.GDP.MKTP.KD.ZG",
"name": "GDP growth (annual %)",
"unit": "percent",
"latest": {
"year": 2025,
"value": 1.38844207858726,
"status": null
},
"previous": {
"year": 2024,
"value": 1.08027716858781,
"status": null
},
"latestDelta": 0.30816490999945,
"availableObservationCount": 2,
"observations": [
{
"year": 2024,
"value": 1.08027716858781,
"status": null
},
{
"year": 2025,
"value": 1.38844207858726,
"status": null
},
{
"year": 2026,
"value": null,
"status": null
}
],
"sourceLastUpdated": "2026-07-13",
"sourceUrl": "https://api.worldbank.org/v2/country/GBR/indicator/NY.GDP.MKTP.KD.ZG?format=json&date=2024%3A2026&per_page=100"
},
"population": {
"key": "population",
"indicatorCode": "SP.POP.TOTL",
"name": "Population, total",
"unit": "people",
"latest": {
"year": 2025,
"value": 69487000,
"status": null
},
"previous": {
"year": 2024,
"value": 69281000,
"status": null
},
"latestDelta": 206000,
"availableObservationCount": 2,
"observations": [
{
"year": 2024,
"value": 69281000,
"status": null
},
{
"year": 2025,
"value": 69487000,
"status": null
},
{
"year": 2026,
"value": null,
"status": null
}
],
"sourceLastUpdated": "2026-07-13",
"sourceUrl": "https://api.worldbank.org/v2/country/GBR/indicator/SP.POP.TOTL?format=json&date=2024%3A2026&per_page=100"
},
"inflationAnnualPct": {
"key": "inflationAnnualPct",
"indicatorCode": "FP.CPI.TOTL.ZG",
"name": "Inflation, consumer prices (annual %)",
"unit": "percent",
"latest": {
"year": 2025,
"value": 3.88306881626,
"status": null
},
"previous": {
"year": 2024,
"value": 3.2715729463592,
"status": null
},
"latestDelta": 0.6114958699008,
"availableObservationCount": 2,
"observations": [
{
"year": 2024,
"value": 3.2715729463592,
"status": null
},
{
"year": 2025,
"value": 3.88306881626,
"status": null
},
{
"year": 2026,
"value": null,
"status": null
}
],
"sourceLastUpdated": "2026-07-13",
"sourceUrl": "https://api.worldbank.org/v2/country/GBR/indicator/FP.CPI.TOTL.ZG?format=json&date=2024%3A2026&per_page=100"
},
"unemploymentPct": {
"key": "unemploymentPct",
"indicatorCode": "SL.UEM.TOTL.ZS",
"name": "Unemployment, total (% of total labor force) (modeled ILO estimate)",
"unit": "percent of total labor force",
"latest": {
"year": 2025,
"value": 4.746,
"status": null
},
"previous": {
"year": 2024,
"value": 4.361,
"status": null
},
"latestDelta": 0.385,
"availableObservationCount": 2,
"observations": [
{
"year": 2024,
"value": 4.361,
"status": null
},
{
"year": 2025,
"value": 4.746,
"status": null
},
{
"year": 2026,
"value": null,
"status": null
}
],
"sourceLastUpdated": "2026-07-13",
"sourceUrl": "https://api.worldbank.org/v2/country/GBR/indicator/SL.UEM.TOTL.ZS?format=json&date=2024%3A2026&per_page=100"
},
"lifeExpectancyYears": {
"key": "lifeExpectancyYears",
"indicatorCode": "SP.DYN.LE00.IN",
"name": "Life expectancy at birth, total (years)",
"unit": "years",
"latest": {
"year": 2024,
"value": 81.3868536585366,
"status": null
},
"previous": null,
"latestDelta": null,
"availableObservationCount": 1,
"observations": [
{
"year": 2024,
"value": 81.3868536585366,
"status": null
},
{
"year": 2025,
"value": null,
"status": null
},
{
"year": 2026,
"value": null,
"status": null
}
],
"sourceLastUpdated": "2026-07-13",
"sourceUrl": "https://api.worldbank.org/v2/country/GBR/indicator/SP.DYN.LE00.IN?format=json&date=2024%3A2026&per_page=100"
}
},
"missingMetrics": [],
"warnings": [],
"source": {
"provider": "World Bank",
"dataset": "World Development Indicators",
"apiBaseUrl": "https://api.worldbank.org/v2",
"countryUrl": "https://api.worldbank.org/v2/country/GBR?format=json"
},
"license": {
"id": "CC-BY-4.0",
"url": "https://creativecommons.org/licenses/by/4.0/",
"termsUrl": "https://data.worldbank.org/summary-terms-of-use",
"attribution": "World Bank, World Development Indicators.",
"notice": "Downstream use is subject to the linked dataset terms; preserve this attribution and its acknowledgment requirement, and check indicator metadata for third-party terms."
},
"retrievedAt": "2026-08-12T00:33:37+00:00",
"limitations": [
"Latest years vary by indicator and country; inspect each metric's latest year.",
"Missing or revised observations are reported without interpolation or forecasting.",
"Official statistics only; not investment, legal, credit, or policy advice."
]
},
"meta": {
"duration_ms": 42,
"cached": false,
"sources": [],
"warnings": [],
"next_actions": []
}
}Try the payment challenge
curl -i -X POST 'https://apiacre.com/v1/data/worldbank-snapshot' \
-H 'content-type: application/json' \
--data '{"country_code":"GBR","lookback_years":3}'