# World Bank Country Data – Demographics

> World Bank Country Data – Demographics is a paid API for AI agents from world-bank.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-23).

Returns population, 10-year population growth rate, life expectancy, and internet usage for a given country, plus an ageing/growing population verdict.

## Facts

- Endpoint: GET https://world-bank.x402tookit.com/demographics?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/world-bank-country-data-demographics-223268e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S_0YuMg5aFWPppDB-D4sK

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 world-bank-country-data-demographics-223268e8
```

Example prompt: Pull up the World Bank demographics for Nigeria — I want the population, 10-year growth rate, life expectancy, and internet usage percentage, plus whether it's classified as a growing or ageing population.

## When to prefer this

Use this endpoint when you need a quick, consolidated demographic snapshot — population size, growth trajectory, life expectancy, and internet penetration — for a single country, along with a machine-readable ageing/growing verdict. It is ideal for market research, investment screening, public health analysis, or any workflow that needs to characterize a country's demographic profile without building a multi-indicator query. Prefer it over general World Bank indicator endpoints when you want the opinionated verdict and summary pre-computed.

## Known failure modes

- Unknown or misspelled country name returns null or error
- Data may be degraded (degraded: true) if some indicators are unavailable for that country
- Some small territories may lack internet usage or life expectancy data, resulting in null fields
- ISO code vs full name disambiguation may produce unexpected country matches

## How this service works

Country demographics: population, 10-year population growth, life expectancy and internet use, with an ageing/growing verdict.

## Output

Returns a JSON object with the country name, ISO3 code, current population with year, 10-year annual growth percentage, life expectancy with year, internet users percentage with year, a verdict string (e.g. 'ageing' or 'growing'), a plain-language summary, supporting reasons, thresholds used for the verdict, data source URL, attribution, and any indicators not checked or data quality flags.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country"
     ],
     "properties": {
      "country": {
       "type": "string",
       "description": "Country name or ISO code"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "iso3": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "country": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "population": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "year": {
         "type": [
          "null",
          "number"
         ]
        },
        "value": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "thresholds": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "rapidAtLeastPct": {
         "type": [
          "null",
          "number"
         ]
        },
        "shrinkingBelowPct": {
         "type": [
          "null",
          
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/world-bank-country-data-demographics-223268e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from world-bank.x402tookit.com](https://www.zero.xyz/host/world-bank.x402tookit.com/llms.txt)
