City Information API

City Information API

The City Information API facilitates precise city information retrieval based on country codes, enhancing applications with auto-completed city names for seamless integration.

API description

About the API:  

The City Information API is a powerful and versatile tool designed to simplify the retrieval of city information based on country codes, while offering the convenience of auto-complete city names. This API is an invaluable resource for users who need accurate and efficient access to city data from around the world.

In essence, the City Information API streamlines the process of obtaining city information by allowing users to query the database using country codes. This approach ensures an accurate and targeted search, allowing users to seamlessly integrate city-related data into their applications or platforms. Whether for location-based services, travel applications or global data analysis, this API offers a complete solution for accessing city details.

One of the most prominent features of the City Information API is its support for auto-complete city names. This functionality improves the user experience by anticipating and suggesting city names as you type, reducing data entry errors and providing a more intuitive search experience. Autocomplete is especially beneficial for applications where users may be unfamiliar with specific city names or need help selecting the correct location.

In conclusion, the City Information API is a dynamic and easy-to-use solution for accessing detailed city information based on country codes, complemented by the efficiency of auto-complete city names. Its versatility, ease of integration and support for internationalization make it a valuable asset for users seeking accurate location data. Whether for enhancing travel applications, powering location-based services or performing global data analysis, the City Information API provides a solid foundation for accurate and efficient city information retrieval.

 

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

It will receive parameters and provide you with a JSON.

 

What are the most common uses cases of this API?

  1. Travel Planning Apps: Enable users to explore and plan trips by providing detailed information about cities in specific countries.

    Location-Based Services: Enhance applications with location-based features, such as weather updates, by integrating accurate city details.

    Global Data Analysis: Aid businesses in analyzing and understanding city demographics for market research and strategic decision-making.

    Auto-Complete City Search: Improve user experience in various applications by offering auto-completed city names during the search process.

Are there any limitations to your plans?

  • Basic Plan: 3,000 API Calls. 1,000 request per hour.

  • Pro Plan: 6,000 API Calls. 1,000 request per hour.

  • Pro Plus Plan: 12,000 API Calls. 1,000 request per hour.

  • Premium Plan: 24,000 API Calls. 1,000 request per hour.

API Documentation

Endpoints


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



                                                                            
GET https://zylalabs.com/api/3135/city+information+api/3330/cities+by+country+code
                                                                            
                                                                        

Cities by country code - Endpoint Features
Object Description
countryCode [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"data":[{"name":"Abbeville","countryCode":"US","stateCode":"AL","latitude":"31.57184000","longitude":"-85.25049000"},{"name":"Abbeville County","countryCode":"US","stateCode":"SC","latitude":"34.22257000","longitude":"-82.45871000"},{"name":"Abbotsford","countryCode":"US","stateCode":"WI","latitude":"44.94636000","longitude":"-90.31597000"},{"name":"Abbottstown","countryCode":"US","stateCode":"PA","latitude":"39.88649000","longitude":"-76.98470000"},{"name":"Aberdeen","countryCode":"US","stateCode":"FL","latitude":"26.55063000","longitude":"-80.14866000"},{"name":"Aberdeen Proving Ground","countryCode":"US","stateCode":"MD","latitude":"39.46686000","longitude":"-76.13066000"},{"name":"Abernathy","countryCode":"US","stateCode":"TX","latitude":"33.83230000","longitude":"-101.84295000"},{"name":"Abilene","countryCode":"US","stateCode":"KS","latitude":"38.91722000","longitude":"-97.21391000"},{"name":"Abingdon","countryCode":"US","stateCode":"IL","latitude":"40.80448000","longitude":"-90.40180000"}]}
                                                                                                                                                                                                                    
                                                                                                    

Cities by country code - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/3135/city+information+api/3330/cities+by+country+code?countryCode=US' --header 'Authorization: Bearer YOUR_API_KEY' 

    

To use this endpoint you must enter a fragment of a city name and a country code (optional) in the parameters.



                                                                            
GET https://zylalabs.com/api/3135/city+information+api/3331/autocomplete+city
                                                                            
                                                                        

Autocomplete city - Endpoint Features
Object Description
input [Required]
countryCode [Optional]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"data":[{"name":"Abbotts Ann","countryCode":"GB","stateCode":"ENG","latitude":"51.19016000","longitude":"-1.53234000"},{"name":"Abbottabad","countryCode":"PK","stateCode":"KP","latitude":"34.14630000","longitude":"73.21168000"},{"name":"Abbottstown","countryCode":"US","stateCode":"PA","latitude":"39.88649000","longitude":"-76.98470000"}]}
                                                                                                                                                                                                                    
                                                                                                    

Autocomplete city - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/3135/city+information+api/3331/autocomplete+city?input=Abbott&countryCode=US' --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 Information 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 enter a country code or the name of a city to receive an autocomplete.

The City Information API is a service designed to provide users with detailed city information based on country codes, offering the convenience of auto-completion of city names.

There are different plans suits everyone including a free trial for small amount of requests, but it’s rate is limit to prevent abuse of the service.

Sure, you can use it and pay only when you use it. The credit can’t be expired.

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.

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. 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 with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected β€” plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

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.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
332ms

Category:


Tags:


Related APIs