# OnchainExpat Country Info

> OnchainExpat Country Info is a paid API for AI agents from x402.onchainexpat.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns detailed information about a country given a country name or code

## Facts

- Endpoint: POST https://x402.onchainexpat.com/api/x402-tools/countries/info
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-onchainexpat-com-a1db0e14
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XM8sOFruVSu436LkMKguI

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-onchainexpat-com-a1db0e14 -d '<json body>'
```

Example prompt: What can you tell me about Japan — its capital, population, currency, official language, and timezone?

## When to prefer this

Use this endpoint when you need structured reference data about a specific country — such as its capital, currency, language, population, or region — and want a single reliable lookup call rather than scraping Wikipedia or using a general web search.

## Known failure modes

- Country name or code not recognized — returns error or empty result
- Ambiguous country name with no exact match
- Network or payment authorization failure
- Rate limit or quota exceeded

## How this service works

Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol

## Output

Returns structured country data including capital city, population, official language(s), currency, region, subregion, timezone(s), flag, and other geographic or demographic details for the requested country.

## Example request

```json
{
 "input": {
  "body": {
   "country": "Japan"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "country"
 ],
 "properties": {
  "country": {
   "type": "string",
   "description": "Country name or ISO code. Alias: 'name'. E.g. 'France', 'JP', 'spain'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "flag": {
   "type": "string"
  },
  "name": {
   "type": "string"
  },
  "cached": {
   "type": "boolean"
  },
  "region": {
   "type": "string"
  },
  "capital": {
   "type": "string"
  },
  "languages": {
   "type": "array"
  },
  "currencies": {
   "type": "array"
  },
  "population": {
   "type": "integer"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-onchainexpat-com-a1db0e14/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.onchainexpat.com](https://www.zero.xyz/host/x402.onchainexpat.com/llms.txt)
