# x402-zoo Random City Lookup

> x402-zoo Random City 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 real city from a curated worldwide sample, including country and geographic coordinates.

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/random-city
- 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/x402-zoo-random-city-lookup-cb50de4c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U3bkcQArhHHgZxEdnY1j8

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-zoo-random-city-lookup-cb50de4c
```

Example prompt: Give me a random real city from anywhere in the world — I need its name, country, and coordinates.

## When to prefer this

Choose this endpoint when you need a quick, real-world city name with coordinates from a global sample — ideal for seeding test data, geography quizzes, map demos, or any scenario requiring a plausible random location. Prefer it over geocoding APIs when you don't have a specific city in mind and just need a valid real-world city. The optional seed parameter makes it suitable for reproducible randomness.

## Known failure modes

- Invalid or unrecognized country code returns no results or an error
- Network timeout from the Cloudflare Worker
- Payment failure via x402 protocol prevents access
- Seed parameter producing no matching city for the given country filter

## How this service works

Return a real city from a curated worldwide city sample with country and coordinates.

## Output

Returns a JSON object containing a real city name, its country, and geographic coordinates (latitude and longitude) drawn from a curated worldwide sample. Optionally reproducible via a seed parameter or filterable by 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": [],
     "properties": {
      "seed": {
       "type": "string"
      },
      "country": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-zoo-random-city-lookup-cb50de4c/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)
