Endpoint: location

GEThttps://pokedex.mimo.dev/api/location/team-rockets-castle

Request

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