# CertainData Country Lookup by ISO-2 Code

> CertainData Country Lookup by ISO-2 Code is a paid API for AI agents from api.certaindata.ai, paid per call via x402, $0.007/call, status unknown (last checked 2026-09-14).

Returns structured country metadata (ISO codes, official name, capital, region, subregion, calling codes) for a given ISO 3166-1 alpha-2 country code.

## Facts

- Endpoint: GET https://api.certaindata.ai/ca054d66abad4d6ea80ba43013b61743-cd/country-data/:iso2
- Price: $0.007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/certaindata-country-lookup-by-iso-2-code-bb90dda3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R_78iXwfYLJLP2hsDiaKF

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 certaindata-country-lookup-by-iso-2-code-bb90dda3
```

Example prompt: What are the official name, capital, region, subregion, and calling codes for the country with ISO-2 code DE?

## When to prefer this

Use this endpoint when you have a known ISO 3166-1 alpha-2 country code and need structured country metadata quickly. Prefer over the sibling search endpoint when the code is already known, to avoid ambiguity in name-based lookups. Ideal for enriching datasets that contain ISO-2 codes with human-readable names, capitals, and calling codes.

## Known failure modes

- Invalid or unrecognized ISO-2 code returns an error or empty result
- Passing a 3-letter ISO code instead of 2-letter code may fail validation
- Lowercase iso2 codes may or may not be normalized — behavior uncertain
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Look up a country by ISO-2 code. Returns ISO codes, official name, capital, region, subregion, and calling codes.

## Output

A structured object containing the country's ISO-2 code, ISO-3 code, official name, capital city, geographic region, subregion, and international calling codes.

## 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",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "iso2"
     ],
     "properties": {
      "iso2": {
       "type": "string",
       "description": "ISO-2 country code, e.g. US."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/certaindata-country-lookup-by-iso-2-code-bb90dda3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.certaindata.ai](https://www.zero.xyz/host/api.certaindata.ai/llms.txt)
