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

> Zip 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-10-18).

Resolves a postal code to its place name, state/region, and latitude/longitude coordinates for 60+ countries.

## Facts

- Endpoint: POST https://x402.forgemesh.io/zip-code-lookup?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zip-code-lookup-api-x402-forgemesh-io-4076d7c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_swrZHqP5H4aXP8OAJbXA8

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 zip-code-lookup-api-x402-forgemesh-io-4076d7c0 -d '<json body>'
```

Example prompt: What city, state, and coordinates correspond to zip code 77001 in the US?

## When to prefer this

Use this endpoint when you need to resolve a postal/zip code to human-readable location data (city, state, coordinates) for address validation, geo-enrichment, shipping estimation, or tax jurisdiction determination — especially when handling international postal codes across 60+ countries. Prefer this over full geocoding APIs when the input is specifically a postal code rather than a full street address.

## Known failure modes

- Unknown or invalid postal code returns a 404 unpaid response
- Unsupported country code may return no result or error
- Malformed postal code format may yield no match
- Payment failure ($0.003 USDC) blocks the response
- Cached result may be up to 24 hours stale for recently updated postal areas

## How this service works

Zip code lookup API: resolve any postal code to its place name, state/region, and latitude/longitude — 60+ countries supported (US, CA, GB, DE, FR, MX...). Unknown codes return an unpaid 404. For address validation, shipping estimation, tax jurisdiction, and geo-enrichment agents. Cached 24 hours.

## Output

Returns the place name (city/town), state or region name, and latitude/longitude coordinates for the given postal code. Unknown or invalid codes return a 404 (unpaid) response. Results are cached for 24 hours.

## 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/zip-code-lookup-api-x402-forgemesh-io-4076d7c0/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)
