Endpoint: location

GEThttps://pokedex.mimo.dev/api/location/giants-cap

Request

GETlocation
1fetch("https://pokedex.mimo.dev/api/location/giants-cap")
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": "giants-cap-main",
5 "url": "https://pokedex.mimo.dev/api/location-area/885/"
6 },
7 {
8 "name": "giants-cap-2",
9 "url": "https://pokedex.mimo.dev/api/location-area/886/"
10 },
11 {
12 "name": "giants-cap-3",
13 "url": "https://pokedex.mimo.dev/api/location-area/887/"
14 }
15 ],
16 "game_indices": [],
17 "id": 1041,
18 "name": "giants-cap",
19 "names": [],
20 "region": {
21 "name": "galar",
22 "url": "https://pokedex.mimo.dev/api/region/8/"
23 }
24}