ZIP code API
A JSON REST API for 41,711 US ZIP codes: city, state, county and FIPS code, coordinates, time zone, metro area and census figures for any ZIP code, plus radius search, distance and bulk lookup. Get a key below and make your first call in a minute: 1,000 requests a day are free.
Get a free API key
1,000 requests a day, free · no card · the key appears on the next page
One request
GET https://zipcodes.pro/v1/zip/95014 with your key, and the answer the API gives
today (arrays shortened):
curl "https://zipcodes.pro/v1/zip/95014" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://zipcodes.pro/v1/zip/95014", {
headers: { Authorization: "Bearer YOUR_API_KEY" },
});
if (!res.ok) throw new Error((await res.json()).message);
const data = await res.json();import requests
r = requests.get(
"https://zipcodes.pro/v1/zip/95014",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
r.raise_for_status()
data = r.json()headers = Map();
headers.put("Authorization", "Bearer YOUR_API_KEY");
response = invokeurl
[
url: "https://zipcodes.pro/v1/zip/95014"
type: GET
headers: headers
];
info response; Response 200
{
"zip": "95014",
"type": "standard",
"type_source": "inferred",
"city": "Cupertino",
"other_place_names": [
"San Jose",
"Sunnyvale"
],
"state": "CA",
"state_name": "California",
"county": {
"fips": "06085",
"name": "Santa Clara County",
"short_name": "Santa Clara"
},
"counties": [
{
"county_fips": "06085",
"name": "Santa Clara County",
"short_name": "Santa Clara",
"weight": 1,
"basis": "land_area"
}
],
"location": {
"lat": 37.308354,
"lng": -122.081882,
"source": "gazetteer_internal_point",
"timezone": "America/Los_Angeles"
},
"is_zcta": true,
"parent_zcta": null,
"metro": {
"cbsa_code": "41940",
"name": "San Jose-Sunnyvale-Santa Clara, CA",
"type": "metro",
"csa_code": "488",
"csa_name": "San Jose-San Francisco-Oakland, CA"
},
"demographics": {
"population": 60932,
"households": 21868,
"housing_units": 23104,
"median_age": 41,
"median_household_income": 230913,
"median_home_value": 2000001,
"median_rent": 3501,
"pct_bachelors_plus": 81.9,
"mean_commute_min": 23.7,
"density_per_sqmi": 2451
},
"business": {
"establishments": 1615,
"employees": 59243,
"annual_payroll_thousands": 22133258
},
"tax": {
"irs_returns": 27000,
"irs_agi_thousands": 8673961
},
"area": {
"land_sqmi": 24.86,
"water_sqmi": 0.131
},
"nearest_zips": [
{
"zip": "95015",
"miles": 1.9,
"city": "Cupertino",
"state": "CA"
},
{
"zip": "94024",
"miles": 3,
"city": "Los Altos",
"state": "CA"
},
{
"zip": "94087",
"miles": 3.9,
"city": "Sunnyvale",
"state": "CA"
},
"… 7 more"
],
"release": "2026-11-18"
} Endpoints
| Method | Path | What it returns | |
|---|---|---|---|
GET | /v1/zip/{zip} | Look up a ZIP code. | Guide |
GET | /v1/zips | ZIP codes for a city. | Docs |
GET | /v1/radius | ZIP codes within a radius. | Guide |
GET | /v1/distance | Distance between two ZIP codes. | Guide |
GET | /v1/county/{fips}/zips | ZIP codes in a county. | Guide |
POST | /v1/bulk | Bulk lookup. | Docs |
GET | /v1/meta | Release and sources. | Docs |
GET | /v1/usage | Your usage. | Docs |
Full reference with curl, JavaScript, Python and Zoho Deluge for every endpoint:
API documentation. Machine-readable spec:
/v1/openapi.json (OpenAPI 3.1).
Guides
Plans
| Plan | Requests | Monthly | Yearly | For | |
|---|---|---|---|---|---|
| Free | 1,000 / day | Free | — | Trying it out, side projects, a form that validates a ZIP. | Get a key |
| Starter | 100,000 / month | $19 | $182 | A production app with modest lookup volume. |
Not on sale yet. Nothing is charged; check back soon.
|
| Pro | 500,000 / month | $49 | $470 | Address validation or territory logic on every signup. |
Not on sale yet. Nothing is charged; check back soon.
|
| Business | 3,000,000 / month | $149 | $1430 | High-volume enrichment, or several products sharing one key. |
Not on sale yet. Nothing is charged; check back soon.
|
If your volume is steady and large, the dataset download is usually cheaper than any API plan — we would rather say so than sell you the wrong thing.
Limits and behaviour
- Free: 1,000 requests a day, reset at 00:00 UTC, and 60 a minute.
- Reaching your quota returns 429 with the reset time. Nothing is billed beyond your plan.
- The per-minute limit returns 429 with
Retry-Afterand does not use quota. - CORS is open for browser use on Free and Starter.
- A field the source never published is
null. It is never0.
Want every ZIP code at once rather than one per request? The free ZIP code database has all of them as CSV, JSON and SQLite, under CC BY 4.0, built from the same data release the API serves.