Endpoint: location
GEThttps://pokedex.mimo.dev/api/location/challenge-beach
Request
GETlocation
1fetch("https://pokedex.mimo.dev/api/location/challenge-beach")
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": "challenge-beach-main",
5 "url": "https://pokedex.mimo.dev/api/location-area/864/"
6 },
7 {
8 "name": "challenge-beach-ocean",
9 "url": "https://pokedex.mimo.dev/api/location-area/865/"
10 },
11 {
12 "name": "challenge-beach-river",
13 "url": "https://pokedex.mimo.dev/api/location-area/866/"
14 },
15 {
16 "name": "challenge-beach-beach",
17 "url": "https://pokedex.mimo.dev/api/location-area/867/"
18 }
19 ],
20 "game_indices": [],
21 "id": 884,
22 "name": "challenge-beach",
23 "names": [],
24 "region": {
25 "name": "galar",
26 "url": "https://pokedex.mimo.dev/api/region/8/"
27 }
28}