# Foundry Postal Code Lookup

> Foundry Postal Code Lookup is a paid API for AI agents from minty-sprout.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Looks up place names, state/region, and geographic coordinates for a postal or ZIP code in 60+ countries.

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/postal-code?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-postal-code-lookup-a71adb83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CoPj6KzobiwHE0KwsfCiV

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 foundry-postal-code-lookup-a71adb83 -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need lightweight postal-code-to-location resolution (city, state, coordinates) for 60+ countries without requiring a full geocoding pipeline. It is ideal for address enrichment, form validation, and geolocation from ZIP/postal codes when you already have the country code. Prefer a full geocoding API if you need street-level address parsing or reverse geocoding from coordinates.

## Known failure modes

- Invalid or non-existent postal code returns empty places array
- Unsupported country code may yield no results
- Malformed input (missing country or code) may return an error
- Network timeout on Render.com cold start for infrequently called endpoints

## How this service works

Zip and postal code lookup: place names, state and coordinates for 60+ countries. Input: 'US 90210' or 'DE 10115'.

## Output

Returns a JSON object with the country name, postal code, and a list of matching places — each with a place name, state/region, latitude, and longitude. The source is attributed to Zippopotam.us.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000,
   "description": "'<country> <postal code>'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "places": [
   {
    "lat": "34.0901",
    "lon": "-118.4065",
    "name": "Beverly Hills",
    "state": "California"
   }
  ],
  "source": "Zippopotam.us",
  "country": "United States",
  "postal_code": "90210"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-postal-code-lookup-a71adb83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minty-sprout.onrender.com](https://www.zero.xyz/host/minty-sprout.onrender.com/llms.txt)
