# apiacre.com World Bank Country Snapshot

> apiacre.com World Bank Country Snapshot is a paid API for AI agents from apiacre.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Fetches a normalized multi-indicator economic snapshot for a given country using six World Bank World Development Indicators, including GDP, population, inflation, unemployment, growth, and life expectancy.

## Facts

- Endpoint: POST https://apiacre.com/v1/data/worldbank-snapshot
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apiacre-com-world-bank-country-snapshot-111446d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HKOglKOdwM_rcnMkOF-MU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability apiacre-com-world-bank-country-snapshot-111446d1 -d '<json body>'
```

Example prompt: Can you pull the World Bank economic snapshot for Germany — I need the latest GDP, population, inflation, unemployment, GDP growth, and life expectancy with the previous year's values for comparison?

## When to prefer this

Choose this endpoint when you need a single normalized call that returns all six core World Bank macroeconomic indicators for a country simultaneously, rather than making six separate World Bank API calls and normalizing the responses yourself. It is ideal for building country dashboards, economic briefings, or enrichment pipelines where you need GDP, population, inflation, unemployment, growth, and life expectancy together with source attribution and CC-BY-4.0 license evidence in one structured response.

## Known failure modes

- Invalid or unrecognized ISO country code returns an error
- World Bank API upstream unavailability causes failure
- No data available for the requested year window (sparse coverage for some countries)
- Truncated or null observation values for countries with incomplete World Bank reporting
- Payment not processed (x402 protocol failure) results in request rejection

## How this service works

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.

## Output

Returns a JSON object containing country metadata (name, ISO codes, region, income level, capital), a data window (start/end years, lookback), and six metric objects — GDP in current USD, GDP growth rate, population, inflation, unemployment, and life expectancy. Each metric includes the latest and previous year values, a delta, a list of annual observations, the World Bank indicator code, a source URL, and last-updated date. Also includes full license attribution (CC-BY-4.0) and source dataset details.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "country_code": {
   "type": "string"
  },
  "lookback_years": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "source": {
    "dataset": "World Development Indicators",
    "provider": "World Bank",
    "apiBaseUrl": "https://api.worldbank.org/v2",
    "countryUrl": "https://api.worldbank.org/v2/country/GBR?format=json"
   },
   "window": {
    "endYear": 2026,
    "startYear": 2024,
    "lookbackYears": 3
   },
   "country": {
    "name": "United Kingdom",
    "region": "Europe & Central Asia",
    "iso2Code": "GB",
    "iso3Code": "GBR"
   },
   "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."
   },
   "metrics": {
    "population": {
     "key": "population",
     "name": "Population, total",
     "unit": "people",
     "indicatorCode": "SP.POP.TOTL"
    },
    "gdpCurrentUsd": {
     "key": "gdpCurrentUsd",
     "name": "GDP (current US$)",
     "unit": "current USD",
     "indicatorCode": "NY.GDP.MKTP.CD"
    },
    "gdpGrowthAnnualPct": {
     "key": "gdpGrowthAnnualPct",
     "name": "GDP growth (annual %)",
     "unit": "percent",
     "indicatorCode": "NY.GDP.MKTP.KD.ZG"
    },
    "inflationAnnualPct": {
     "key": "inflationAnnualPct",
     "name": "Inflation, consumer prices (annual %)",
     "unit": "percent",
     "indicatorCode": "FP.CPI.TOTL.ZG"
    }
   },
   "warnings": [],
   "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, ..."
   ],
   "retrievedAt": "2026-08-12T00:33:37+00:00",
   "missingMetrics": [],
   "availableMetricCount": 6
  },
  "meta": {
   "cached": false,
   "sources": [],
   "warnings": [],
   "duration_ms": 42,
   "next_actions": []
  },
  "service": "data.worldbank-snapshot",
  "version": "1",
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apiacre-com-world-bank-country-snapshot-111446d1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apiacre.com](https://www.zero.xyz/host/apiacre.com/llms.txt)
