Endpoint: location
GEThttps://pokedex.mimo.dev/api/location/hauoli-city
Request
GETlocation
1fetch("https://pokedex.mimo.dev/api/location/hauoli-city")
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": "hauoli-city-main",
5 "url": "https://pokedex.mimo.dev/api/location-area/1084/"
6 },
7 {
8 "name": "hauoli-city-shopping-district",
9 "url": "https://pokedex.mimo.dev/api/location-area/1085/"
10 },
11 {
12 "name": "hauoli-city-beachfront",
13 "url": "https://pokedex.mimo.dev/api/location-area/1086/"
14 }
15 ],
16 "game_indices": [],
17 "id": 1042,
18 "name": "hauoli-city",
19 "names": [],
20 "region": {
21 "name": "alola",
22 "url": "https://pokedex.mimo.dev/api/region/7/"
23 }
24}