# US ZIP Code Lookup

> US ZIP Code Lookup is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns city, state, and geographic coordinates for a given US ZIP code

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/us-zipcode?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-zip-code-lookup-a3dd5cc2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AeO7pehqiHB-v8ddwXoiu

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 us-zip-code-lookup-a3dd5cc2
```

Example prompt: What city and state does ZIP code 10001 belong to, and what are its coordinates?

## When to prefer this

Use this endpoint when you need a fast, no-account-required ZIP code to city/state/coordinates lookup paid per call in USDC on Base — ideal for AI agents that need location enrichment without managing API keys or subscriptions.

## Known failure modes

- Invalid or non-existent ZIP code returns empty places array or error
- Non-US postal codes may not be supported by this endpoint
- Missing or malformed query parameter returns 400 error
- Payment failure or insufficient USDC balance returns 402 error

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

Returns a JSON object with the post code, country name, and a list of matching places each containing city/place name, state name, state abbreviation, latitude, and longitude.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "places": [
   {
    "state": "New York",
    "latitude": "40.7484",
    "longitude": "-73.9967",
    "place name": "New York City",
    "state abbreviation": "NY"
   }
  ],
  "country": "United States",
  "post code": "10001"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-zip-code-lookup-a3dd5cc2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
