API Acre · Data Worldbank Snapshot

by API Acre

POSTBaseSolana

$0.005

per call · USD Coin on Base

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.

Endpoint

POST https://apiacre.com/v1/data/worldbank-snapshot

2

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://apiacre.com/v1/data/worldbank-snapshot", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "country_code": "GBR",
    "lookback_years": 3
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://apiacre.com/v1/data/worldbank-snapshot" \
  -H "Content-Type: application/json" \
  -d '{"country_code":"GBR","lookback_years":3}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "availableMetricCount": 6,
    "country": {
      "iso2Code": "GB",
      "iso3Code": "GBR",
      "name": "United Kingdom",
      "region": "Europe & Central Asia"
    },
    "license": {
      "attribution": "World Bank, World Development Indicators.",
      "id": "CC-BY-4.0",
      "termsUrl": "https://data.worldbank.org/summary-terms-of-use",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    },
    "limitations": [
      "Latest years vary by indicator and country; inspect each ...",
      "Missing or revised observations are reported without inte...",
      "Official statistics only; not investment, legal, credit, ..."
    ],
    "metrics": {
      "gdpCurrentUsd": {
        "indicatorCode": "NY.GDP.MKTP.CD",
        "key": "gdpCurrentUsd",
        "name": "GDP (current US$)",
        "unit": "current USD"
      },
      "gdpGrowthAnnualPct": {
        "indicatorCode": "NY.GDP.MKTP.KD.ZG",
        "key": "gdpGrowthAnnualPct",
        "name": "GDP growth (annual %)",
        "unit": "percent"
      },
      "inflationAnnualPct": {
        "indicatorCode": "FP.CPI.TOTL.ZG",
        "key": "inflationAnnualPct",
        "name": "Inflation, consumer prices (annual %)",
        "unit": "percent"
      },
      "population": {
        "indicatorCode": "SP.POP.TOTL",
        "key": "population",
        "name": "Population, total",
        "unit": "people"
      }
    },
    "missingMetrics": [],
    "retrievedAt": "2026-08-12T00:33:37+00:00",
    "source": {
      "apiBaseUrl": "https://api.worldbank.org/v2",
      "countryUrl": "https://api.worldbank.org/v2/country/GBR?format=json",
      "dataset": "World Development Indicators",
      "provider": "World Bank"
    },
    "warnings": [],
    "window": {
      "endYear": 2026,
      "lookbackYears": 3,
      "startYear": 2024
    }
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "data.worldbank-snapshot",
  "version": "1"
}

Payment details

Pay to0xa0bfa4f07281c9b248dc3aed2217836bca24869b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from API Acre & similar services