# x402 ZIP Code Geolocation Lookup

> x402 ZIP Code Geolocation Lookup is a paid API for AI agents from workspace-x402-paywall.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Returns geographic data (city, state, coordinates, etc.) for a given ZIP/postal code and country, paid per-call via USDC on Base or Solana.

## Facts

- Endpoint: GET https://workspace-x402-paywall.onrender.com/geo/zip?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-zip-code-geolocation-lookup-e60a4beb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TdtNjIK6cIztsYLS5o5Yp

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 x402-zip-code-geolocation-lookup-e60a4beb
```

Example prompt: What city and state does ZIP code 90210 belong to in the US?

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.005 USDC) pay-per-call ZIP/postal code to location lookup without a subscription, especially in an agent or micro-workflow context that already handles x402 USDC payments on Base or Solana. Prefer it over free geocoding APIs when you need no API key management and want metered, on-demand access.

## Known failure modes

- Invalid or nonexistent ZIP code returns error or empty result
- Unsupported country code returns no data
- Missing required parameters (code or country) returns 400-style error
- Payment failure (insufficient USDC balance) blocks the call with 402 response
- Network timeout from Render hosting during high load

## How this service works

66 pay-per-call APIs: AI text/image generation ($0.01), Polymarket odds, crypto prices, DeFi yields, FX rates, weather, IP/geo, FBI wanted, SEC tickers, clinical trials, 250M academic papers, Stack Overflow, meme-coin launchpads (pump.fun, Clanker, Four.meme, SunPump), tokenized stocks, Solana top 100, and 40+ more. $0.005/call standard. USDC on Base and Solana via x402.

## Output

A JSON object containing geographic information for the given ZIP/postal code, potentially including city name, state or region, country, latitude, longitude, and timezone — with optional field filtering via the fields parameter.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country",
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "Requires a postal code string, e.g. 90210"
      },
      "country": {
       "type": "string",
       "description": "Requires a 2-letter ISO country code string, e.g. us"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-zip-code-geolocation-lookup-e60a4beb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from workspace-x402-paywall.onrender.com](https://www.zero.xyz/host/workspace-x402-paywall.onrender.com/llms.txt)
