The Global Cities API offers a dependable way to retrieve comprehensive city lists based on any given country name. It's an essential resource for developers building apps that rely on geographic context—whether in travel, logistics, or other location-aware services.
By integrating this API, teams can deliver smarter, more personalized user experiences. Imagine users choosing their country and instantly seeing relevant cities—perfect for seamless onboarding, customized content, or regional targeting. It's especially handy for dynamic dropdowns, auto-complete fields, location filtering, and geographic data analysis.
To use this endpoint you must indicate the name of a country in the parameter.
Cities - Endpoint Features
| Object | Description |
|---|---|
country |
[Required] Indicates a country |
["Abaetetuba","Alfenas","Americana","Anapolis","Andradina","Angra dos Reis","Aracaju","Aracatuba","Arapiraca","Araraquara","Araras","Araxa","Armacao dos Buzios (Armação dos Buzios)","Assis","Atibaia","Avaré","Bagé","Balneario Camboriu","Barbacena","Barra do Garças","Barreiras","Barretos","Barueri","Bauru","Bebedouro","Belem","Belo Horizonte","Bertioga","Blumenau - Santa Catarina","Boa Vista","Botucatu","Brasilia","Cabo Frio","Cachoeira do Sul","Cachoeirinha","Campina Grande","Campinas","Campo Grande","Campo Mourão","Campos do Jordão","Campos dos Goytacazes","Canoas","Canoinhas","Caraguatatuba","Carapicuiba (Carapicuíba)","Cariacica","Caruaru","Cascavel","Castanhal","Catanduva","Caxias do Sul","Cerquilho","Chapeco","Contagem","Contenda","Cotia","Crato","Criciuma","Cuiaba","Curitiba","Diadema","Dourados","Duque de Caxias","Embu das Artes","Feira de Santana","Ferraz de Vasconcelos","Florianopolis","Fortaleza","Foz do Iguaçu","Francisco Morato","Franco da Rocha","Goiana","Goiania","Governador Valadares","Gramado","Gravataí","Guarapuava","Guararema","Guarulhos","Ibitinga","Ilheus","Imbituba","Imperatriz","Indaiatuba","Ipatinga","Irati","Itajai","Itajubá, MG","Itapetininga","Itapevi","Itaquaquecetuba","Itatiaia","Itu","Itumbiara","Jaboatão dos Guararapes","Jacareí","Jaguariúna","Jaragua do Sul","Joao Pessoa","Joinville","Juazeiro","Juiz de Fora","Jundiai","Lages","Lajeado","Lavras","Limeira","Londrina","Louveira","Macaé","Maceio - Alagoas","Manaus","Marilia","Maringa","Mogi Mirim","Mogi das Cruzes","Montes Claros","Natal","Niteroi","Nova Friburgo","Nova Iguacu","Novo Hamburgo","Olinda","Osasco","Osório","Ouro Preto, Minas Gerais","Palhoça","Palmas","Passo Fundo","Passos","Pato Branco","Patos de Minas","Paulinia","Paulista","Paulo Afonso","Pelotas","Petrolina","Petropolis","Pindamonhangaba","Piracicaba","Ponta Grossa","Porto Alegre","Porto Seguro","Porto Velho","Pouso Alegre","Praia Grande","Presidente Prudente","Quixeramobim","Recife","Ribeirao Preto","Rio Branco","Rio Claro","Rio Grande","Rio Verde","Rio das Ostras","Rio de Janeiro","Rio do Sul","Rondonópolis","Salto","Salvador","Santa Cruz do Sul","Santa Maria","Santo Andre","Santos","Sao Bernardo do Campo","Sao Caetano do Sul","Sao Carlos","Sao Joao da Boa Vista","Sao Jose do Rio Preto SP","Sao Jose dos Campos","Sao Leopoldo","Sao Luis (São Luís)","Sao Paulo","Sao Vicente","Seropédica","Serra","Sete Lagoas","Sinop","Sorocaba","Suzano","São Gabriel","Tatuí","Taubate","Teresina","Teresopolis","Timbo (Timbó)","Torres, Rio Grande do Sul","Três Lagoas","Ubatuba","Uberaba","Uberlandia","Valinhos","Varginha","Vila Velha","Vilhena","Vinhedo","Vitoria","Vitoria da Conquista","Volta Redonda"]
curl --location --request GET 'https://zylalabs.com/api/6423/global+cities+api/9222/cities?country=Brazil' --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 corresponding to a specified country. Each city entry typically includes key information such as city name, population, and geographical coordinates.
The response data includes fields such as "city_name," "population," and "coordinates." These fields provide essential information for identifying and utilizing city data effectively.
The response data is structured as a JSON array, where each element represents a city object containing its respective fields. This organization allows for easy parsing and integration into applications.
The primary parameter for the GET Cities endpoint is "country," which specifies the name of the country for which cities are to be retrieved. Users must provide a valid country name to receive accurate results.
The GET Cities endpoint provides information such as city names, populations, and geographical coordinates. This data is useful for applications requiring location-based services or geographic analysis.
Data accuracy is maintained through regular updates and validation against reliable geographic databases. This ensures that the city information provided is current and trustworthy.
Typical use cases include travel applications, logistics planning, and location-based services. Developers can use the city data for dynamic dropdowns, auto-complete fields, and regional content targeting.
Users can utilize the returned data by integrating it into their applications for features like location filtering, user onboarding, and personalized content delivery based on geographic context.
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:
7,568ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
368ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
544ms
Service Level:
100%
Response Time:
321ms
Service Level:
100%
Response Time:
2,554ms
Service Level:
100%
Response Time:
21ms
Service Level:
100%
Response Time:
715ms
Service Level:
100%
Response Time:
315ms
Service Level:
100%
Response Time:
1,145ms
Service Level:
100%
Response Time:
1,401ms
Service Level:
100%
Response Time:
418ms
Service Level:
100%
Response Time:
99ms
Service Level:
100%
Response Time:
1,416ms
Service Level:
100%
Response Time:
404ms
Service Level:
100%
Response Time:
1,711ms
Service Level:
100%
Response Time:
499ms
Service Level:
100%
Response Time:
884ms
Service Level:
100%
Response Time:
1,472ms