The Global Cities Population API specializes in delivering comprehensive population statistics for major urban centers across the globe. It processes data fields such as city name, country, population figures for the current and previous year, and percentage change in population. Each entry includes structured data that adheres to standard JSON formats, ensuring easy integration with various applications. The API utilizes domain-specific terminology, including terms like 'population growth rate' and 'urban demographics', which are crucial for understanding the dynamics of city populations. Technical requirements include a stable internet connection and adherence to rate limits to ensure optimal performance. The output format is structured in JSON, with a schema that includes fields for rank, city, country, current population, previous population, and change percentage, allowing for straightforward data parsing and analysis. This API is essential for researchers, urban planners, and businesses interested in demographic trends and urbanization patterns.
{"countries":["Japan","India","China","Bangladesh","Brazil","Egypt","Mexico","Pakistan","DR Congo","Nigeria","Turkey","Argentina","Philippines","Colombia","Indonesia","Peru","France","Thailand","South Korea","Russia","Iran","Vietnam","Malaysia","Hong Kong","Saudi Arabia","Chile","Canada","South Africa","Singapore","Ukraine","Italy","Ethiopia","Morocco","Ghana","Dominican Republic","Haiti","Kuwait","Zambia","Algeria","Cuba","Venezuela","Kazakhstan","Nicaragua","Oman","Portugal","Belgium","Sweden","Finland","Ireland","Burkina Faso","Somalia","Turkmenistan","Uzbekistan","Armenia","Senegal","Malawi","Tajikistan","Central African Republic","Gabon","Chad","Mali","Eritrea","Zambia","Angola","Republic of the Congo","Czech Republic","Honduras","Guatemala","Bulgaria","Serbia","Libya","Zimbabwe","Costa Rica","Jordan","Taiwan","Vietnam","Malaysia","Mexico","Philippines","United States"]}
curl --location --request POST 'https://zylalabs.com/api/6185/global+cities+population+api/8611/obtain+countries+list' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
{"country":"Japan","cities":["Tokyo","Osaka","Nagoya","Fukuoka","Kobe","Yokohama","Sapporo","Hiroshima","Sendai","Kawasaki"]}
curl --location --request POST 'https://zylalabs.com/api/6185/global+cities+population+api/8612/obtain+cities+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
[{"country":"Japan","city":"Tokyo","current_population":37115000}]
curl --location --request POST 'https://zylalabs.com/api/6185/global+cities+population+api/8613/get+current+city+population' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"city":"Required"}'
[{"country":"Japan","city":"Tokyo","previous_population_2023":37194100}]
curl --location --request POST 'https://zylalabs.com/api/6185/global+cities+population+api/8614/get+city+previous+population' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"city":"Required"}'
| 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 Global Cities Population API provides real-time population data for major urban centers worldwide, including city name, country, current and previous population figures, and the percentage change in population.
The API outputs data in a structured JSON format, making it easy to integrate with various applications. Ensure you have a stable internet connection and adhere to the rate limits specified in the API documentation for optimal performance.
Researchers, urban planners, and businesses interested in demographic trends and urbanization patterns can benefit from using the Global Cities Population API to track and analyze population changes in major cities.
Each endpoint returns specific population-related data. The countries list endpoint provides a list of countries, the cities by country endpoint returns city names for a specified country, the current population endpoint gives the current population of a city, and the previous population endpoint provides last year's population data for that city.
Key fields in the response data include "country," "city," "current_population," "previous_population_2023," and "change_percentage." These fields allow users to understand demographic changes and trends for specific cities.
The response data is organized in JSON format, with each entry structured as key-value pairs. For example, the current population endpoint returns an array of objects, each containing fields like "country," "city," and "current_population," facilitating easy data parsing.
The endpoints accept parameters such as "country" for obtaining cities and "city" for retrieving population data. Users must specify these parameters to customize their requests and receive relevant data.
The countries list endpoint provides a comprehensive list of countries. The cities by country endpoint lists cities within a specified country. The current and previous population endpoints return population figures for a specified city, allowing users to track demographic changes.
Data accuracy is maintained through regular updates and quality checks from reliable demographic sources. The API aggregates data from various reputable databases to ensure the information reflects current population statistics.
Typical use cases include urban planning, market research, and academic studies. Users can analyze population trends, assess urbanization patterns, and make informed decisions based on demographic data from major cities.
Users can utilize the returned data by integrating it into applications for visualization, reporting, or analysis. For instance, they can track population growth rates over time or compare demographic changes between cities using the structured JSON output.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
3,972ms
Service Level:
100%
Response Time:
544ms
Service Level:
100%
Response Time:
368ms
Service Level:
100%
Response Time:
544ms
Service Level:
100%
Response Time:
321ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
1,066ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
315ms
Service Level:
100%
Response Time:
21ms
Service Level:
100%
Response Time:
6,935ms
Service Level:
100%
Response Time:
1,613ms
Service Level:
100%
Response Time:
266ms
Service Level:
100%
Response Time:
248ms
Service Level:
100%
Response Time:
854ms
Service Level:
100%
Response Time:
528ms
Service Level:
100%
Response Time:
1,535ms
Service Level:
100%
Response Time:
1,212ms
Service Level:
100%
Response Time:
1,040ms
Service Level:
100%
Response Time:
2,461ms