The easy way to calculate distances, radius, and locations for US zip codes and CA postal codes.
Getting location…
Make your forms faster by auto-filling information when users enter a zip code.
Faster checkouts improve user experience.
Try it now. ↓
The API allows you to quickly and easily figure out the distance between zip codes.
View Details »
You can use the API to find all zip codes within a given radius from another zip code.
View Details »
The API can convert a zip code to the primary location for the zip code. This includes the city, state, latitude, longitude, time zone information, and NPA area codes for the primary location.
Click here for an example of auto-filling city and state in a form when a zip code is entered.
View Details »
You can use the API to determine possible zip codes for a city.
View Details »
You can use the API build the WHERE clause for use in SQL statements to your own database. This allows you to create custom searches based on latitude and longitude.
View Details »
The API can take a list of zip codes and match together those that are within a specified distance of each other.
View Details »
Need a real-time visualization of traffic or user actions on your website? We use the real-time map ourselves to show API usage.
$199 / year
$499 / year
$2,000 / year
$4,000 / year
Plans are rate limited by the hours. The second, minute, and day numbers are displayed to help you understand the average number of API requests allowed. See more details on our Pricing page.
The service provides accurate results with minimal response time.
We see about a 3% drop off in sell through for every additional field we add to a checkout form, so ZipCodeAPI really helps us by just deriving the city/state from the zip code. We want the purchase experience to be as frictionless as possible.
ZipCodeAPI is very straightforward to use and a breeze to integrate into third-party solutions. Nice to have access to analytics on the dashboard showing how many times the API was requested in a 24 hour period. ZipCodeAPI works great!
Comparing ZipCodeAPI, especially from a cost perspective, to the big names in the space, it was a no brainer and allowed us to build a really powerful tool quickly for our client. The ZipCodeAPI piece was crazy fast, probably less than an hour.
ZipCodeAPI has benefited us by allowing us to dynamically change the website according to the user’s location. Being able to adjust for location allows us to show targeted information that converts much better.
ZipCodeAPI has been something we have used for several years now and has helped us present a set of unified locations and help visitors connect with a location best suited to working with them, a friend or a family member who might be experiencing some kind of hearing loss.
It benefits my business by allowing me to autofill parts of my web form for my customers vs having them manually complete everything.
Our clients are able to schedule an appointment online and it will display in their timezone, and it will translate to PST when our reps receive the appointment time on our side.
Our customers have the added benefit/convenience of scheduling an appointment based in their timezone without having to look up our time zone difference to theirs if they don’t know it off the top of their head. Similarly our reps get to see the appointment time in PST, their time zone, and they don’t have to refer to any client time zone charts.
As part of our Work Order matching algorithm, we utilize ZipcodeAPI to connect commercial flooring contractors to top-notch flooring installers across the United States. As we grow our network of qualified (and quantified) installers and contractors, this simple API lets us scale easily, allowing us to focus on other high-priority initiatives to ultimately bring extreme value to the skilled tradesman.
ZipCodeAPI is a rock-solid API.
We use ZipCodeAPI to prevent errors. Bottom line, it works great!
We have benefited significantly from the ease of use and ZipCodeAPI integration. We have over 200,000 registered users and thousands of projects being created on PlanHub each month and all of them have to go through a location verification process. I appreciate your service.
ZipCodeAPI was exactly what we needed, super easy to use and fast. We had looked at other tools but couldn’t find anything else that did what we needed. And the documentation was easy too.
ZipCodeAPI has very competitive pricing and was super easy for the client to understand and set up on their own. Really appreciate y’all’s work on this API.
Over 40 million adults and 20 million children in the United State experience a mental health condition, including millions who have severe conditions that profoundly affect their lives and that of their families. NAMI is dedicated to building better lives for all people affected by mental illness. Using the ZipCodeAPI allows NAMI to support those individuals quickly and provide relevant resources at a time that is often most critical.
For our project I needed to get current weather conditions by saving zip codes to a database and using those zip codes to hit up Weatherbit. The thing I didn’t like was that Weatherbit, for most cities, doesn’t return an ACTUAL city name. It returns the county, so my weather info would say ‘county name, state’ and I hated that.
I used your api by passing in the same zip code to get the ACTUAL city name to populate my weather info.
It was pretty effortless to bind our database of youth bowling league organizations with your service to offer our members a tool to find information within a desired location. We ended up using the ‘zip code by radius’ API as it fit perfectly with our requirements in that the user would need to select a zip code and radius and get back all locations within that mile range. Our database returns a query that contains all of the bowling establishments that offer youth bowling events. The data also contains specific event times, costs, ages etc., that inserted into a web page generated on the fly for each location.
The first question on the application is "Enter Your Zip Code". The beauty of the zipcode API is that we can then pre-populate the city and state on the application based on their zip code entry.
Client-side access authentication allowed us to develop our solution in a platform where server code execution was extremely limited.
We have a blog here explaining when you should use the application key versus the JavaScript client key.
If you already store latitude and longitudes in your database, you can use our API to help you query your database for places within a given radius. When you call the API, you specify the latitude and longitude of the center point, the distance/radius from this location, the field names used in your database for latitude and longitude, and a precision. The higher the precision, the more detailed the SQL string will be and the more accurate the results will be. See the API Documentation for more information.
Note that this API is an advanced API. In most cases, you will want to use other APIs to get zip codes in a radius of another zip code or to get information about a specific zip code.
The API request limit is enforced by requests per hour, not per minutes. The number of API requests that people need to make of a zip code API can fluctuate a lot. Some prospective users have questions about the API request limit on the Plans page. The page shows the requests per minute limit, but the only limit that matters is the numbers of requests per hour. So your request number can fluctuate as much as you want as long as you stay below the hourly limit.
The per minute limit is there strictly for informational purposes only. API requests sent over the hourly limit will receive an HTTP status code of 429.
You can try ZipCodeAPI and get 10 API requests per hour for free forever. For the first two weeks, you will get 50 requests per hours as part of your free trial. Then if you need more than 10 requests per hour, you can decide what is the right amount for you.
We have a blog here explaining how to resolve CORS issues.
Yes, GKB Labs and Company119 are partners who can help on your next project.
Email us at and we'll get back to you.
We make changes we learn about from customers in a timely manner, typically within a business day or two.
We get from different sources including census data.
Yes, it’s the haversine formula for the straight line distance between two points in the zip codes.
To keep our cost low, we do not offer a contractual SLA. We have been offering this service for over 10 years and there have been less than 5 outages, and those are typically resolved quickly. If any customer is displeased with our service, we are happy to issue a refund for the remainder of your contract period.