Endpoint: location

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

Request

GETlocation
1fetch("https://pokedex.mimo.dev/api/location/sandy-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": "sandy-cave-area",
5 "url": "https://pokedex.mimo.dev/api/location-area/1129/"
6 }
7 ],
8 "game_indices": [],
9 "id": 1048,
10 "name": "sandy-cave",
11 "names": [],
12 "region": {
13 "name": "alola",
14 "url": "https://pokedex.mimo.dev/api/region/7/"
15 }
16}