# Postal Code Lookup API (x402.forgemesh.io)

> Postal Code Lookup API (x402.forgemesh.io) 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).

Looks up city, state, and coordinates for any postal/zip code in 60+ countries, and supports reverse place-to-codes search.

## Facts

- Endpoint: POST https://x402.forgemesh.io/postal-code-lookup
- 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/postal-code-lookup-api-x402-forgemesh-io-bd611a9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iKmkt-pe3wmpZ8U_jR6nK

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 postal-code-lookup-api-x402-forgemesh-io-bd611a9e -d '<json body>'
```

Example prompt: What city and state is zip code 77001 in, and can you also get me the coordinates for it? It's a US postal code.

## When to prefer this

Use this endpoint when you need to resolve a zip or postal code to a city, state, and lat/lng coordinates for any of 60+ countries, especially for address validation, shipping workflows, or geo-enrichment pipelines. Prefer this over full geocoding APIs when you only have a postal code and need a fast, cheap structured lookup without a full address.

## Known failure modes

- Invalid or non-existent postal code returns error or empty result
- Unsupported country code results in no data
- Missing required 'code' field causes validation error
- Ambiguous place name in reverse search may return multiple or no results
- Payment failure or insufficient USDC balance blocks the request

## How this service works

Postal code API: city, state, and coordinates for any zip/postal code in 60+ countries, and reverse place-to-codes search. For address validation, shipping, and geo-enrichment agents.

## Output

Returns the city name, state/province, and geographic coordinates (latitude/longitude) associated with the given postal/zip code. May also support reverse lookup returning multiple postal codes matching a place name.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string",
   "description": "postal code, e.g. 77001"
  },
  "country": {
   "type": "string",
   "description": "2-letter country, default us"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "places": [
    {
     "state": "Texas",
     "latitude": "29.7522",
     "longitude": "-95.3595",
     "place name": "Houston"
    }
   ],
   "post code": "77001"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/postal-code-lookup-api-x402-forgemesh-io-bd611a9e/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)
