City Details API

The City Details API provides complete data retrieval for any specified U.S. city, simplifying address-based operations in a variety of applications.

About the API:  

The City Details API provides detailed information about any city in the USA. Designed with simplicity and efficiency in mind, this API provides an easy means to access a wealth of data about cities around the world. By simply entering the name of a city, users can expect to receive a wide range of structured data fields, each providing valuable information about various aspects of the city's identity.

When querying the API with a city name, users can expect a robust response with a multitude of essential data. This data includes a complete address, which facilitates precise identification of the location within the city. In addition, the response includes crucial administrative information, such as the city's county or district, ensuring a deeper understanding of its geopolitical context. In addition, the API provides the state or province in which the city resides, a vital piece of information especially relevant for locations in larger countries with complex administrative divisions.

In addition, the API provides the postal code of the city, an indispensable component for logistics operations, shipping and address validation. This feature increases the accuracy and efficiency of various applications that rely on accurate address information. In addition, users can expect to retrieve a relevant contact number associated with the city, providing a convenient means of communication for inquiries, assistance or emergency services.

Designed for ease of integration, the API features a user-friendly interface that simplifies the application development process. With intuitive documentation and its clear endpoint, integrating city data into existing systems becomes a simple task. In addition, the API ensures data accuracy and timeliness by regularly updating its database to reflect the latest information on cities around the world.

In short, the City Details API represents a sophisticated solution for accessing comprehensive city information. With its intuitive interface, broad data coverage and commitment to accuracy, the API enables users to create innovative applications that leverage city data to deliver greater value to users. Whether used for commercial, logistical or informational purposes, the API stands as an indispensable tool for accessing essential city details with unprecedented ease and efficiency.

 

What this API receives and what your API provides (input/output)?

It will receive a parameter and provide you with a JSON.

 

What are the most common uses cases of this API?

  1. Travel Planning: Providing users with accurate city information for itinerary planning.

    E-commerce Checkout: Verifying shipping addresses during the checkout process.

    Location-Based Services: Enhancing user experience by tailoring content based on their city.

    Business Directories: Displaying contact details and addresses for local businesses.

    Emergency Services: Quickly accessing city information for emergency response systems.

     

Are there any limitations to your plans?

Besides the number of API calls, there is no other limitation.

API Documentation

Endpoints


To use this endpoint you must indicate the city code of a city in the parameter.



                                                                            
GET https://zylalabs.com/api/4228/city+details+api/5135/city+information
                                                                            
                                                                        

City Information - Endpoint Features

Object Description
city [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"A":"71 ST. NICHOLAS DRIVE","B":"","C":"NORTH POLE","D":"FAIRBANKS NORTH STAR","E":"AK","F":"99705","G":"(907) 488-6419"},{"A":"356 OLD STEESE HWY","B":"","C":"FAIRBANKS","D":"FAIRBANKS NORTH STAR","E":"AK","F":"99701","G":"(907) 459-2355"},{"A":"3576 AIRPORT WAY","B":"UNIT 9","C":"FAIRBANKS","D":"FAIRBANKS NORTH STAR","E":"AK","F":"99709","G":"(907) 451-1942"},{"A":"9400 GLACIER HWY","B":"SUITE 1","C":"JUNEAU","D":"JUNEAU","E":"AK","F":"99803","G":"(907) 790-3637"},{"A":"201 KATLIAN ST","B":"STE. 108","C":"SITKA","D":"SITKA","E":"AK","F":"99835","G":"(907) 747-3617"},{"A":"2417 TONGASS AVE","B":"SUITE 109","C":"KETCHIKAN","D":"KETCHIKAN","E":"AK","F":"99901","G":"(907) 247-2880"},{"A":"402 W. MARINE WAY","B":"SUITE 100 - SHIPS BUILDING","C":"KODIAK","D":"KODIAK ISLAND","E":"AK","F":"99615","G":"(907) 481-2981"},{"A":"3726 LAKE STREET","B":"SUITE F","C":"HOMER","D":"KENAI PENINSULA","E":"AK","F":"99603","G":"(907) 235-4730"},{"A":"35553 KENAI SPUR HIGHWAY","B":"","C":"SOLDOTNA","D":"KENAI PENINSULA","E":"AK","F":"99669","G":"(907) 262-7090"},{"A":"10672 KENAI SPUR HIGHWAY","B":"SUITE 106","C":"KENAI","D":"KENAI PENINSULA","E":"AK","F":"99611","G":"(907) 283-4402"},{"A":"1830 E. PARKS HWY","B":"SUITE A 112","C":"WASILLA","D":"MATANUSKA-SUSITNA","E":"AK","F":"99654","G":"(907) 376-8159"},{"A":"4711 BUSINESS PARK BLVD","B":"STE. 10 BLDG 1","C":"ANCHORAGE","D":"ANCHORAGE","E":"AK","F":"99503","G":"(907) 561-3344"},{"A":"320 W 5TH AVENUE","B":"SUITE 304","C":"ANCHORAGE","D":"ANCHORAGE","E":"AK","F":"99501","G":"(907) 277-8707"},{"A":"1865 E PARKS HWY","B":"COTTONWOOD CREEK MALL","C":"WASILLA","D":"","E":"AK","F":"99654","G":"(907) 631-0350"},{"A":"320 WEST 5TH AVE","B":"SUITE 182 - 1ST FLOOR","C":"ANCHORAGE","D":"ANCHORAGE","E":"AK","F":"99501","G":"(907) 258-2191"},{"A":"600 E. NORTHERN LIGHTS BLVD. #E","B":"SEARS MALL","C":"ANCHORAGE","D":"ANCHORAGE","E":"AK","F":"99503","G":"(907) 279-5288"},{"A":"11432 BUSINESS BLVD","B":"SUITE 2","C":"EAGLE RIVER","D":"ANCHORAGE","E":"AK","F":"99577","G":"(907) 622-1725"},{"A":"800 E DIMOND BLVD","B":"SUITE 118","C":"ANCHORAGE","D":"ANCHORAGE","E":"AK","F":"99515","G":"(907) 336-3355"},{"A":"1118 N MULDOON ROAD","B":"SUITE 170","C":"ANCHORAGE","D":"ANCHORAGE","E":"AK","F":"99504","G":"(907) 338-3282"},{"A":"124 E I-65 SERVICE RD NORTH","B":"","C":"MOBILE","D":"MOBILE","E":"AL","F":"36607","G":"(251) 450-3561"},{"A":"2200 HWY 98 STE 5","B":"","C":"DAPHNE","D":"BALDWIN","E":"AL","F":"36526","G":"(251) 621-7373"},{"A":"2091 DOUGLAS AVE","B":"","C":"BREWTON","D":"ESCAMBIA","E":"AL","F":"36426","G":"(251) 809-0000"},{"A":"431 PIKE ST","B":"","C":"MONROEVILLE","D":"MONROE","E":"AL","F":"36460","G":"(251) 575-2355"},{"A":"4419 RANGELINE RD","B":"STE D","C":"MOBILE","D":"MOBILE","E":"AL","F":"36619","G":"(251) 661-4444"},{"A":"2131 S MCKENZIE ST.","B":"","C":"FOLEY","D":"FOLEY","E":"AL","F":"36535","G":"(251) 970-3452"},{"A":"9912 DIMITROS AVE.","B":"SUITE 101","C":"DAPHNE","D":"","E":"AL","F":"36526","G":"(251) 661-4444"},{"A":"3293 BEL AIR MALL","B":"SPACE H4","C":"MOBILE","D":"MOBILE","E":"AL","F":"36606","G":"(251) 471-6205"},{"A":"720 SCHILLINGER ROAD S","B":"SUITE 13","C":"MOBILE","D":"","E":"AL","F":"36695","G":"(251) 639-1833"},{"A":"700 QUINTARD AVE","B":"","C":"OXFORD","D":"CALHOUN","E":"AL","F":"36203","G":"(256) 831-2544"},{"A":"1616 GADSDEN HWY","B":"STE 102","C":"BIRMINGHAM","D":"JEFFERSON","E":"AL","F":"35235","G":"(205) 655-0089"},{"A":"3232 GALLERIA CIRCLE STE 102","B":"","C":"BIRMINGHAM","D":"SHELBY","E":"AL","F":"35244","G":"(205) 733-9500"},{"A":"2010 RAINBOW DR","B":"","C":"GADSDEN","D":"ETOWAH","E":"AL","F":"35901","G":"(256) 546-9449"},{"A":"1830 QUINTARD AVE","B":"","C":"ANNISTON","D":"CALHOUN","E":"AL","F":"36201","G":"(256) 236-8677"},{"A":"9256 PARKWAY E","B":"STE B","C":"BIRMINGHAM","D":"","E":"AL","F":"35206","G":"(205) 833-5297"},{"A":"4700 HIGHWAY 280 EAST SUITE 5","B":"","C":"BIRMINGHAM","D":"SHELBY","E":"AL","F":"35242","G":"(205) 980-0273"},{"A":"60 COLONIAL PROMENADE PKWY","B":"","C":"ALABASTER","D":"SHELBY","E":"AL","F":"35007","G":"(205) 664-3421"},{"A":"1710 OPELIKA RD","B":"","C":"AUBURN","D":"","E":"AL","F":"36830","G":"(334) 502-4043"},{"A":"8337 HWY 431 N","B":"","C":"ALBERTVILLE","D":"MARSHALL","E":"AL","F":"35950","G":"(256) 878-2055"},{"A":"4929 UNIVERSITY DR STE G","B":"","C":"HUNTSVILLE","D":"MADISON","E":"AL","F":"35816","G":"(256) 890-3700"},{"A":"15046 HWY 43 STE C","B":"","C":"RUSSELLVILLE","D":"FRANKLIN","E":"AL","F":"35653","G":"(256) 331-1927"},{"A":"42417 HWY 195","B":"","C":"HALEYVILLE","D":"WINSTON","E":"AL","F":"35565","G":"(205) 486-3000"},{"A":"233 AVALON AVE.","B":"","C":"MUSCLE SHOALS","D":"COLBERT","E":"AL","F":"35661","G":"(256) 383-5111"},{"A":"4800 WHITESBURG DRIVE, SUITE 102","B":"","C":"HUNTSVILLE","D":"MADISON","E":"AL","F":"35801","G":"(256) 650-2080"},{"A":"349 COX CREEK PKWY","B":"","C":"FLORENCE","D":"LAUDERDALE","E":"AL","F":"35630","G":"(256) 718-3100"},{"A":"1217 POINT MALLARD PKWY SE","B":"","C":"DECATUR","D":"","E":"AL","F":"35601","G":"(256) 301-5700"},{"A":"6544 AARON ARONOV DR","B":"","C":"FAIRFIELD","D":"JEFFERSON","E":"AL","F":"35064","G":"(205) 786-6790"},{"A":"1351 MCFARLAND BLVD NE","B":"STE 110","C":"TUSCALOOSA","D":"TUSCALOOSA","E":"AL","F":"35406","G":"(205) 759-1086"},{"A":"5980 OLD GREENSBORO RD","B":"STE 1","C":"TUSCALOOSA","D":"TUSCALOOSA","E":"AL","F":"35405","G":"(205) 345-5575"},{"A":"220 STATE FARM PKWY STE 104","B":"","C":"BIRMINGHAM","D":"JEFFERSON","E":"AL","F":"35209","G":"(205) 912-7600"},{"A":"1965 COBBS-FORD RD","B":"","C":"PRATTVILLE","D":"AUTAUGA","E":"AL","F":"36066","G":"(334) 358-7330"},{"A":"835 ODOM ROAD, SUITE 101","B":"","C":"GARDENDALE","D":"","E":"AL","F":"35071","G":"(205) 608-0548"},{"A":"7024 EASTCHASE PARKWAY","B":"","C":"MONTGOMERY","D":"MONTGOMERY","E":"AL","F":"36117","G":"(334) 272-3115"},{"A":"4949 PROMENADE PARKWAY","B":"","C":"BESSEMER","D":"","E":"AL","F":"35022","G":"(205) 424-9763"},{"A":"907 ANN ST","B":"","C":"MONTGOMERY","D":"","E":"AL","F":"36107","G":"(334) 265-1015"},{"A":"1704 HIGHWAY 78 EAST","B":"","C":"JASPER","D":"","E":"AL","F":"35501","G":"(205) 302-2600"},{"A":"2617 LAKEWOOD VILLAGE DR","B":"","C":"NORTH LITTLE ROCK","D":"PULASKI","E":"AR","F":"72116","G":"(501) 812-7000"},{"A":"2528 W 28TH ST","B":"","C":"PINE BLUFF","D":"JEFFERSON","E":"AR","F":"71603","G":"(870) 535-8768"},{"A":"4546 E MCCAIN BLVD","B":"","C":"NORTH LITTLE ROCK","D":"PULASKI","E":"AR","F":"72117","G":"(501) 753-7203"},{"A":"2614 S. SHACKLEFORD RD., SUITE I","B":"","C":"LITTLE ROCK","D":"","E":"AR","F":"72205","G":"(501) 716-2679"},{"A":"3544 EAST RACE STREET","B":"","C":"SEARCY","D":"","E":"AR","F":"72143","G":"(501) 279-0011"},{"A":"2070 JOHN HARDEN DRIVE","B":"SUITE N","C":"JACKSONVILLE","D":"PULASKI","E":"AR","F":"72076","G":"(501) 985-0002"},{"A":"3006 E HIGHLAND","B":"STE A","C":"JONESBORO","D":"","E":"AR","F":"72401","G":"(870) 935-5500"},{"A":"227 CORNERSTONE BLVD","B":"","C":"HOT SPRINGS","D":"GARLAND","E":"AR","F":"71913","G":"(501) 520-0153"},{"A":"11525 CANTRELL RD","B":"SUITE 601","C":"LITTLE ROCK","D":"PULASKI","E":"AR","F":"72212","G":"(501) 225-4311"},{"A":"7409 ALCOA RD","B":"SUITE 101","C":"BRYANT","D":"SALINE","E":"AR","F":"72022","G":"(501) 776-3011"},{"A":"821 HOGAN LN","B":"SUITE 100","C":"CONWAY","D":"FAULKNER","E":"AR","F":"72034","G":"(501) 513-3150"},{"A":"11520 FINANCIAL CENTER PKWY","B":"","C":"LITTLE ROCK","D":"PULASKI","E":"AR","F":"72211","G":"(501) 225-2355"},{"A":"3065 E MAIN","B":"","C":"RUSSELLVILLE","D":"POPE","E":"AR","F":"72802","G":"(479) 968-2464"},{"A":"855 AMITY RD","B":"","C":"CONWAY","D":"","E":"AR","F":"72032","G":"(501) 548-0373"},{"A":"1801 N WEST AVE","B":"","C":"EL DORADO","D":"UNION","E":"AR","F":"71730","G":"(870) 862-0010"},{"A":"501 C NORTH HERVEY","B":"","C":"HOPE","D":"","E":"AR","F":"71801","G":"(870) 722-5592"},{"A":"344 HIGHWAY 425 NORTH","B":"","C":"MONTICELLO","D":"","E":"AR","F":"71655","G":"(870) 460-9300"},{"A":"2203 S PROMENADE BLVD","B":"SUITE 8105","C":"ROGERS","D":"WASHINGTON","E":"AR","F":"72758","G":"(479) 621-0922"},{"A":"3075 N COLLEGE AVE","B":"","C":"FAYETTEVILLE","D":"WASHINGTON","E":"AR","F":"72703","G":"(479) 444-9100"},{"A":"4300 ROGERS AVE","B":"SUITE 16","C":"FORT SMITH","D":"SEBASTIAN","E":"AR","F":"72903","G":"(479) 783-4600"},{"A":"4404 W WALNUT","B":"SUITE 2","C":"ROGERS","D":"BENTON","E":"AR","F":"72756","G":"(479) 246-1000"},{"A":"4489 W SUNSET AVE","B":"","C":"SPRINGDALE","D":"WASHINGTON","E":"AR","F":"72764","G":"(479) 872-0136"},{"A":"7612 ROGERS AVE","B":"SUITE A","C":"FORT SMITH","D":"SEBASTIAN","E":"AR","F":"72903","G":"(479) 452-5919"},{"A":"4201 N SHILOH DR","B":"SPACE 1400","C":"FAYETTEVILLE","D":"WASHINGTON","E":"AR","F":"72703","G":"(479) 587-1030"},{"A":"1403 N MISSOURI ST","B":"","C":"WEST MEMPHIS","D":"VAN BUREN","E":"AR","F":"72301","G":"(870) 735-2708"},{"A":"6145 E BROADWAY BLVD","B":"","C":"TUCSON","D":"PIMA","E":"AZ","F":"85711","G":"(520) 790-0804"},{"A":"9565 E 22ND ST","B":"SUITE 115","C":"TUCSON","D":"PIMA","E":"AZ","F":"85748","G":"(520) 290-4555"},{"A":"7515 W ENCANTO BLVD","B":"","C":"PHOENIX","D":"MARICOPA","E":"AZ","F":"85035","G":"(623) 849-9194"},{"A":"2805 W AGUA FRIA FWY","B":"SUITE 3","C":"PHOENIX","D":"MARICOPA","E":"AZ","F":"85027","G":"(623) 581-2074"},{"A":"2700 S WOODLANDS VILLAGE BLVD","B":"SUITE 690","C":"FLAGSTAFF","D":"COCONINO","E":"AZ","F":"86001","G":"(928) 779-4210"},{"A":"13757 W BELL RD","B":"SUITE 103","C":"SURPRISE","D":"MARICOPA","E":"AZ","F":"85374","G":"(623) 556-1490"},{"A":"7700 W ARROWHEAD TOWNE CENTER","B":"K208","C":"GLENDALE","D":"MARICOPA","E":"AZ","F":"85308","G":"(623) 334-2457"},{"A":"4545 N SCOTTSDALE RD","B":"SUITE 104","C":"SCOTTSDALE","D":"MARICOPA","E":"AZ","F":"85251","G":"(480) 970-3063"},{"A":"20235 N CAVE CREEK RD","B":"SUITE A100","C":"PHOENIX","D":"MARICOPA","E":"AZ","F":"85024","G":"(602) 482-2322"},{"A":"4550 E CACTUS RD","B":"KS10","C":"PHOENIX","D":"MARICOPA","E":"AZ","F":"85032","G":"(602) 482-0338"},{"A":"4740 ...
                                                                                                                                                                                                                    
                                                                                                    

City Information - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/4228/city+details+api/5135/city+information?city=NY' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the City Details API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

To use this API users must indicate the city code of a city to obtain detailed information about the indicated city.

The City Details API allows users to retrieve complete information about specific cities through simple requests. This API provides details such as addresses, states, zip codes and phone numbers, which facilitates various city-based operations in applications.

There are different plans to suit all tastes, including a free trial for a small number of requests, but your rate is limited to avoid abuse of the service.

Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.

The City Details API is crucial for a variety of industries and applications, providing comprehensive information about specific cities with simplicity and efficiency.

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.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
2,019ms

Category:


Related APIs