# ISO 3166-1 Country Lookup by Code or Name

> ISO 3166-1 Country Lookup by Code or Name is a paid API for AI agents from iso.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Look up a country's full ISO 3166-1 alpha-2, alpha-3, numeric codes, and UN region by providing exactly one of: alpha-2 code, alpha-3 code, numeric code, or exact English name.

## Facts

- Endpoint: POST https://iso.openverbs.com/v1/country
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iso-3166-1-country-lookup-by-code-or-name-91f4cb4c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M9AnLKHuK7Yvr-qPbdfXH

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-3166-1-country-lookup-by-code-or-name-91f4cb4c -d '<json body>'
```

Example prompt: What are all the ISO 3166-1 codes and UN region for the country with alpha-2 code 'DE'?

## When to prefer this

Use this endpoint when you have an exact ISO 3166-1 code or the precise English country name and need to retrieve the full set of ISO codes plus the UN region. For fuzzy or partial name matching, prefer the /v1/search sibling endpoint instead.

## Known failure modes

- No match found if the provided name or code does not exactly match (use /v1/search for fuzzy matching)
- Error if more than one field is provided simultaneously
- Error if the input field value is malformed or empty
- Invalid body type returns a validation error

## How this service works

Look up a country by its ISO 3166-1 alpha-2 code, alpha-3 code, numeric code or English name. Provide exactly one field. Returns all codes plus the UN region.

## Output

Returns a country object containing the ISO 3166-1 alpha-2 code, alpha-3 code, numeric code, English country name, and UN region classification.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "name": {
       "type": "string",
       "description": "Exact English name (case-insensitive). Use /v1/search for fuzzy matching."
      },
      "alpha2": {
       "type": "string",
       "description": "ISO 3166-1 alpha-2 code, e.g. \"US\"."
      },
      "alpha3": {
       "type": "string",
       "description": "ISO 3166-1 alpha-3 code, e.g. \"USA\"."
      },
      "numeric": {
       "type": "string",
       "description": "ISO 3166-1 numeric code, e.g. \"840\"."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/iso-3166-1-country-lookup-by-code-or-name-91f4cb4c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from iso.openverbs.com](https://www.zero.xyz/host/iso.openverbs.com/llms.txt)
