Endpoint: location

GEThttps://pokedex.mimo.dev/api/location/union-cave

Request

GETlocation
1fetch("https://pokedex.mimo.dev/api/location/union-cave")
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": "union-cave-1f",
5 "url": "https://pokedex.mimo.dev/api/location-area/198/"
6 },
7 {
8 "name": "union-cave-b1f",
9 "url": "https://pokedex.mimo.dev/api/location-area/199/"
10 },
11 {
12 "name": "union-cave-b2f",
13 "url": "https://pokedex.mimo.dev/api/location-area/200/"
14 }
15 ],
16 "game_indices": [
17 {
18 "game_index": 210,
19 "generation": {
20 "name": "generation-iv",
21 "url": "https://pokedex.mimo.dev/api/generation/4/"
22 }
23 }
24 ],
25 "id": 141,
26 "name": "union-cave",
27 "names": [
28 {
29 "language": {
30 "name": "fr",
31 "url": "https://pokedex.mimo.dev/api/language/5/"
32 },
33 "name": "Caves Jumelles"
34 },
35 {
36 "language": {
37 "name": "en",
38 "url": "https://pokedex.mimo.dev/api/language/9/"
39 },
40 "name": "Union Cave"
41 }
42 ],
43 "region": {
44 "name": "johto",
45 "url": "https://pokedex.mimo.dev/api/region/2/"
46 }
47}