Zip Code API - Free Postal Code Search & Validation
A completely free Zip Code REST API and the best way to get accurate zip code data for your application.
No code needed? Try the free ZIP code distance calculator or look up postal codes by country.

Access The API In Just Three Easy Steps
Zip codes are handled differently in almost every country. We provide an efficient data layer to help you validate and normalize zip codes.
Get Your API Key
With a few clicks, register your new API key. We provide a generous free tier to get you started and cover basic use cases.
Make A Request
Our API suite provides you with plenty of useful documentation and use case examples to provide you with the best possible experience.
Receive Postal Code Data
Receive postal code data in real-time through our Zip code REST-API. All of our data are updated regularly.
Available Data Endpoints
Our zip code API provides multiple endpoints to allow global searches and postal code related calculations.
GET /v1/search1
2
3
4
// search for zip codes
curl -X GET \
--url "https://api.zipcodestack.com/v1/search?codes=20095&country=de" \
--header "apikey: YOUR-APIKEY"
GET /v1/distance1
2
3
4
// calculate distance between two zip codes
curl -X GET \
--url "https://api.zipcodestack.com/v1/distance?code=99501&compare=90210" \
--header "apikey: YOUR-APIKEY"
More endpoints for every address workflow
Every search result now also includes the county or district level and how precise the coordinates are.
GET /v1/validateNewValidate postal codes
Check that a code exists and matches its country's format before an order ships.
GET /v1/autocompleteNewAutocomplete
Suggest postal codes and their city while customers type their address.
GET /v1/reverseNewReverse lookup
Turn a GPS position into the nearest postal codes, closest first.
GET /v1/radiusRadius search
All postal codes within a distance of a code, for delivery zones and store finders.
GET /v1/polygonPolygon search
All postal codes inside any shape you draw on a map.
GET /v1/code/cityCodes by city & state
Every postal code of a city or a state.
"We had a few special requirements, and the zipcodestack.com team was super responsive & helpful, as they replied to all our questions and helped us get started within just a few hours. With the help of their ZIP code API, we can now easily handle our global address validation and shipping calculations."
Armin Daryabegi CTO

Frequently Asked Questions
Everything You Need to Know – Answers to Your Most Common Questions
The Zip Code API provides real-time validation and information about postal codes for various global locations. It helps businesses verify addresses, ensure accurate shipping, and gather location data.
Have More Questions? Feel Free To Contact Us!
Start Using Our ZIP Code API For Free Today!
The Perfect Tool To Handle Your Address Validation Needs. Our API Helps You With Current And Accurate Postal Code Data. Stop Worrying About Uptime & Outdated Data.
Global Coverage
Bank-Level Security
Premium Support
Fast Response Times
No Credit Card Required | Instant Access