# ISO Country Lookup by Name or Code

> ISO Country Lookup by Name or Code is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Look up a country by name or ISO 2/3-letter code and return capital, currencies, languages, calling code, region, area, bordering countries, and flag emoji in one object.

## Facts

- Endpoint: POST https://x402.forgemesh.io/iso-country-codes
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iso-country-lookup-by-name-or-code-bdc6ac26
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X4mqLsZn-KYK1Pk7TtLxk

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 iso-country-lookup-by-name-or-code-bdc6ac26 -d '<json body>'
```

Example prompt: What's the capital, official languages, currency, and calling code for Japan — can you look it up by its ISO code?

## When to prefer this

Use this endpoint when you need a single, normalized country data object from a name or ISO code — ideal for onboarding forms that must normalize free-text input to ISO codes, compliance pipelines checking region or currency, or shipping-rule engines. Prefer over a general geocoding or mapping API when the input is a country name/code (not coordinates) and the output needed is administrative/political metadata rather than a map or address.

## Known failure modes

- Unrecognized country name or code returns an error or empty result
- Ambiguous free-text name (e.g. abbreviations, alternate spellings) may fail to match
- Non-country geographic entities (territories, disputed regions) may not be in the dataset
- Payment failure (insufficient USDC) blocks the request

## How this service works

Look up a country by name or its 2- or 3-letter ISO code and get capital, currencies, official languages, calling code, region, land area, bordering countries, and flag emoji in one normalized object. Handy for onboarding forms, compliance checks, and shipping-rule engines that key off ISO codes rather than free-text country names.

## Output

A normalized object containing the country's capital, currencies, official languages, international calling code, geographic region, land area in km², list of bordering country codes, and flag emoji — all keyed from a single name or ISO 2/3-letter code input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "country": {
   "type": "string",
   "description": "name or code, e.g. Japan"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "cca2": "JP",
  "flag": "🇯🇵",
  "name": "Japan",
  "region": "Asia",
  "capital": [
   "Tokyo"
  ],
  "currencies": {
   "JPY": {
    "name": "Japanese yen",
    "symbol": "¥"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/iso-country-lookup-by-name-or-code-bdc6ac26/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
