# Random Country Lookup

> Random Country Lookup is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns a randomly selected real sovereign country with its ISO alpha-2, alpha-3 codes, and Unicode flag emoji

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/random-country
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/random-country-lookup-d396f6d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B7qnXEnoZPSgEac6AdQei

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 random-country-lookup-d396f6d3
```

Example prompt: Pick a random country for me and tell me its name, flag emoji, and ISO codes — use seed 'game42' so I can reproduce the result.

## When to prefer this

Choose this endpoint when you need a random, real, normalized sovereign country on demand — especially when you also need ISO codes and flag emoji in a single call. Prefer it over building your own country table or calling a general geography API when cost ($0.001 USDC) and simplicity matter. Use the optional seed parameter for reproducible results in tests or demos.

## Known failure modes

- Invalid seed value may return an error or unexpected result
- Service unavailable returns a 5xx error
- Payment not accepted results in 402 response blocking access

## How this service works

Return a real randomly selected sovereign country with normalized ISO codes and flag emoji.

## Output

A JSON object containing the full country name, ISO alpha-2 code (e.g. 'DE'), ISO alpha-3 code (e.g. 'DEU'), and the corresponding Unicode flag emoji for a randomly selected real sovereign country. If a seed is provided, the selection is reproducible.

## 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": [],
     "properties": {
      "seed": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/random-country-lookup-d396f6d3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zoo.lolagent.workers.dev](https://www.zero.xyz/host/x402-zoo.lolagent.workers.dev/llms.txt)
