NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Zip Codes Lookup API

GET

Find every ZIP or postal code in a city, or map a code to its place, in 120+ countries.

Zip Codes Lookup finds all postal codes within a city or resolves a code to its city and state, in the US by default and in about 120 more countries with the country parameter. Every US ZIP returns its primary county. Paid plans add the county and state FIPS codes, every county a ZIP crosses, the time zone, coordinates and the distance to a second code.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/zipcodes?zip=64082
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "zipcode": "64082",
    "state_abbr": "MO",
    "latitude": "38.850243",
    "longitude": "-94.39570",
    "city": "Lees Summit",
    "state": "Missouri",
    "timezone": "America/Chicago",
    "county": "Jackson County",
    "countyFips": "29095",
    "stateFips": "29",
    "counties": [
      {
        "name": "Jackson County",
        "fips": "29095",
        "landShare": 0.9077
      },
      {
        "name": "Cass County",
        "fips": "29037",
        "landShare": 0.0923
      }
    ],
    "zipType": "standard"
  }
}

About the Zip Codes Lookup API

A zip code and postal code lookup API: get the city and state from a zip code, or list every ZIP code in a city. In the US, Zip Codes Lookup queries a database of US zip codes and returns the matches as JSON with each ZIP's primary county, with county FIPS codes, time zone, latitude, longitude and ZIP-to-ZIP distance on paid plans.

Add country (GB, FR, DE, IN, JP and about 120 more) to look up postal codes elsewhere: SW1A 1AA, 75008 or 10115 resolve to their place, region and district, and a city and region return the codes inside it. Without country the API behaves exactly as the US lookup.

Postal codes outside the US come from GeoNames (geonames.org), licensed under CC BY 4.0; UK postcodes contain Royal Mail data © Royal Mail copyright and database right.

How it works

Without country, or with country=US, this is the US ZIP lookup: zip resolves a five-digit ZIP and city with state lists the ZIPs in a city, with counties from the Census 2020 ZCTA-to-county file.

With any other country, codes come from our stored copy of the GeoNames postal code files, refreshed monthly. A postal code returns its primary place (the place name most of its rows share), region (state), region letter code (state_abbr, null where the codes are numeric), second-level division (county), and every place the code serves in places. GB covers full postcodes (SW1A 1AA) and outward codes (SW1A); Canada and the Netherlands have only the first part of the code (M5V, 1012). A city search matches the place name and the second- and third-level division names, and returns up to 500 codes; UK city searches return outward codes.

Data outside the US: [GeoNames](https://www.geonames.org/), CC BY 4.0. UK postcodes contain Royal Mail data © Royal Mail copyright and database right.

What people use it for

Checkout Address Autofill
Fill in city and state names automatically when an online shopper types their five-digit postal code during checkout.
Delivery Zone Assignment
Dispatch software queries a target city and state to collect every valid postal code before assigning regional courier routes.
Territory Sales Mapping
When sorting sales leads, CRM systems look up postal codes to group prospects under the correct state and municipal account reps.
Shipping Address Verification
To prevent delivery exceptions, order management systems check customer-entered postal codes against returned state codes before processing fulfillment.
International Checkout Forms
Stores shipping to the UK, France, Germany or India fill the town and region fields from the postal code a shopper types, with country set to the shipping destination.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

How it compares

Side by side with the tools people weigh Zip Codes Lookup against — what each one is better at, in plain terms.

Other ways to use Zip Codes Lookup

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Zip Codes Lookup API.

Read the docs →
Can I search in reverse from a city to find its ZIP codes?
Yes. You can look up a single ZIP code to retrieve its city and state, or submit a city and state pair to get every ZIP code associated with that municipality.
Does Zip Codes Lookup work outside the United States?
Yes. Add country with a two-letter code (GB, FR, DE, IN, JP, BR, MX and about 115 more; UK is accepted for GB) to look up a postal code such as SW1A 1AA, 75008 or 560001, or to list the codes in a city. The state for a city search is optional outside the US: it can be the region, its code or the district (England, Bayern, Tokyo, Paris), and without it every match in the country comes back with a summary of the regions they are in. Without country the lookup is the US one and returns exactly what it always has. US-only fields such as FIPS codes and county lists are not returned for other countries.
How fresh and extensive is the ZIP and postal code database?
The US database covers more than 40,000 ZIP codes, including PO-box and unique ZIP codes such as 00501 and 20500, which are flagged with zipType. With the country parameter, about 3.6 million postal codes in roughly 120 countries are available from GeoNames, including full UK postcodes, the first part only for Canada (M5V), the Netherlands (1012) and Ireland (D02), where a full code such as M5V 3L9 resolves to its first part and is flagged approximate, and the published subsets for countries such as Brazil and Ireland. We keep our own copy and refresh it monthly. Postal codes outside the US come from GeoNames (geonames.org), licensed under CC BY 4.0; UK postcodes contain Royal Mail data © Royal Mail copyright and database right.
How far does the Starter plan go for ZIP code lookups?
The Starter plan covers 100,000 lookups per month. Each request uses 2 credits, which works out to about $0.30 per 1,000 calls. The Free plan includes 100 calls each month for development and testing.
Are latitude and longitude coordinates included on the Free plan?
No. Latitude and longitude are premium fields that require a paid subscription, as are the IANA time zone, the county and state FIPS codes, the list of every county a ZIP crosses, and the distanceTo parameter for ZIP-to-ZIP distance. The Free plan provides city, state, state abbreviation, and ZIP code, while any paid plan unlocks the exact geographic coordinates. Outside the US the same rule applies: coordinates and the time zone, including each place's coordinates in the places list, are paid fields.
Can I get the distance between two ZIP codes?
Yes, on paid plans. Add distanceTo with a second five-digit ZIP and the response includes a distance object with that ZIP's city and state and the straight-line distance between the two ZIP centroids in miles and kilometers. It is not a driving distance.
What does the response return when a city contains multiple ZIP codes?
When searching by city and state, the response returns a list containing every ZIP code registered to that location, each with its corresponding state on every plan and coordinate data on paid plans.
Can I use the returned location data inside a commercial application?
Yes, commercial use is supported on all paid plans. You may use the retrieved location and ZIP code data inside your own services, provided you do not resell or redistribute the raw dataset.
Can I find which county a ZIP code is in?
Yes. Every ZIP lookup returns its primary county, the county holding most of the ZIP's land, on every plan. Paid plans add the five-digit county FIPS code, the state FIPS code, and every county the ZIP crosses with the share of its land in each, since about a third of ZIP codes cross a county line. PO-box and unique ZIP codes (zipType po_box_or_unique) have no land area, so their county is null.
Does it accept ZIP+4 codes and full state names?
Yes. A ZIP+4 such as 64082-1234 is looked up by its first five digits, and a four-digit ZIP that lost its leading zero in a spreadsheet (2134) is read as 02134. For city searches the state can be a two-letter code or the full name, such as Texas.

Ready to build with Zip Codes Lookup? Start with 200 free credits — one key unlocks all 420+ APIs.

Explore the catalog

420+ APIs on the same key and the same response shape.

Browse all APIs