Locations

List of countries in the world

Integrate the 'List of countries in the world' API instantly with your project to quickly start building on a locations API.

Mock API Description

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.


Use the API

Available Endpoints

GET    /countries
GET    /countries/1
POST   /countries
PUT    /countries/1
PATCH  /countries/1
DELETE /countries/1

Underlying Data

idcountry_namecontinentpopulationarea_km2capital_citycurrency_name
1United States of AmericaNorth America328,239,5239,147,593Washington, D.C.United States dollar
2BrazilSouth America211,049,5278,515,767BrasíliaBrazilian real
3IndiaAsia1,366,417,7543,287,263New DelhiIndian rupee
4ChinaAsia1,404,020,0009,596,961BeijingChinese yuan
5RussiaEurope/Asia144,096,81217,098,242MoscowRussian ruble
6CanadaNorth America37,742,1549,984,670OttawaCanadian dollar
7AustraliaOceania25,499,8847,692,024CanberraAustralian dollar
8United KingdomEurope67,886,011243,610LondonPound sterling
9FranceEurope65,273,511643,801ParisEuro
10GermanyEurope83,149,300357,582BerlinEuro
11JapanAsia126,529,100377,915TokyoJapanese yen
12South KoreaAsia51,709,098100,363SeoulSouth Korean won
13MexicoNorth America127,575,5291,964,375Mexico CityMexican peso
14ArgentinaSouth America45,195,7742,780,400Buenos AiresArgentine peso
15South AfricaAfrica59,308,6901,221,037PretoriaSouth African rand
16NigeriaAfrica206,139,587923,768AbujaNigerian naira
17EgyptAfrica102,334,4041,001,449CairoEgyptian pound
18SpainEurope47,431,256505,990MadridEuro
19ItalyEurope60,317,116301,340RomeEuro
20GreeceEurope10,718,565131,957AthensEuro
21TurkeyAsia/Europe84,339,067783,356AnkaraTurkish lira
22Saudi ArabiaAsia34,218,1692,149,690RiyadhSaudi riyal
23IsraelAsia9,310,23322,072JerusalemIsraeli new shekel
24IranAsia83,992,9491,648,195TehranIranian rial
25ThailandAsia69,799,978513,120BangkokThai baht
idcountry_namecontinentpopulationarea_km2capital_citycurrency_name
Made by Aash and Moksh in San Francisco, CA.