Endpoint: location
GEThttps://pokedex.mimo.dev/api/location/violet-city
Request
GETlocation
1fetch("https://pokedex.mimo.dev/api/location/violet-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": "violet-city-area",
5 "url": "https://pokedex.mimo.dev/api/location-area/189/"
6 },
7 {
8 "name": "violet-city-poke-mart",
9 "url": "https://pokedex.mimo.dev/api/location-area/790/"
10 },
11 {
12 "name": "violet-city-pokemon-center",
13 "url": "https://pokedex.mimo.dev/api/location-area/791/"
14 }
15 ],
16 "game_indices": [
17 {
18 "game_index": 128,
19 "generation": {
20 "name": "generation-iv",
21 "url": "https://pokedex.mimo.dev/api/generation/4/"
22 }
23 }
24 ],
25 "id": 153,
26 "name": "violet-city",
27 "names": [
28 {
29 "language": {
30 "name": "fr",
31 "url": "https://pokedex.mimo.dev/api/language/5/"
32 },
33 "name": "Mauville"
34 },
35 {
36 "language": {
37 "name": "en",
38 "url": "https://pokedex.mimo.dev/api/language/9/"
39 },
40 "name": "Violet City"
41 }
42 ],
43 "region": {
44 "name": "johto",
45 "url": "https://pokedex.mimo.dev/api/region/2/"
46 }
47}