Documentation menu

Endpoint: countries

List of the world's countries

GEThttps://airports.mimo.dev/api/countries/302558

Request

GETcountries
1fetch("https://airports.mimo.dev/api/countries/302558")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))

Response

response.json
1{
2 "id": "302558",
3 "code": "BI",
4 "name": "Burundi",
5 "continent": "AF",
6 "wikipedia_link": "https://en.wikipedia.org/wiki/Burundi",
7 "keywords": "Burundian airports"
8}