๐Ÿ“ Postal codes, solved

Geocoding that
humans and agents
both trust.

Turn any postal code into a city, region, and precise coordinates across 55+ countries โ€” in a single request. Forward & reverse geocoding, batch lookups, a machine-readable OpenAPI spec, and a native MCP server so your AI agents use Ziptastic out of the box.

55+
Countries
1M+
Postal codes
<50ms
Typical lookup
MCP
Agent-native
Live API GET /v2/<country>/<postal>
response.json
// Pick a country, type a postal code, and hit Resolve.
// Try: US 48867 ยท GB SW1A 1AA ยท FR 75001 ยท AU 2000

Built for AI agents

The first geocoding API your agents can discover and call themselves.

Self-describing, retry-friendly, and metered through the same billed key path โ€” whether the caller is your backend or an autonomous agent.

๐Ÿงฉ

Native MCP server

Drop Ziptastic into Claude, Cursor, or any MCP client. Six tools โ€” lookup, reverse, batch, resolve, city search, list โ€” all authenticated with your key.

๐Ÿ“œ

OpenAPI at /openapi.json

A machine-readable description of every endpoint so agents can plan calls without a human in the loop.

๐Ÿ›Ÿ

Retry-friendly errors

Structured error bodies with an error code, human message, and an actionable hint โ€” designed to be reasoned about, not just logged.

{
  "mcpServers": {
    "ziptastic": {
      "command": "python",
      "args": ["-m", "ziptastic_mcp.server"],
      "env": { "ZIPTASTIC_API_KEY": "YOUR_KEY" }
    }
  }
}

# Then just ask your agent:
# "What city is postal code 48867 in the US?"
curl -H "x-key: YOUR_KEY" \
  https://zip.getziptastic.com/v3/US/48867

# Batch up to 100 in one round-trip
curl -X POST -H "x-key: YOUR_KEY" \
  -H "content-type: application/json" \
  -d '{"lookups":[{"country":"US","postal_code":"48867"}]}' \
  https://zip.getziptastic.com/v3/batch
import requests

r = requests.get(
    "https://zip.getziptastic.com/v3/US/48867",
    headers={"x-key": "YOUR_KEY"},
)
print(r.json())
# [{'city': 'Owosso', 'state_short': 'MI', 'country': 'US', ...}]
const res = await fetch(
  "https://zip.getziptastic.com/v3/US/48867",
  { headers: { "x-key": "YOUR_KEY" } },
);
const data = await res.json();
console.log(data);
One API, every direction

Everything you need to place a customer on the map.

โžก๏ธ

Forward geocoding

Postal code โ†’ city, region, county, coordinates, timezone, and metro area (CBSA in the US).

โฌ…๏ธ

Reverse geocoding

Lat/lon + radius โ†’ the nearest postal codes, ranked by true distance with PostGIS.

๐Ÿ“ฆ

Batch lookups

Resolve up to 100 codes in a single call with per-item results and errors. Perfect for pipelines.

โœจ

Forgiving resolve

/v3/resolve?q=โ€ฆ takes a loose string and figures out the country and code for you.

๐Ÿ™๏ธ

City search

Fuzzy, trigram-indexed city search within any country โ€” typo-tolerant out of the box.

๐ŸŒ

Authoritative data

Geonames backbone layered with national sources: ONS (UK), G-NAF (AU), BAN (FR), BAG (NL), LINZ (NZ).

Global coverage

55+ countries and growing.

๐Ÿ‡บ๐Ÿ‡ธ US๐Ÿ‡ฌ๐Ÿ‡ง GB๐Ÿ‡จ๐Ÿ‡ฆ CA ๐Ÿ‡ซ๐Ÿ‡ท FR๐Ÿ‡ฉ๐Ÿ‡ช DE๐Ÿ‡ณ๐Ÿ‡ฑ NL ๐Ÿ‡ฆ๐Ÿ‡บ AU๐Ÿ‡ณ๐Ÿ‡ฟ NZ๐Ÿ‡ฏ๐Ÿ‡ต JP ๐Ÿ‡ช๐Ÿ‡ธ ES๐Ÿ‡ฎ๐Ÿ‡น IT๐Ÿ‡ง๐Ÿ‡ท BR ๐Ÿ‡ฒ๐Ÿ‡ฝ MX๐Ÿ‡ฎ๐Ÿ‡ณ IN๐Ÿ‡จ๐Ÿ‡ญ CH ๐Ÿ‡ธ๐Ÿ‡ช SE๐Ÿ‡ณ๐Ÿ‡ด NO๐Ÿ‡ฉ๐Ÿ‡ฐ DK + 37 more

Start resolving postal codes in minutes.

Free tier, no credit card in local mode. Wire up your agents today.