# Postal Code / ZIP Code Location Lookup

> Postal Code / ZIP Code Location Lookup is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-09-13).

Returns city, region/state, and approximate coordinates for a given postal or ZIP code, covering 60+ countries.

## Facts

- Endpoint: GET https://api.strale.io/x402/postal-code-lookup
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-a5b21121
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n4Z8sWnPxJmW8mkLtppcG

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 api-strale-io-a5b21121
```

Example prompt: What city and state does ZIP code 90210 belong to in the US, and what are its approximate coordinates?

## When to prefer this

Use this endpoint when you need to resolve a postal or ZIP code to human-readable location data (city, region) and/or approximate coordinates, especially for international addresses across 60+ countries. Prefer this over full geocoding APIs when you only have a postal code and need fast, lightweight enrichment without a full street address.

## Known failure modes

- Invalid or non-existent postal code returns an error or empty result
- Country code not supported returns no data
- Missing required postal_code parameter returns validation error
- Postal code format mismatch for the given country (e.g. wrong length) may return no results
- Payment failure (x402) results in 402 response blocking the lookup

## How this service works

Look up location information from a postal/ZIP code. Returns city, region/state, and approximate coordinates. Covers 60+ countries via Zippopotam.us.

## Output

Returns the city name, region or state, country, and approximate geographic coordinates (latitude/longitude) associated with the given postal code. Covers postal systems across 60+ countries via Zippopotam.us.

## Example request

```json
{
 "postal_code": "90210",
 "country_code": "US"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "postal_code"
 ],
 "properties": {
  "postal_code": {
   "type": "string",
   "description": "Postal/ZIP code to look up"
  },
  "country_code": {
   "type": "string",
   "description": "ISO 2-letter country code (default US)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "valid": {
  "type": "boolean"
 },
 "places": {
  "type": "array"
 },
 "postal_code": {
  "type": "string"
 },
 "country_code": {
  "type": "string"
 },
 "country_name": {
  "type": "string"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-a5b21121/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
