The City Finder API is a dependable and efficient tool that delivers accurate city lists based on a given country name. It's ideal for developers creating travel apps, logistics systems, or any service that depends on geographic data.
By integrating this API, teams can enhance user experience through location-aware features. For example, when users choose their country, a relevant list of cities can appear instantly—streamlining onboarding, improving personalization, and supporting smart form behavior. This API is especially valuable for autofill functions, regional filters, dynamic dropdowns, and geographic insights.
To use this endpoint you must indicate the name of a country in the parameter.
Get Cities - Endpoint Features
| Object | Description |
|---|---|
country |
[Required] Indicates a country |
["Avellaneda","Bahia Blanca","Bariloche","Buenos Aires","Cafayate","Catamarca","Chivilcoy","Comodoro Rivadavia","Concordia","Cordoba","Corrientes","Formosa","La Plata","La Rioja","Lanus","Lomas de Zamora","Mar del Plata","Mendoza","Nueve de Julio","Palermo","Parana","Paso de los Libres","Pergamino","Pilar","Presidencia Roque Sáenz Peña","Quilmes","Resistencia","Rosario","Río Tercero","Salta","San Isidro","San Juan","San Luis","San Martin de los Andes","San Miguel de Tucuman","San Rafael","San Salvador de Jujuy","Santa Fe","Santa Rosa","Santiago del Estero","Tandil","Tigre","Villa María"]
curl --location --request GET 'https://zylalabs.com/api/6425/city+finder+api/9224/get+cities?country=Argentina' --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.
The Get Cities endpoint returns a list of cities associated with a specified country. Each city entry typically includes the city name and may include additional geographic identifiers.
The key fields in the response data include the city name and possibly other identifiers like city ID or region. The exact fields may vary based on the implementation.
The response data is organized in a structured format, typically as a JSON array containing city objects. Each object represents a city with its associated attributes.
The primary parameter for the Get Cities endpoint is the country name. Users must specify this parameter to retrieve the corresponding list of cities.
Users can customize their data requests by specifying the country name in the request parameter. Additional filtering options may be available depending on the API's design.
Typical use cases include travel applications, logistics systems, and any service requiring geographic data, such as autofill forms, regional filters, and dynamic dropdowns.
Data accuracy is maintained through regular updates and validation processes. The API sources data from reliable geographic databases to ensure the information is current and precise.
If the API returns partial or empty results, users should implement error handling in their applications. This may include displaying a message to the user or prompting them to refine their search criteria.
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:
230ms
Service Level:
50%
Response Time:
163ms
Service Level:
100%
Response Time:
598ms
Service Level:
100%
Response Time:
2,224ms
Service Level:
100%
Response Time:
452ms
Service Level:
100%
Response Time:
1,480ms
Service Level:
100%
Response Time:
743ms
Service Level:
100%
Response Time:
2,558ms
Service Level:
100%
Response Time:
4,111ms
Service Level:
100%
Response Time:
22ms
Service Level:
100%
Response Time:
595ms
Service Level:
100%
Response Time:
149ms
Service Level:
100%
Response Time:
103ms
Service Level:
100%
Response Time:
1,192ms
Service Level:
100%
Response Time:
615ms
Service Level:
100%
Response Time:
633ms
Service Level:
100%
Response Time:
7,797ms
Service Level:
100%
Response Time:
669ms
Service Level:
100%
Response Time:
189ms
Service Level:
100%
Response Time:
584ms