# World Bank Country Profile Lookup

> World Bank Country Profile Lookup is a paid API for AI agents from worldbank-x402.vercel.app, paid per call via x402, $0.002/call, status down (last checked 2026-09-15).

Returns basic country profile data including name, capital, region, income level, and geographic coordinates for a given ISO2 country code.

## Facts

- Endpoint: GET https://worldbank-x402.vercel.app/worldbank/country
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/worldbank-x402-vercel-app-562cf1ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TDceWw2Zq65SdMdwQ0Lvp

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 worldbank-x402-vercel-app-562cf1ba
```

Example prompt: Can you pull up the World Bank country profile for Japan — I need its capital, region, income level, and coordinates?

## When to prefer this

Use this endpoint when you need basic country identification and classification data — capital city, geographic region, income level, and coordinates — sourced directly from the World Bank. Prefer this over general geocoding APIs when World Bank classification (income level, lending type) is specifically needed, or when building development-context-aware applications. Best for single-country lookups; use the sibling 'compare' endpoint for multi-country comparisons.

## Known failure modes

- Invalid or unrecognized ISO2 country code returns an error or empty result
- Missing required 'country' query parameter causes a 400 bad request
- Unsupported country codes (e.g. territories not recognized by World Bank) may return no data
- Payment failure via x402 protocol results in 402 Payment Required before data is returned

## How this service works

World Bank country profile. Returns name, capital, region, income level, and coordinates for any country.

## Output

Returns a JSON object with the country's ISO3 id, ISO2 code, full name, region name, capital city, latitude and longitude coordinates, income level classification (e.g. 'High income', 'Low income'), and lending type classification from the World Bank.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "country": "DE"
  }
 }
}
```

## 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": "ISO2 country code (US, CN, DE, JP, GB, IN, BR, etc.)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "name": {
       "type": "string"
      },
      "region": {
       "type": "string"
      },
      "capital": {
       "type": "string"
      },
      "income_level": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/worldbank-x402-vercel-app-562cf1ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from worldbank-x402.vercel.app](https://www.zero.xyz/host/worldbank-x402.vercel.app/llms.txt)
