Documentation menu

Endpoint: countries

List of the world's countries

GEThttps://airports.mimo.dev/api/countries?limit=25
Collection responses are paginated and returned as { count, offset, limit, results }. Use limit and offset to move through the dataset. The default limit is 100, and the maximum limit is 1,000.

Request

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

Response

response.json
1{
2 "count": 249,
3 "offset": 0,
4 "limit": 25,
5 "results": [
6 {
7 "id": "302672",
8 "code": "AD",
9 "name": "Andorra",
10 "continent": "EU",
11 "wikipedia_link": "https://en.wikipedia.org/wiki/Andorra",
12 "keywords": "Andorran airports"
13 },
14 {
15 "id": "302618",
16 "code": "AE",
17 "name": "United Arab Emirates",
18 "continent": "AS",
19 "wikipedia_link": "https://en.wikipedia.org/wiki/United_Arab_Emirates",
20 "keywords": "UAE,مطارات في الإمارات العربية المتحدة"
21 },
22 {
23 "id": "302619",
24 "code": "AF",
25 "name": "Afghanistan",
26 "continent": "AS",
27 "wikipedia_link": "https://en.wikipedia.org/wiki/Afghanistan",
28 "keywords": null
29 },
30 {
31 "id": "302722",
32 "code": "AG",
33 "name": "Antigua and Barbuda",
34 "continent": "NA",
35 "wikipedia_link": "https://en.wikipedia.org/wiki/Antigua_and_Barbuda",
36 "keywords": "Antiguan airports"
37 },
38 {
39 "id": "302723",
40 "code": "AI",
41 "name": "Anguilla",
42 "continent": "NA",
43 "wikipedia_link": "https://en.wikipedia.org/wiki/Anguilla",
44 "keywords": null
45 },
46 {
47 "id": "302673",
48 "code": "AL",
49 "name": "Albania",
50 "continent": "EU",
51 "wikipedia_link": "https://en.wikipedia.org/wiki/Albania",
52 "keywords": "Albanian airports"
53 },
54 {
55 "id": "302620",
56 "code": "AM",
57 "name": "Armenia",
58 "continent": "AS",
59 "wikipedia_link": "https://en.wikipedia.org/wiki/Armenia",
60 "keywords": null
61 },
62 {
63 "id": "302556",
64 "code": "AO",
65 "name": "Angola",
66 "continent": "AF",
67 "wikipedia_link": "https://en.wikipedia.org/wiki/Angola",
68 "keywords": "Angolan airports"
69 },
70 {
71 "id": "302615",
72 "code": "AQ",
73 "name": "Antarctica",
74 "continent": "AN",
75 "wikipedia_link": "https://en.wikipedia.org/wiki/Antarctica",
76 "keywords": "Airports in Antarctica"
77 },
78 {
79 "id": "302789",
80 "code": "AR",
81 "name": "Argentina",
82 "continent": "SA",
83 "wikipedia_link": "https://en.wikipedia.org/wiki/Argentina",
84 "keywords": "Aeropuertos de Argentina"
85 },
86 {
87 "id": "302763",
88 "code": "AS",
89 "name": "American Samoa",
90 "continent": "OC",
91 "wikipedia_link": "https://en.wikipedia.org/wiki/American_Samoa",
92 "keywords": "Samoan airports"
93 },
94 {
95 "id": "302674",
96 "code": "AT",
97 "name": "Austria",
98 "continent": "EU",
99 "wikipedia_link": "https://en.wikipedia.org/wiki/Austria",
100 "keywords": "Flughäfen in Österreich"
101 },
102 {
103 "id": "302764",
104 "code": "AU",
105 "name": "Australia",
106 "continent": "OC",
107 "wikipedia_link": "https://en.wikipedia.org/wiki/Australia",
108 "keywords": "Australian airports"
109 },
110 {
111 "id": "302725",
112 "code": "AW",
113 "name": "Aruba",
114 "continent": "NA",
115 "wikipedia_link": "https://en.wikipedia.org/wiki/Aruba",
116 "keywords": null
117 },
118 {
119 "id": "302621",
120 "code": "AZ",
121 "name": "Azerbaijan",
122 "continent": "AS",
123 "wikipedia_link": "https://en.wikipedia.org/wiki/Azerbaijan",
124 "keywords": "Azerbaijani airports"
125 },
126 {
127 "id": "302675",
128 "code": "BA",
129 "name": "Bosnia and Herzegovina",
130 "continent": "EU",
131 "wikipedia_link": "https://en.wikipedia.org/wiki/Bosnia_and_Herzegovina",
132 "keywords": "Bosnian airports"
133 },
134 {
135 "id": "302726",
136 "code": "BB",
137 "name": "Barbados",
138 "continent": "NA",
139 "wikipedia_link": "https://en.wikipedia.org/wiki/Barbados",
140 "keywords": "Barbadan airports"
141 },
142 {
143 "id": "302622",
144 "code": "BD",
145 "name": "Bangladesh",
146 "continent": "AS",
147 "wikipedia_link": "https://en.wikipedia.org/wiki/Bangladesh",
148 "keywords": "Bangladeshi airports"
149 },
150 {
151 "id": "302676",
152 "code": "BE",
153 "name": "Belgium",
154 "continent": "EU",
155 "wikipedia_link": "https://en.wikipedia.org/wiki/Belgium",
156 "keywords": "Aéroports de Belgique,Luchthavens van België"
157 },
158 {
159 "id": "302557",
160 "code": "BF",
161 "name": "Burkina Faso",
162 "continent": "AF",
163 "wikipedia_link": "https://en.wikipedia.org/wiki/Burkina_Faso",
164 "keywords": "Burkinabé airports"
165 },
166 {
167 "id": "302677",
168 "code": "BG",
169 "name": "Bulgaria",
170 "continent": "EU",
171 "wikipedia_link": "https://en.wikipedia.org/wiki/Bulgaria",
172 "keywords": "Bulgarian airports"
173 },
174 {
175 "id": "302623",
176 "code": "BH",
177 "name": "Bahrain",
178 "continent": "AS",
179 "wikipedia_link": "https://en.wikipedia.org/wiki/Bahrain",
180 "keywords": "مطارات البحرين"
181 },
182 {
183 "id": "302558",
184 "code": "BI",
185 "name": "Burundi",
186 "continent": "AF",
187 "wikipedia_link": "https://en.wikipedia.org/wiki/Burundi",
188 "keywords": "Burundian airports"
189 },
190 {
191 "id": "302559",
192 "code": "BJ",
193 "name": "Benin",
194 "continent": "AF",
195 "wikipedia_link": "https://en.wikipedia.org/wiki/Benin",
196 "keywords": "Beninese airports"
197 },
198 {
199 "id": "302760",
200 "code": "BL",
201 "name": "Saint Barthélemy",
202 "continent": "NA",
203 "wikipedia_link": "https://en.wikipedia.org/wiki/Saint_Barthélemy",
204 "keywords": "Airports in Saint Barthélemy"
205 }
206 ]
207}