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.
["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://pr213-testing.zylalabs.com/api/6423/global+cities+api/9222/cities?country=Brazil' --header 'Authorization: Bearer YOUR_API_KEY'
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 Global Cities API simply include your bearer token in the Authorization header.
| 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.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
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.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund