# Citiview Geocoding API

> Citiview Geocoding API is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.0025/call, status unknown (last checked 2026-10-14).

Converts a place name, landmark, or street address into latitude/longitude coordinates with city, region, country, postcode, timezone, and population data.

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/geocode?utm_source=zero.xyz
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-geocoding-api-ecafd693
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N6YCA7WNkk-XHaD948Sj3

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 citiview-geocoding-api-ecafd693
```

Example prompt: What are the latitude and longitude coordinates for the Eiffel Tower in Paris? Give me up to 3 results.

## When to prefer this

Choose this endpoint when you need to convert free-text place names, landmarks, or addresses into geographic coordinates with enriched metadata (timezone, population, postcode). It combines GeoNames city data with OpenStreetMap POI/address coverage, making it suitable for both city-level and address-level geocoding in a single call. Prefer this over pure reverse-geocoding APIs when the input is a human-readable string rather than coordinates.

## Known failure modes

- Ambiguous place name returns results for unintended location — use more specific query
- No results found for very obscure or misspelled addresses
- limit parameter outside 1–10 range may be rejected or clamped
- Missing required 'q' parameter returns a validation error
- Payment failure (402) if USDC balance is insufficient

## How this service works

Geocode a place, landmark or street address to latitude/longitude with city, region, country, postcode, timezone and population where known. Cities via GeoNames, addresses and points of interest via OpenStreetMap.

## Output

Returns up to 10 results (default 5), each containing latitude and longitude coordinates along with available metadata: city name, region/state, country, postcode, timezone identifier, and population count where known. Results are ranked by relevance to the query.

## 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",
       "description": "Place, landmark or address"
      },
      "limit": {
       "type": "integer",
       "description": "1 to 10, default 5"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/citiview-geocoding-api-ecafd693/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
