Endpoint: location

GEThttps://pokedex.mimo.dev/api/location/mt-moon

Request

GETlocation
1fetch("https://pokedex.mimo.dev/api/location/mt-moon")
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": "mt-moon-mt-moon-square",
5 "url": "https://pokedex.mimo.dev/api/location-area/256/"
6 },
7 {
8 "name": "mt-moon-1f",
9 "url": "https://pokedex.mimo.dev/api/location-area/290/"
10 },
11 {
12 "name": "mt-moon-2f",
13 "url": "https://pokedex.mimo.dev/api/location-area/291/"
14 },
15 {
16 "name": "mt-moon-b1f",
17 "url": "https://pokedex.mimo.dev/api/location-area/326/"
18 },
19 {
20 "name": "mt-moon-b2f",
21 "url": "https://pokedex.mimo.dev/api/location-area/327/"
22 }
23 ],
24 "game_indices": [
25 {
26 "game_index": 198,
27 "generation": {
28 "name": "generation-iv",
29 "url": "https://pokedex.mimo.dev/api/generation/4/"
30 }
31 }
32 ],
33 "id": 80,
34 "name": "mt-moon",
35 "names": [
36 {
37 "language": {
38 "name": "fr",
39 "url": "https://pokedex.mimo.dev/api/language/5/"
40 },
41 "name": "Mont Sélénite"
42 },
43 {
44 "language": {
45 "name": "en",
46 "url": "https://pokedex.mimo.dev/api/language/9/"
47 },
48 "name": "Mt. Moon"
49 }
50 ],
51 "region": {
52 "name": "kanto",
53 "url": "https://pokedex.mimo.dev/api/region/1/"
54 }
55}