ZipCodeAPI
REST API for ZIP and postal code lookups, distance calculations, radius queries, city-state matching, and more. API key is required in the URL path.
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
REST API for ZIP and postal code lookups, distance calculations, radius queries,
city-state matching, and more. API key is required in the URL path.
Endpoints 12
- GETDistance between two ZIP codes
/rest/:apiKey/distance.json/:zip1/:zip2/:unit - GETDistance between two Canadian postal codes
/rest/v2/CA/:apiKey/distance.json/:caPostal1/:caPostal2/:unit - GETDistance between one ZIP code and multiple other ZIP codes
/rest/:apiKey/multi-distance.json/:zip/:zipsCsv/:unitEach zip code provided will count as a separate request. For example, if you send 5 zip codes, you will be charged for 5 requests. Any zip code not found will… - GETZIP codes within a radius
/rest/:apiKey/radius.json/:zip/:distance/:unitFind all US ZIP codes within a given radius of a ZIP code. The radius is capped at 500 miles unless the minimal option is used or you have the unlimited… - GETCanadian postal codes within a radius
/rest/v2/CA/:apiKey/radius.json/:zip/:distance/:unitFind all Canadian postal codes within a given radius of a postal code. The radius is capped at 805 km and the number of responses is capped at 250 postal… - GETGet info for a ZIP code
/rest/:apiKey/info.json/:zip/:latLongUnit - GETGet info for multiple ZIP codes
/rest/:apiKey/multi-info.json/:zipsCsv/:latLongUnitA max of 100 ZIP codes is allowed. Each zip code provided will count as a separate request. For example, if you send 5 zip codes, you will be charged for 5… - GETGet info for a Canadian postal code
/rest/v2/CA/:apiKey/info.json/:caPostal1/:latLongUnit - GETGet ZIP codes for a city
/rest/:apiKey/city-zips.json/:city/:state - GETGet postal codes for a city
/rest/v2/CA/:apiKey/city-postal-codes.json/:city/:province - GETFind close ZIP codes
/rest/:apiKey/match-close.json/:zipsCsv/:distance/:unitSend a list of up to 100 zip codes and return all pairs where the distance between the zip codes is less than a given distance. - GETGet zip codes for a state
/rest/:apiKey/state-zips.json/:stateGet all zip codes in a US state. This API is charged as multiple requests. Every 10 zip codes returned are charged as 1 request. For example, if the state you…
API details
- Base URL
https://www.zipcodeapi.com- Authentication
- None declared in the description
- Operations
- 12 operations on 12 pathsGET 12
- Response formats
application/json- Description format
- OpenAPI 3.0.3, API version
1.0.0 - Links
- OpenAPI document
- Listed from
- Zipcodeapi's published OpenAPI description
How to test the ZipCodeAPI in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the ZipCodeAPI collection, without the publisher's secrets.
- Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
- Send a requestPick an endpoint, for example “Distance between two ZIP codes” (GET /rest/:apiKey/distance.json/:zip1/:zip2/:unit), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the ZipCodeAPI?
REST API for ZIP and postal code lookups, distance calculations, radius queries, city-state matching, and more. API key is required in the URL path. It is listed under Maps & location and has 12 endpoints.
Who publishes the ZipCodeAPI?
It is listed from Zipcodeapi's public API description (an OpenAPI document), not published by Zipcodeapi on Swastik Codes. Anyone who controls zipcodeapi.com can claim the profile by adding a DNS TXT record.
What is the base URL of the ZipCodeAPI?
Requests go to https://www.zipcodeapi.com. Endpoint paths are added to this base URL.
How do I authenticate with the ZipCodeAPI?
Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.
How many endpoints does the ZipCodeAPI have?
12 operations on 12 paths (12 GET).
Is forking the ZipCodeAPI free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.