# Country Code Normalize API

> Country Code Normalize API is a paid API for AI agents from creator-desk-x402-isolated.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Normalizes country codes or country name inputs into a canonical, standardized format (e.g., ISO 3166-1 alpha-2/alpha-3)

## Facts

- Endpoint: POST https://creator-desk-x402-isolated.onrender.com/v1/utility/country-code-normalize?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/country-code-normalize-api-52e5ffc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8Yaiwv3hwqmxq4qCyouiD

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 country-code-normalize-api-52e5ffc8 -d '<json body>'
```

Example prompt: Normalize the country value 'United States of America' into its canonical ISO 3166-1 alpha-2 country code.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call country code normalization utility that accepts arbitrary country name or code strings and returns a canonical ISO form. Ideal for agents doing data cleaning, form validation, or ETL pipelines where country identifiers are inconsistent. At $0.01 USDC per call via x402, it suits low-volume or ad-hoc normalization without requiring a self-hosted reference library.

## Known failure modes

- Unrecognized or ambiguous country input returns an error or null result
- Missing 'value' field in request body causes a 400-level error
- Highly ambiguous abbreviations (e.g. 'GE' could be Georgia or Germany) may resolve to an unexpected canonical form
- Service unavailability on render.com cold start may cause timeout

## How this service works

Machine-callable x402-paid utilities for autonomous agents.

## Output

A JSON object containing a 'result' field with the normalized/canonical country code and an 'operation' field confirming 'country_code_normalize'. The result represents the standardized country identifier derived from the input value.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {},
  "options": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "example",
  "operation": "country_code_normalize"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/country-code-normalize-api-52e5ffc8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from creator-desk-x402-isolated.onrender.com](https://www.zero.xyz/host/creator-desk-x402-isolated.onrender.com/llms.txt)
