Endpoint: location

GEThttps://pokedex.mimo.dev/api/location/galar-route-6

Request

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