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, 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
Service Level:
100%
Response Time:
3,972ms
Service Level:
100%
Response Time:
544ms
Service Level:
100%
Response Time:
368ms
Service Level:
100%
Response Time:
321ms
Service Level:
100%
Response Time:
544ms
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:
17,074ms