Documentation menu

Endpoint: regions

List of all countries' top-level administrative subdivisions (provinces, governorates, states, etc.)

GEThttps://airports.mimo.dev/api/regions/302831

Request

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

Response

response.json
1{
2 "id": "302831",
3 "code": "AF-BGL",
4 "local_code": "BGL",
5 "name": "Baghlan Province",
6 "continent": "AS",
7 "iso_country": "AF",
8 "wikipedia_link": "https://en.wikipedia.org/wiki/Baghlan_Province",
9 "keywords": "Airports in Baghlan Province"
10}