⚡ Sub-50ms Response Times

The ZIP Code API
Built for Scale

40 million+ ZIP codes. Instant lookup. Distance calculation. Redis-cached for blazing-fast responses. Free tier included.

Simple. Powerful. Fast.

One API call gets you city, state, lat/lng, and timezone. Add your API key and you're live in minutes.

40M+ ZIP codes worldwide
Redis-cached — sub-50ms avg response
Haversine distance calculation
Rate limiting + usage dashboard
curl example
curl https://api.thezipcodes.com/api/v1/zipcode/10001/ \
  -H "X-API-Key: tzc_your_key_here"

// Response:
{
  "success": true,
  "data": {
    "zip_code": "10001",
    "city":     "New York",
    "state":    "NY",
    "country":  "US",
    "latitude": 40.748817,
    "longitude":-73.985428
  }
}

Everything you need

Two powerful endpoints. Zero friction.

🔍

ZIP Code Lookup

Instantly resolve any US ZIP code to city, state, latitude, and longitude. Indexed on 40M+ rows.

📏

Distance Calculator

Get the exact distance between any two ZIP codes in KM and miles using the Haversine formula.

Redis Caching

Frequent lookups are served from Redis cache in under 5ms. Database queries stay lean with .only() field selection.

🔑

API Key Auth

Secure, hashed API keys per user. Pass via header or query param. Revoke anytime from the dashboard.

📊

Usage Dashboard

Track API calls by day with a live chart. See remaining quota and upgrade your plan instantly.

🛡️

Rate Limiting

Per-user monthly quotas enforced by Redis. Transparent headers tell you exactly how many calls remain.

Simple pricing

Start free. Scale as you grow.

Free

Free

Perfect for personal projects and evaluation.

  • 1000 requests/month
  • ZIP code lookup
  • Distance calculation
  • Email support
Get Started
Most Popular

Basic

$5/mo

For growing applications and small businesses.

  • 10,000 requests/month
  • ZIP code lookup
  • Distance calculation
  • Bulk export
  • Priority email support
Get Started

Pro

$10/mo

Unlimited power for high-traffic applications.

  • 100,000 requests/month
  • ZIP code lookup
  • Distance calculation
  • Bulk export
  • SLA guarantee
  • Dedicated support
  • Custom integrations
Get Started

No credit card required for Free tier. Compare all features →

Ready to build?

Sign up in 30 seconds. Get your API key instantly. No credit card needed.

Start for Free →