# ISO Country Code & Name Resolver

> ISO Country Code & Name Resolver is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Resolves country names and ISO alpha-2/alpha-3 codes to normalized country identifiers using a bundled country table.

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/iso-country
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iso-country-code-name-resolver-b9267f4f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Qlgm-_RdBnbiUSSmb_i8d

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-code-name-resolver-b9267f4f
```

Example prompt: What's the ISO alpha-2 and alpha-3 code for Germany? Look it up using the bundled country table.

## When to prefer this

Choose this endpoint when you need a lightweight, fast, offline-capable country code lookup without external geopolitical database dependencies. Ideal for normalizing user-supplied country strings into ISO 3166 codes, validating country codes before downstream API calls, or enriching datasets with standardized country identifiers. Prefer this over the sibling flag-emoji endpoint when you need raw ISO codes rather than visual representations.

## Known failure modes

- Unrecognized or misspelled country name returns an error or empty result
- Invalid or non-existent ISO codes return a lookup failure
- Missing required 'country' query parameter returns a 400-level error
- Ambiguous abbreviated country names may not resolve correctly

## How this service works

Resolve country names and ISO alpha-2/alpha-3 codes using a bundled country table.

## Output

Returns normalized country identifiers including the full country name, ISO alpha-2 code, and ISO alpha-3 code resolved from the input country name or code query.

## 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"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/iso-country-code-name-resolver-b9267f4f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zoo.lolagent.workers.dev](https://www.zero.xyz/host/x402-zoo.lolagent.workers.dev/llms.txt)
