Endpoint: location

GEThttps://pokedex.mimo.dev/api/location/cianwood-city

Request

GETlocation
1fetch("https://pokedex.mimo.dev/api/location/cianwood-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": "cianwood-city-area",
5 "url": "https://pokedex.mimo.dev/api/location-area/235/"
6 },
7 {
8 "name": "cianwood-city-manias-house",
9 "url": "https://pokedex.mimo.dev/api/location-area/767/"
10 },
11 {
12 "name": "cianwood-city-kirks-house",
13 "url": "https://pokedex.mimo.dev/api/location-area/773/"
14 },
15 {
16 "name": "cianwood-city-pokemon-center",
17 "url": "https://pokedex.mimo.dev/api/location-area/836/"
18 }
19 ],
20 "game_indices": [
21 {
22 "game_index": 130,
23 "generation": {
24 "name": "generation-iv",
25 "url": "https://pokedex.mimo.dev/api/generation/4/"
26 }
27 }
28 ],
29 "id": 70,
30 "name": "cianwood-city",
31 "names": [
32 {
33 "language": {
34 "name": "fr",
35 "url": "https://pokedex.mimo.dev/api/language/5/"
36 },
37 "name": "Irisia"
38 },
39 {
40 "language": {
41 "name": "en",
42 "url": "https://pokedex.mimo.dev/api/language/9/"
43 },
44 "name": "Cianwood City"
45 }
46 ],
47 "region": {
48 "name": "johto",
49 "url": "https://pokedex.mimo.dev/api/region/2/"
50 }
51}