Endpoint: location
GEThttps://pokedex.mimo.dev/api/location/iron-island
Request
GETlocation
1fetch("https://pokedex.mimo.dev/api/location/iron-island")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "areas": [
3 {
4 "name": "iron-island-area",
5 "url": "https://pokedex.mimo.dev/api/location-area/119/"
6 },
7 {
8 "name": "iron-island-1f",
9 "url": "https://pokedex.mimo.dev/api/location-area/120/"
10 },
11 {
12 "name": "iron-island-b1f-left",
13 "url": "https://pokedex.mimo.dev/api/location-area/121/"
14 },
15 {
16 "name": "iron-island-b1f-right",
17 "url": "https://pokedex.mimo.dev/api/location-area/122/"
18 },
19 {
20 "name": "iron-island-b2f-right",
21 "url": "https://pokedex.mimo.dev/api/location-area/123/"
22 },
23 {
24 "name": "iron-island-b2f-left",
25 "url": "https://pokedex.mimo.dev/api/location-area/124/"
26 },
27 {
28 "name": "iron-island-b3f",
29 "url": "https://pokedex.mimo.dev/api/location-area/125/"
30 }
31 ],
32 "game_indices": [
33 {
34 "game_index": 69,
35 "generation": {
36 "name": "generation-iv",
37 "url": "https://pokedex.mimo.dev/api/generation/4/"
38 }
39 }
40 ],
41 "id": 24,
42 "name": "iron-island",
43 "names": [
44 {
45 "language": {
46 "name": "fr",
47 "url": "https://pokedex.mimo.dev/api/language/5/"
48 },
49 "name": "Ile de Fer"
50 },
51 {
52 "language": {
53 "name": "en",
54 "url": "https://pokedex.mimo.dev/api/language/9/"
55 },
56 "name": "Iron Island"
57 }
58 ],
59 "region": {
60 "name": "sinnoh",
61 "url": "https://pokedex.mimo.dev/api/region/4/"
62 }
63}