Endpoint: location
GEThttps://pokedex.mimo.dev/api/location/saffron-city
Request
GETlocation
1fetch("https://pokedex.mimo.dev/api/location/saffron-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": "saffron-city-fighting-dojo",
5 "url": "https://pokedex.mimo.dev/api/location-area/762/"
6 },
7 {
8 "name": "saffron-city-silph-co-7f",
9 "url": "https://pokedex.mimo.dev/api/location-area/764/"
10 },
11 {
12 "name": "saffron-city-silph-co",
13 "url": "https://pokedex.mimo.dev/api/location-area/835/"
14 }
15 ],
16 "game_indices": [
17 {
18 "game_index": 148,
19 "generation": {
20 "name": "generation-iv",
21 "url": "https://pokedex.mimo.dev/api/generation/4/"
22 }
23 }
24 ],
25 "id": 234,
26 "name": "saffron-city",
27 "names": [
28 {
29 "language": {
30 "name": "fr",
31 "url": "https://pokedex.mimo.dev/api/language/5/"
32 },
33 "name": "Safrania"
34 },
35 {
36 "language": {
37 "name": "en",
38 "url": "https://pokedex.mimo.dev/api/language/9/"
39 },
40 "name": "Saffron City"
41 }
42 ],
43 "region": {
44 "name": "kanto",
45 "url": "https://pokedex.mimo.dev/api/region/1/"
46 }
47}