# Agent Data Tools: Geocoding by Place Name

> Agent Data Tools: Geocoding by Place Name is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-12-01).

Converts a place name into geographic coordinates (latitude/longitude) with population, elevation, and Wikidata metadata

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/geocode?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-geocoding-by-place-name-ae9f326c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cwm012YuOnh0rE-uUvto2

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 agent-data-tools-geocoding-by-place-name-ae9f326c
```

Example prompt: What are the latitude and longitude coordinates for Uppsala, Sweden? Give me up to 3 results.

## When to prefer this

Choose this endpoint when you need to forward-geocode a human-readable place name into coordinates and get enriched metadata (population, elevation, Wikidata ID) sourced from Wikidata CC0, with no API key required and per-call USDC micropayment pricing. Prefer it for agent workflows where you need lightweight, pay-per-use geocoding without subscription overhead. Not suitable for reverse geocoding (coordinates to name) or street-level address geocoding.

## Known failure modes

- Place name not found — returns empty results array with count 0
- Invalid or missing 'name' query parameter — returns error
- Count parameter out of range (must be 1–10) — may return error or clamp to default
- Ambiguous place name returns multiple unrelated results requiring disambiguation
- Payment not confirmed — call is not charged and returns 402 status

## How this service works

Find places by name in Wikidata (CC0) and get their coordinates, description, country, administrative region, population and elevation where recorded, best match first. Cities, towns, landmarks and other places with coordinates. Use before weather, sun or distance lookups, or to tell two places of the same name apart.

## Output

A JSON object with a count of results, the data source (Wikidata CC0), and an array of matching places each containing latitude, longitude, place name, region, country, elevation in meters, population, Wikidata ID, and a short description.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "name"
 ],
 "properties": {
  "name": {
   "type": "string",
   "description": "Place name"
  },
  "count": {
   "type": "integer",
   "description": "Max results (1-10, default 5)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "number"
  },
  "source": {
   "type": "string"
  },
  "results": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "lat": {
      "type": "number"
     },
     "lon": {
      "type": "number"
     },
     "name": {
      "type": "string"
     },
     "region": {
      "type": "string"
     },
     "country": {
      "type": "string"
     },
     "elevation": {
      "type": "number"
     },
     "population": {
      "type": "number"
     },
     "wikidataId": {
      "type": "string"
     },
     "description": {
      "type": "string"
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-geocoding-by-place-name-ae9f326c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
