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

Zip Codes Lookup API

GET

Find every ZIP code in a city or map a code to its location.

Zip Codes Lookup finds all postal codes within a US city or resolves a five-digit ZIP code to its city and state. Every ZIP also returns its primary county. Paid plans add the county and state FIPS codes, every county a ZIP crosses with its land share, the IANA time zone, geographic coordinates and the distance from the ZIP to a second ZIP.

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
      }
    ],
    "distance": {
      "zipcode": "64106",
      "city": "Kansas City",
      "state_abbr": "MO",
      "miles": 19.94,
      "kilometers": 32.09
    }
  }
}

About the Zip Codes Lookup API

A US zip code lookup API: get the city and state from a zip code, or list every ZIP code in a city. Zip Codes Lookup works by querying 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.

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.

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.
How fresh and extensive is the ZIP code database?
The database covers more than 40,000 ZIP codes across the United States.
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.
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 ZIP codes 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 300+ APIs.

Explore the catalog

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

Browse all APIs