# x402.forgemesh.io Country Lookup

> x402.forgemesh.io Country Lookup 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-16).

Returns a single JSON object with capital, currencies, languages, population, region, calling code, and flag for any country by name or ISO code.

## Facts

- Endpoint: POST https://x402.forgemesh.io/country-lookup
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-forgemesh-io-country-lookup-46e8403f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pb3EAew6nBtH_e_TI0QcV

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 x402-forgemesh-io-country-lookup-46e8403f -d '<json body>'
```

Example prompt: Can you look up all the key facts for Japan — capital, currencies, languages, population, region, calling code, and flag — in one shot?

## When to prefer this

Choose this endpoint when you need a fast, structured bundle of standard country facts — capital, currency, language, population, region, calling code, and flag — in a single call, especially for form autofill, localization pipelines, compliance enrichment, or agent workflows that need country context without building a separate lookup chain.

## Known failure modes

- Unknown country name or invalid ISO code returns an error or empty result
- Ambiguous country name (e.g. 'Congo') may return unexpected result
- Network or upstream data source unavailability returns a server error
- Missing or malformed 'country' field in request body returns a validation error

## How this service works

Country facts API: capital, currencies, languages, population, region, calling code, and flag for any country by name or ISO code, as one JSON object. For forms, localization, compliance, and enrichment agents.

## Output

A single JSON object containing the country's capital city, currencies, official languages, population figure, world region, international dialing/calling code, and flag emoji or image reference.

## 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/x402-forgemesh-io-country-lookup-46e8403f/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)
