Database with all the continents, countries, states and cities of the world. This directory contains all 7 continents, 250 countries, 4k subdivisions (provinces, states, etc) and more than 127k thousand cities. All data can be retrieved and managed via APIs. User can also clone the database with all the data.
This is a very detailed database with data about the world continents, countries, and cities. The continent, country, state, city database has datasets as follows:
The list of countries and cities database is specially designed to meet developer’s needs. A developer is able to perform the following actions with the database:
Here some ways developer can benefit using the database of countries and states:
Here are some easy-to-understand examples of the type of information you can retrieve using the database:
Below, details of the datasets available:
This dataset provide the following information for each continent:
Example below:
This dataset provide the following information for each country:
Example below:
This dataset provide the following information for each city in the world:
Example below:
Use the world cities API below to list all the cities from a country.
Get all cities from country api
This dataset provide the following information for each city in the world:
Example below:
This dataset provide the following information for each subdivision of the world:
Example below:
This dataset provide the following information for each country of the world:
Example below:
The list of countries, states and cities in the world database allows developers to retrieve data via APIs. For example, a developer can get cities by country API using different programming languages.
How many continents are in the whole world ?
This one is quite simple and not even an API is required! Just go to the continents dataset and make a query to count the total number of continents. The answer is 7.
How many countries in Asia continent list?
Use relation between continents and countries. Please click on the link below to see all the Asia countries.
What is the largest city in Asia by population?
Use the API playground, fetch data from the cities dataset and get the answer Shanghai.
Continents, Countries, and Cities Open Source App - Open Source Application Available on GitHub
Getting a key is a simple and straightforward process. Please refer to the Connect Button on the top right hand side of this page. The process has 3 steps:
Takes less than 1 minute.
Yes, you can integrate several databases under the same API Key.
The world cities database is free to download. You can use the hosting service for free up to 10k requests per month. More details in our Pricing Page.
Every moment you execute a call to the database in the name of an application using a SDKs or an API, it counts as an API request. Logins, saves, queries are examples of operations calculated as API requests, among other types of operations.
The service works with two different API protocols:
You can make queries, access, and retrieve data from a public dataset via a GraphQL API. If you clone the database, it’s possible to work with REST or GraphQL APIs.
The list is pretty broad and the most common ones are:
Yes. To do that, please clone the app first and then download each class under a JSON format. For example, you can choose the class City and download the world cities JSON
Please refer to How it Works page.
Creative Commons Attribution 4.0 License
Back4app is a BaaS Service and will assist you in expediting the development and building astonishing applications much quicker versus a regular backend.
Or just use the clone button to create a copy of this app in your account and customize according to your needs.