This API provides efficient and reliable access to geographic information about cities and postal codes in the United States. It is designed for users who need to consult accurate location data for various purposes, such as delivery services, market analysis, logistics planning, or geolocation systems.
The API offers two main features. The first allows you to send the name of a city and its associated state to receive a complete list of postal codes within that city. In addition to postal codes, each record includes important details such as the state abbreviation, latitude, longitude, and the name of the city and state, facilitating integrations with maps, routing systems, and geographic databases. This is especially useful for applications that need to handle multiple zip codes per city or for services that rely on accurate territorial information.
The second feature allows you to query directly by zip code. When you enter a specific ZIP code, the API returns the corresponding data, including the city name, state, state abbreviation, and exact geographic coordinates. This functionality is ideal for verifying addresses, calculating distances, validating locations in forms, or enriching databases with additional geographic information.
The API is designed with a focus on ease of use, response speed, and reliability. It returns clear responses in a standardized format, including status codes, possible errors, and the requested information in a consistent schema. This ensures that applications can integrate it seamlessly and handle data consistently.
With these features, the API becomes a robust tool for any system that needs to work with city and ZIP code data in the US, offering accuracy, speed, and complete access to the geographic information necessary for smart decisions and efficient operations.
Allows you to obtain detailed information about a specific location by entering a U.S. zip code.
Zip Code Data - Endpoint Features
| Object | Description |
|---|---|
zip |
[Required] Enter a zip code |
{"status":"ok","error":null,"data":{"zipcode":"90001","state_abbr":"CA","latitude":"33.972914","longitude":"-118.24878","city":"Los Angeles","state":"California"}}
curl --location --request GET 'https://zylalabs.com/api/10975/us+zip+code+fetcher+api/20932/zip+code+data?zip=90001' --header 'Authorization: Bearer YOUR_API_KEY'
Receives city and state, returning zip codes, coordinates, and complete details for all corresponding locations within that city.
Zip Code Information by City and State - Endpoint Features
| Object | Description |
|---|---|
city |
[Required] Enter a city |
state |
[Required] Enter a state |
{"status":"ok","error":null,"data":{"search":"Los Angeles","count":61,"foundCities":[{"zipcode":"90001","state_abbr":"CA","latitude":"33.972914","longitude":"-118.24878","city":"Los Angeles","state":"California"},{"zipcode":"90002","state_abbr":"CA","latitude":"33.948315","longitude":"-118.24845","city":"Los Angeles","state":"California"},{"zipcode":"90003","state_abbr":"CA","latitude":"33.962714","longitude":"-118.27600","city":"Los Angeles","state":"California"},{"zipcode":"90004","state_abbr":"CA","latitude":"34.077110","longitude":"-118.30755","city":"Los Angeles","state":"California"},{"zipcode":"90005","state_abbr":"CA","latitude":"34.058911","longitude":"-118.30848","city":"Los Angeles","state":"California"},{"zipcode":"90006","state_abbr":"CA","latitude":"34.048351","longitude":"-118.29430","city":"Los Angeles","state":"California"},{"zipcode":"90007","state_abbr":"CA","latitude":"34.026448","longitude":"-118.28290","city":"Los Angeles","state":"California"},{"zipcode":"90008","state_abbr":"CA","latitude":"34.009754","longitude":"-118.33705","city":"Los Angeles","state":"California"},{"zipcode":"90010","state_abbr":"CA","latitude":"34.062709","longitude":"-118.31481","city":"Los Angeles","state":"California"},{"zipcode":"90011","state_abbr":"CA","latitude":"34.007063","longitude":"-118.25868","city":"Los Angeles","state":"California"},{"zipcode":"90012","state_abbr":"CA","latitude":"34.061611","longitude":"-118.23944","city":"Los Angeles","state":"California"},{"zipcode":"90013","state_abbr":"CA","latitude":"34.044662","longitude":"-118.24255","city":"Los Angeles","state":"California"},{"zipcode":"90014","state_abbr":"CA","latitude":"34.042912","longitude":"-118.25193","city":"Los Angeles","state":"California"},{"zipcode":"90015","state_abbr":"CA","latitude":"34.038993","longitude":"-118.26516","city":"Los Angeles","state":"California"},{"zipcode":"90016","state_abbr":"CA","latitude":"34.029711","longitude":"-118.35255","city":"Los Angeles","state":"California"},{"zipcode":"90017","state_abbr":"CA","latitude":"34.052561","longitude":"-118.26434","city":"Los Angeles","state":"California"},{"zipcode":"90018","state_abbr":"CA","latitude":"34.029112","longitude":"-118.31830","city":"Los Angeles","state":"California"},{"zipcode":"90019","state_abbr":"CA","latitude":"34.048411","longitude":"-118.34015","city":"Los Angeles","state":"California"},{"zipcode":"90020","state_abbr":"CA","latitude":"34.066460","longitude":"-118.30863","city":"Los Angeles","state":"California"},{"zipcode":"90021","state_abbr":"CA","latitude":"34.029313","longitude":"-118.24182","city":"Los Angeles","state":"California"},{"zipcode":"90022","state_abbr":"CA","latitude":"34.023662","longitude":"-118.15581","city":"Los Angeles","state":"California"},{"zipcode":"90023","state_abbr":"CA","latitude":"34.023039","longitude":"-118.20231","city":"Los Angeles","state":"California"},{"zipcode":"90024","state_abbr":"CA","latitude":"34.063209","longitude":"-118.43643","city":"Los Angeles","state":"California"},{"zipcode":"90025","state_abbr":"CA","latitude":"34.045006","longitude":"-118.44527","city":"Los Angeles","state":"California"},{"zipcode":"90026","state_abbr":"CA","latitude":"34.078510","longitude":"-118.26596","city":"Los Angeles","state":"California"},{"zipcode":"90027","state_abbr":"CA","latitude":"34.111208","longitude":"-118.28842","city":"Los Angeles","state":"California"},{"zipcode":"90028","state_abbr":"CA","latitude":"34.098859","longitude":"-118.32745","city":"Los Angeles","state":"California"},{"zipcode":"90029","state_abbr":"CA","latitude":"34.090259","longitude":"-118.29455","city":"Los Angeles","state":"California"},{"zipcode":"90031","state_abbr":"CA","latitude":"34.078710","longitude":"-118.21610","city":"Los Angeles","state":"California"},{"zipcode":"90032","state_abbr":"CA","latitude":"34.081660","longitude":"-118.17568","city":"Los Angeles","state":"California"},{"zipcode":"90033","state_abbr":"CA","latitude":"34.050411","longitude":"-118.21195","city":"Los Angeles","state":"California"},{"zipcode":"90034","state_abbr":"CA","latitude":"34.030560","longitude":"-118.39804","city":"Los Angeles","state":"California"},{"zipcode":"90035","state_abbr":"CA","latitude":"34.052660","longitude":"-118.38531","city":"Los Angeles","state":"California"},{"zipcode":"90036","state_abbr":"CA","latitude":"34.070360","longitude":"-118.34926","city":"Los Angeles","state":"California"},{"zipcode":"90037","state_abbr":"CA","latitude":"34.002063","longitude":"-118.28737","city":"Los Angeles","state":"California"},{"zipcode":"90038","state_abbr":"CA","latitude":"34.089459","longitude":"-118.32850","city":"Los Angeles","state":"California"},{"zipcode":"90039","state_abbr":"CA","latitude":"34.110425","longitude":"-118.25832","city":"Los Angeles","state":"California"},{"zipcode":"90040","state_abbr":"CA","latitude":"33.997492","longitude":"-118.15284","city":"Los Angeles","state":"California"},{"zipcode":"90041","state_abbr":"CA","latitude":"34.137557","longitude":"-118.20765","city":"Los Angeles","state":"California"},{"zipcode":"90042","state_abbr":"CA","latitude":"34.114558","longitude":"-118.19233","city":"Los Angeles","state":"California"},{"zipcode":"90043","state_abbr":"CA","latitude":"33.987463","longitude":"-118.33400","city":"Los Angeles","state":"California"},{"zipcode":"90044","state_abbr":"CA","latitude":"33.953814","longitude":"-118.29158","city":"Los Angeles","state":"California"},{"zipcode":"90045","state_abbr":"CA","latitude":"33.960041","longitude":"-118.39490","city":"Los Angeles","state":"California"},{"zipcode":"90046","state_abbr":"CA","latitude":"34.098908","longitude":"-118.36241","city":"Los Angeles","state":"California"},{"zipcode":"90047","state_abbr":"CA","latitude":"33.958464","longitude":"-118.30998","city":"Los Angeles","state":"California"},{"zipcode":"90048","state_abbr":"CA","latitude":"34.073759","longitude":"-118.37376","city":"Los Angeles","state":"California"},{"zipcode":"90049","state_abbr":"CA","latitude":"34.067409","longitude":"-118.47528","city":"Los Angeles","state":"California"},{"zipcode":"90056","state_abbr":"CA","latitude":"33.986212","longitude":"-118.37099","city":"Los Angeles","state":"California"},{"zipcode":"90057","state_abbr":"CA","latitude":"34.061911","longitude":"-118.27687","city":"Los Angeles","state":"California"},{"zipcode":"90058","state_abbr":"CA","latitude":"34.000219","longitude":"-118.22605","city":"Los Angeles","state":"California"},{"zipcode":"90059","state_abbr":"CA","latitude":"33.927471","longitude":"-118.24778","city":"Los Angeles","state":"California"},{"zipcode":"90061","state_abbr":"CA","latitude":"33.923365","longitude":"-118.27591","city":"Los Angeles","state":"California"},{"zipcode":"90062","state_abbr":"CA","latitude":"34.003213","longitude":"-118.30780","city":"Los Angeles","state":"California"},{"zipcode":"90063","state_abbr":"CA","latitude":"34.045161","longitude":"-118.18650","city":"Los Angeles","state":"California"},{"zipcode":"90064","state_abbr":"CA","latitude":"34.034570","longitude":"-118.42843","city":"Los Angeles","state":"California"},{"zipcode":"90065","state_abbr":"CA","latitude":"34.107559","longitude":"-118.22663","city":"Los Angeles","state":"California"},{"zipcode":"90066","state_abbr":"CA","latitude":"34.002011","longitude":"-118.43083","city":"Los Angeles","state":"California"},{"zipcode":"90067","state_abbr":"CA","latitude":"34.056709","longitude":"-118.41183","city":"Los Angeles","state":"California"},{"zipcode":"90068","state_abbr":"CA","latitude":"34.122058","longitude":"-118.33790","city":"Los Angeles","state":"California"},{"zipcode":"90071","state_abbr":"CA","latitude":"34.052709","longitude":"-118.25590","city":"Los Angeles","state":"California"},{"zipcode":"90077","state_abbr":"CA","latitude":"34.101007","longitude":"-118.45077","city":"Los Angeles","state":"California"}]}}
curl --location --request GET 'https://zylalabs.com/api/10975/us+zip+code+fetcher+api/20933/zip+code+information+by+city+and+state?city=Los Angeles&state=CA' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
360ms
Service Level:
100%
Response Time:
36ms
Service Level:
100%
Response Time:
3,360ms
Service Level:
100%
Response Time:
229ms
Service Level:
100%
Response Time:
64ms
Service Level:
100%
Response Time:
692ms
Service Level:
100%
Response Time:
530ms
Service Level:
100%
Response Time:
349ms
Service Level:
100%
Response Time:
426ms
Service Level:
100%
Response Time:
181ms
Service Level:
100%
Response Time:
315ms
Service Level:
100%
Response Time:
610ms
Service Level:
100%
Response Time:
257ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
55ms
Service Level:
100%
Response Time:
5,299ms
Service Level:
100%
Response Time:
209ms
Service Level:
100%
Response Time:
5,278ms
Service Level:
100%
Response Time:
51ms
Service Level:
100%
Response Time:
193ms