# World Bank Country Indicator Ranking

> World Bank Country Indicator Ranking is a paid API for AI agents from world-bank.x402tookit.com, paid per call via x402, $0.03/call, status down (last checked 2026-10-24).

Ranks 2–6 countries side-by-side on a single economic or social indicator (GDP, inflation, unemployment, etc.) with the value and year for each.

## Facts

- Endpoint: GET https://world-bank.x402tookit.com/country-compare?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: down
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/world-bank-country-indicator-ranking-3f333cc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xuV8uA8ixNjF04zxG7X7O

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-indicator-ranking-3f333cc8
```

Example prompt: Can you rank the US, China, Germany, Japan, and Brazil by GDP and tell me which year each figure is from?

## When to prefer this

Use this endpoint when you need a direct ranked comparison of a small set of countries (2–6) on a single well-known World Bank indicator. It is ideal for quick benchmarking, investment screening, research summaries, or answering 'which country is best/worst at X?' questions. Prefer it over the historical trend endpoints when you need current snapshot rankings rather than time-series analysis, and over the country profile endpoint when you have multiple countries to compare simultaneously.

## Known failure modes

- Fewer than 2 or more than 6 countries supplied — request rejected
- Unrecognized country name or ISO code — listed in 'unknown' field with partial results
- Unsupported indicator value — request rejected or degraded response
- No World Bank data available for a country/indicator pair — that country appears in 'noData' list
- Stale or incomplete data — 'degraded' flag set to true with disclaimer

## How this service works

Rank up to 6 countries on one indicator (GDP, growth, inflation, unemployment...) with the year of each value.

## Output

A ranked array of up to 6 countries ordered by the requested indicator, each entry containing country name, ISO3 code, numeric value, data year, and rank position. Also includes a human-readable summary, indicator label, source URL, attribution to the World Bank, and an optional list of countries for which no data was available.

## 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": [
      "countries",
      "indicator"
     ],
     "properties": {
      "countries": {
       "type": "string",
       "description": "Comma-separated names or ISO codes, 2 to 6"
      },
      "indicator": {
       "type": "string",
       "description": "gdp, gdp_growth, gdp_per_capita, population, inflation, unemployment, life_expectancy, debt_gdp, internet, co2_per_capita"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "label": {
       "type": [
        "null",
        "string"
       ]
      },
      "noData": {
       "type": [
        "array",
        "null"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "ranking": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "iso3": {
          "type": [
           "null",
           "string"
          ]
         },
         "rank": {
          "type": [
           "null",
           "number"
          ]
         },
         "year": {
          "type": [
           "null",
           "number"
          ]
         },
         "value": {
          "type": [
           "null",
           "number"
          ]
         },
         "country": {
          "type": [
           "null",
           "string"
          ]
         }
        }
       }
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "unknown": {
       "type": [
        "array",
        "null"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/world-bank-country-indicator-ranking-3f333cc8/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)
