# ForgeMesh Place Name Geocoder

> ForgeMesh Place Name Geocoder is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Converts a human-readable place name (city, town, or location) into latitude/longitude coordinates, country, administrative region, population, elevation, and timezone for up to five matching locations.

## Facts

- Endpoint: POST https://x402.forgemesh.io/place-name-geocoder
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-place-name-geocoder-1e64c08c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PRlWLtIdnH0IsP_YVWhL2

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 forgemesh-place-name-geocoder-1e64c08c -d '<json body>'
```

Example prompt: What are the latitude, longitude, timezone, elevation, and population for Portland? Give me up to five matching locations so I can pick the right one.

## When to prefer this

Use this endpoint when a downstream tool (weather, air quality, sun times, earthquake search, ocean conditions) requires raw coordinates but the user has only provided a human-readable place name. It bridges the gap between natural language location input and coordinate-based APIs. Prefer this over manual lookup when automating multi-step location workflows.

## Known failure modes

- Place name not found — no results returned
- Ambiguous place name with many results — may not include the intended location
- Invalid or empty city field — request rejected
- Network or payment authorization failure — no response

## How this service works

Turn a city, town, or place name into latitude/longitude, country, admin region, population, elevation, and timezone for up to five matching locations. The step that lets any coordinate-based tool — weather, air quality, sun times — accept a human place name instead of raw numbers. Results cached a full day.

## Output

A list of up to five matching locations for the queried place name, each with latitude, longitude, country, administrative region, population, elevation, and timezone. Results are cached for 24 hours.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "city": {
   "type": "string",
   "description": "place name, e.g. Houston"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "results": [
    {
     "name": "Houston",
     "latitude": 29.76328,
     "timezone": "America/Chicago",
     "longitude": -95.36327,
     "population": 2296224,
     "country_code": "US"
    }
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-place-name-geocoder-1e64c08c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
