Locations
Locations
Integrate the 'List of most populated cities in the world' API instantly with your project to quickly start building on a locations API.
A mock API for the list of most populated cities in the world provides developers with a software interface to simulate and test functionalities related to accessing and displaying information about the most populated cities in the world. The API includes a set of endpoints that enable users to perform operations such as retrieving a list of the most populated cities, filtering the cities by region, country or other parameters, and viewing details about each city, such as population, geographic location, and other relevant information. The API response provides developers with a structured and consistent format for accessing the data and allows them to test their applications' functionality without connecting to a real database.
GET /most_populated_cities
GET /most_populated_cities/1
POST /most_populated_cities
PUT /most_populated_cities/1
PATCH /most_populated_cities/1
DELETE /most_populated_cities/1
id | city_name | country | population | density | latitude | longitude |
---|---|---|---|---|---|---|
1 | Tokyo | Japan | 37,393,128 | 6,158.12 | 35.6895 | 139.6917 |
2 | Delhi | India | 30,290,936 | 29,259.38 | 28.7041 | 77.1025 |
3 | Shanghai | China | 27,715,402 | 3,850.03 | 31.2304 | 121.4737 |
4 | Sao Paulo | Brazil | 21,650,051 | 7,202.38 | -23.5505 | -46.6333 |
5 | Mumbai | India | 21,042,538 | 27,348.59 | 19.0760 | 72.8777 |
6 | Beijing | China | 20,384,685 | 3,955.89 | 39.9042 | 116.4074 |
7 | Dhaka | Bangladesh | 19,578,278 | 49,005.86 | 23.8103 | 90.4125 |
8 | Cairo | Egypt | 19,440,707 | 15,760.26 | 30.0444 | 31.2357 |
9 | Mexico City | Mexico | 19,319,426 | 6,366.88 | 19.4326 | -99.1332 |
10 | Osaka | Japan | 19,165,893 | 11,000.86 | 34.6937 | 135.5023 |
11 | New York City | United States | 18,604,963 | 10,933.09 | 40.7128 | -74.0060 |
12 | Karachi | Pakistan | 16,093,786 | 25,683.36 | 24.8607 | 67.0011 |
13 | Buenos Aires | Argentina | 15,633,184 | 14,961.33 | -34.6037 | -58.3816 |
14 | Chongqing | China | 15,596,702 | 2,995.41 | 29.4316 | 106.9123 |
15 | Istanbul | Turkey | 15,029,231 | 4,271.44 | 41.0082 | 28.9784 |
16 | Kolkata | India | 14,947,126 | 24,423.17 | 22.5726 | 88.3639 |
17 | Tehran | Iran | 14,914,631 | 10,981.25 | 35.6892 | 51.3890 |
18 | Lagos | Nigeria | 14,368,332 | 18,160.26 | 6.5244 | 3.3792 |
19 | Kinshasa | Democratic Republic of the Congo | 11,855,673 | 18,479.74 | -4.4419 | 15.2663 |
20 | Shanghai | China | 11,719,535 | 3,228.11 | 22.3193 | 114.1694 |
21 | Tokyo | Japan | 11,617,443 | 1,747.77 | -6.1699 | 35.5899 |
22 | Lima | Peru | 10,491,839 | 11,943.68 | -12.0464 | -77.0428 |
23 | Jakarta | Indonesia | 10,348,283 | 14,462.64 | -6.2088 | 106.8456 |
24 | Bangkok | Thailand | 10,310,015 | 5,850.13 | 13.7563 | 100.5018 |
25 | Bogota | Colombia | 10,091,074 | 5,600.56 | 4.7109 | -74.0721 |