ZIPAPI

ZIPAPI - Your free access to zip code information

Welcome to our ZIPAPI! Our API allows you to easily access and integrate zip code data into your own applications and websites. With our API, you can perform a variety of tasks such as:

  • Look up the zip code for a given address
  • Find the city and state associated with a zip code
  • Determine the latitude and longitude of a zip code
  • Calculate the distance between two zip codes
  • And much more!

Our API is fast, reliable, and easy to use. Start making requests for free now (fair-use). Try our zip code API today and see how it can enhance your project!

ZIPAPI logo

Always up to date

We always keep our database up to date so that the API always provides the correct information.

Easy to read API

API provides well-structured JSON endpoints. You can integrate the API in minutes.

Fast calls

We are constantly working on optimizing the API. Therefore, our API is characterized by being extremely fast.

GET

Info

Get information about the locality of the zip code.

GEThttps://zip-api.eu/api/v1/info/[country_code]-[postal_code]
GEThttps://zip-api.eu/api/v1/info/[lat],[lng]/[accuracy]/[unit]
GEThttps://zip-api.eu/api/v1/info/[country_code]-[postal_code]?fields=postal_code
GET

Radius

This call converts zip codes to a list of zip codes within a specified distance from each other.

GEThttps://zip-api.eu/api/v1/radius/[country_code]-[postal_code]/[distance]/[unit]
GEThttps://zip-api.eu/api/v1/radius/[lat],[lng]/[distance]/[unit]
GEThttps://zip-api.eu/api/v1/radius/[country_code]-[postal_code]/[distance]/[unit]?fields=distance
GET

Entfernung

Get distance and information between two or more zip codes.

GEThttps://zip-api.eu/api/v1/distance/[country_code]-[postal_code]/[country_code]-[postal_code];[country_code]-[postal_code];.../[unit]
GEThttps://zip-api.eu/api/v1/distance/[lat],[lng]/[lat],[lng];[lat],[lng];.../[unit]
GEThttps://zip-api.eu/api/v1/distance/[country_code]-[postal_code]/[country_code]-[postal_code];[country_code]-[postal_code];.../[unit]?fields=distance
GET

Codes

Get all zip codes matching your query.

GEThttps://zip-api.eu/api/v1/codes/state=[country_code]-[state]
GEThttps://zip-api.eu/api/v1/codes/postal_code=[country_code]-[postal_code]
GEThttps://zip-api.eu/api/v1/codes/postal_code=[country_code]-[postal_code]*
GEThttps://zip-api.eu/api/v1/codes/place_name=[country_code]-[place_name]
GEThttps://zip-api.eu/api/v1/codes/place_name=[place_name];state=[state];postal_code=[postal_code]
GEThttps://zip-api.eu/api/v1/codes/place_name=[country_code]-[place_name]?fields=postal_code
Notes
Color codes
Color code Meaning
Required
Optional
Default value for optional parameters
Parameter Default value
accuracy 10
distance 10
unit km
Description of the parameters
Parameter Term Description
country_code Country code Alpha-2 codes are two-letter country codes defined in ISO 3166-1.
postal_code Postal code A postal code is a series of letters or numbers or both included in a postal address, sometimes including spaces or punctuation.
place_name Place name Place names written in the corresponding language.
lat Latitude Indicates the north-south position of a point on the Earth's surface.
lng Longitude Specifies the east-west position of a point on the Earth's surface.
distance Distance The distance between two places, points.
accuracy Accuracy How close the measured value is to the actual value.
unit UNit A definite magnitude of a quantity, defined and adopted by convention or by law.

By programmers for programmers