# EU Weather & Geo (x402) — City Geocoding

> EU Weather & Geo (x402) — City Geocoding is a paid API for AI agents from eu-weather-geo.frcompanycheck.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Geocodes a city name to latitude, longitude, country, timezone, and population data using GeoNames open data, paid per call in USDC via x402.

## Facts

- Endpoint: GET https://eu-weather-geo.frcompanycheck.workers.dev/v1/geo/city?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eu-weather-geo-x402-city-geocoding-f8b0bc47
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M7PcncANQpyR4fwf-Zzgo

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 eu-weather-geo-x402-city-geocoding-f8b0bc47
```

Example prompt: What are the coordinates and timezone for Lyon, France? I want up to 3 matching cities returned.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call city geocoder with no API key or account setup, especially when you also need timezone data alongside coordinates. Ideal for AI agents that need to resolve a city name before calling the weather forecast sibling endpoints on the same service. Compared to full geocoding APIs, it is optimized for city-level lookup rather than street-level address resolution.

## Known failure modes

- City name not found — empty results array returned, no charge
- Invalid or misspelled query returns zero results
- Country filter mismatch returns empty results
- Limit parameter out of range (must be 1-20) may return error or default
- x402 payment failure means request is not processed and no charge is incurred

## How this service works

Weather and geo utilities for AI agents, paid per call in USDC via x402 (no account, no API key): current weather and up-to-9-day daily forecasts for any city or lat/lon (MET Norway open data, CC BY 4.0), city geocoding with time zones (GeoNames, CC BY 4.0) and sunrise/sunset. Errors are never charged.

## Output

Returns a JSON object with the query string and an array of matching city results, each containing latitude, longitude, city name, country code (e.g. 'FR'), capital flag, IANA timezone string (e.g. 'Europe/Paris'), and population count.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "example": "Lyon",
       "description": "City name, optionally ',CC'"
      },
      "limit": {
       "type": "integer",
       "description": "1-20 (default 5)"
      },
      "country": {
       "type": "string",
       "description": "ISO country code filter"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "Lyon",
  "results": [
   {
    "lat": 45.7485,
    "lon": 4.8467,
    "name": "Lyon",
    "capital": false,
    "country": "FR",
    "timezone": "Europe/Paris",
    "population": 522250
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eu-weather-geo-x402-city-geocoding-f8b0bc47/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eu-weather-geo.frcompanycheck.workers.dev](https://www.zero.xyz/host/eu-weather-geo.frcompanycheck.workers.dev/llms.txt)
