Locations
Locations
Integrate the 'List of countries in the world' API instantly with your project to quickly start building on a locations API.
A mock API for a list of countries in the world is a software interface that provides developers with a way to retrieve information about countries across the globe. The API typically provides a set of endpoints that allow users to perform operations such as searching, filtering, and sorting through the list of countries based on various criteria. The API response includes information about each country, such as its name, capital city, population, currency, language, and other relevant details. Developers can use the mock API to test and validate their applications that require information about countries without connecting to a real-world data source.
GET /countries
GET /countries/1
POST /countries
PUT /countries/1
PATCH /countries/1
DELETE /countries/1
id | country_name | continent | population | area_km2 | capital_city | currency_name |
---|---|---|---|---|---|---|
1 | United States of America | North America | 328,239,523 | 9,147,593 | Washington, D.C. | United States dollar |
2 | Brazil | South America | 211,049,527 | 8,515,767 | Brasília | Brazilian real |
3 | India | Asia | 1,366,417,754 | 3,287,263 | New Delhi | Indian rupee |
4 | China | Asia | 1,404,020,000 | 9,596,961 | Beijing | Chinese yuan |
5 | Russia | Europe/Asia | 144,096,812 | 17,098,242 | Moscow | Russian ruble |
6 | Canada | North America | 37,742,154 | 9,984,670 | Ottawa | Canadian dollar |
7 | Australia | Oceania | 25,499,884 | 7,692,024 | Canberra | Australian dollar |
8 | United Kingdom | Europe | 67,886,011 | 243,610 | London | Pound sterling |
9 | France | Europe | 65,273,511 | 643,801 | Paris | Euro |
10 | Germany | Europe | 83,149,300 | 357,582 | Berlin | Euro |
11 | Japan | Asia | 126,529,100 | 377,915 | Tokyo | Japanese yen |
12 | South Korea | Asia | 51,709,098 | 100,363 | Seoul | South Korean won |
13 | Mexico | North America | 127,575,529 | 1,964,375 | Mexico City | Mexican peso |
14 | Argentina | South America | 45,195,774 | 2,780,400 | Buenos Aires | Argentine peso |
15 | South Africa | Africa | 59,308,690 | 1,221,037 | Pretoria | South African rand |
16 | Nigeria | Africa | 206,139,587 | 923,768 | Abuja | Nigerian naira |
17 | Egypt | Africa | 102,334,404 | 1,001,449 | Cairo | Egyptian pound |
18 | Spain | Europe | 47,431,256 | 505,990 | Madrid | Euro |
19 | Italy | Europe | 60,317,116 | 301,340 | Rome | Euro |
20 | Greece | Europe | 10,718,565 | 131,957 | Athens | Euro |
21 | Turkey | Asia/Europe | 84,339,067 | 783,356 | Ankara | Turkish lira |
22 | Saudi Arabia | Asia | 34,218,169 | 2,149,690 | Riyadh | Saudi riyal |
23 | Israel | Asia | 9,310,233 | 22,072 | Jerusalem | Israeli new shekel |
24 | Iran | Asia | 83,992,949 | 1,648,195 | Tehran | Iranian rial |
25 | Thailand | Asia | 69,799,978 | 513,120 | Bangkok | Thai baht |
id | country_name | continent | population | area_km2 | capital_city | currency_name |