Endpoint: location

GEThttps://pokedex.mimo.dev/api/location/verdant-cavern

Request

GETlocation
1fetch("https://pokedex.mimo.dev/api/location/verdant-cavern")
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": "verdant-cavern-trial-site",
5 "url": "https://pokedex.mimo.dev/api/location-area/1154/"
6 },
7 {
8 "name": "verdant-cavern-totems-den",
9 "url": "https://pokedex.mimo.dev/api/location-area/1155/"
10 }
11 ],
12 "game_indices": [],
13 "id": 1043,
14 "name": "verdant-cavern",
15 "names": [],
16 "region": {
17 "name": "alola",
18 "url": "https://pokedex.mimo.dev/api/region/7/"
19 }
20}