# FastX402 Lab Country Info

> FastX402 Lab Country Info is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Returns structured country data (official name, capital, currencies, languages, calling codes, continent, flag emoji) given an ISO 3166 alpha-2 code or English country name.

## Facts

- Endpoint: GET https://fastx402.tools/country-info?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-lab-country-info-f52a51be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JierJK9BW1UijZgYxUlBN

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 fastx402-lab-country-info-f52a51be
```

Example prompt: What's the capital, currency, and international calling code for Turkey? Look it up by the ISO code TR.

## When to prefer this

Use this endpoint when you need structured, machine-readable country metadata from a simple ISO code or English name lookup — ideal for form filling, address formatting, internationalization, and data enrichment pipelines. Prefer it over a general-purpose web search when you need clean, structured fields like currency codes, calling codes, and flag emoji without parsing unstructured text.

## Known failure modes

- Invalid or unrecognized country code returns an error or empty result
- Ambiguous or misspelled English country name may fail to match
- Country name variants or alternate spellings (e.g. 'Türkiye' vs 'Turkey') may not resolve
- Non-English country names used as input may not be found

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object containing: the ISO alpha-2 code, official English name, native name, capital city, array of currency codes, array of language codes, array of international calling codes (integers), continent code (e.g. 'AS', 'EU'), and flag emoji for the queried country.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "ISO 3166 alpha-2 code (TR) or English country name (Germany)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "code": {
       "type": "string"
      },
      "flag": {
       "type": "string"
      },
      "name": {
       "type": "string"
      },
      "phone": {
       "type": "array",
       "items": {
        "type": "integer"
       }
      },
      "native": {
       "type": "string"
      },
      "capital": {
       "type": "string"
      },
      "currency": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "continent": {
       "type": "string"
      },
      "languages": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code": "TR",
  "flag": "🇹🇷",
  "name": "Türkiye",
  "phone": [
   90
  ],
  "native": "Türkiye",
  "capital": "Ankara",
  "currency": [
   "TRY"
  ],
  "continent": "AS",
  "languages": [
   "tr"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-lab-country-info-f52a51be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
