Endpoint: location
GEThttps://pokedex.mimo.dev/api/location/poke-pelago
Request
GETlocation
1fetch("https://pokedex.mimo.dev/api/location/poke-pelago")
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": "poke-pelago-poni-island-reached",
5 "url": "https://pokedex.mimo.dev/api/location-area/1158/"
6 },
7 {
8 "name": "poke-pelago-ulaula-island-reached",
9 "url": "https://pokedex.mimo.dev/api/location-area/1159/"
10 },
11 {
12 "name": "poke-pelago-elite-four-defeated",
13 "url": "https://pokedex.mimo.dev/api/location-area/1160/"
14 }
15 ],
16 "game_indices": [],
17 "id": 1052,
18 "name": "poke-pelago",
19 "names": [],
20 "region": {
21 "name": "alola",
22 "url": "https://pokedex.mimo.dev/api/region/7/"
23 }
24}