US and Canadian Zip Code Distance,
Radius and Location API

The easy way to calculate distances, radius, and locations for US zip codes and CA postal codes.

Background image
Icon

Example code ->

Background image

Product Features

Make your forms faster by auto-filling information when users enter a zip code.

Faster checkouts improve user experience.
Try it now. ↓

Icon

Distance Between Zip Codes

The API allows you to quickly and easily figure out the distance between zip codes.
View Details »

Icon

Zip Codes in Radius

You can use the API to find all zip codes within a given radius from another zip code.
View Details »

Icon

Zip Codes to Location

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 »

Icon

Location to Zip Codes

You can use the API to determine possible zip codes for a city.
View Details »

Icon

Custom SQL Search

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 »

Icon

Find Close Zip Codes

The API can take a list of zip codes and match together those that are within a specified distance of each other.
View Details »

See API Documentation

Need a Real-Time Map Visualization?

Need a real-time visualization of traffic or user actions on your website? We use the real-time map ourselves to show API usage.

Pricing

Free

$0 / year

Requests/second
0.00
Requests/minute
0
Requests/hour
10
Requests/day
240

Small

$199 / year

Requests/second
0.06
Requests/minute
3
Requests/hour
200
Requests/day
4,800

Medium

$499 / year

Requests/second
0.69
Requests/minute
42
Requests/hour
2,500
Requests/day
60,000

Extra Large

$4,000 / year

Requests/second
13.89
Requests/minute
833
Requests/hour
50,000
Requests/day
1,200,000

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.

Go Unlimited

For large enterprise, gain unlimited requests per hour.

Learn More

$10,000 / year

Buy Unlimited

What Our Customers Say

Avatar
Dana Ledyard
Senior Director, Business Development at Sylvan Learning

The service provides accurate results with minimal response time.

Avatar
Jonathan Foucheaux
Partner/CTO, WRSTBND

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.

Avatar
Alan Groarke
Koality Web Solutions Inc

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!

Avatar
Nick Goers
Lead Web Developer @ Company119

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.

Avatar
Justin Comino
HomeNation

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.

Avatar
Matthew Ramirez
Vice President of Operations @ Livingston Hearing Aids

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.

Avatar
Kyle McCall
SuperTech Media LLC

It benefits my business by allowing me to autofill parts of my web form for my customers vs having them manually complete everything.

Avatar
Aaron Bauer
Managing Director at Liberty Lending Group

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.

Avatar
Daniel Drouhard
co-founder of GoCarrera

As part of our Work Order matching algorithm, we utilize Redline13’s 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.

Avatar
Paul Giberson
Senior Software Architect for IRELO

ZipCodeAPI is a rock-solid API.

Avatar
DCIT Founder
CEO Raffi Minassian

We use ZipCodeAPI to prevent errors. Bottom line, it works great!

Avatar
Kevin Priddy
President/CEO of PlanHub

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.

Avatar
Paul Dorney
Co-founder and CTO of Silbo

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.

Avatar
Matthew Osterhaus
Product Manager at Peek

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.

Avatar
Jimmy Stewart
CIO, NAMI

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.

Avatar
Shane Wilson
a student at NSS

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.

Avatar
Richard Elsberry
Bowling Proprietors Association of Minnesota

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.

Avatar
Heidi Lee
Web Developer, HeidiLee.Net

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.

Avatar
Alexis Guzman

Client-side access authentication allowed us to develop our solution in a platform where server code execution was extremely limited.

Frequently Asked Questions

Which ZipCodeAPI key do I use?

We have a blog here explaining when you should use the application key versus the JavaScript client key.

Can I use ZipCodeAPI in our database?

If you already store latitude and longitudes in your database, you can ues our API to help you query your database for places within a given radius. See this blog for details.

How does the ZipCodeAPI request limit work?

The API request limit is enforced by requests per hour. We have a blog here with additional details.

How do I fix CORS errors?

We have a blog here explaining how to resolve CORS issues.

Do you have partners to help us with integrating the API?

Yes, GKB Labs and Company119 are partners who can help on your next project.

What if I have a question about a particular zip code?

Email us at and we'll get back to you.

How often is the zip code data updated?

We make changes we learn about from customers in a timely manner, typically within a business day or two.

What is the source of the data?

We get from different sources including census data.

How are the zip codes within a given radius determined? Is the haversine formula used?

Yes, it’s the haversine formula for the straight line distance between two points in the zip codes.

Do you offer any type of SLA for API availability?

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.