Endpoint: location-area
GEThttps://pokedex.mimo.dev/api/location-area/hearthome-city-west-gate
Request
GETlocation-area
1fetch("https://pokedex.mimo.dev/api/location-area/hearthome-city-west-gate")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "encounter_method_rates": [],
3 "game_index": 0,
4 "id": 789,
5 "location": {
6 "name": "hearthome-city",
7 "url": "https://pokedex.mimo.dev/api/location/169/"
8 },
9 "name": "hearthome-city-west-gate",
10 "names": [
11 {
12 "language": {
13 "name": "en",
14 "url": "https://pokedex.mimo.dev/api/language/9/"
15 },
16 "name": "Hearthome City (west gate)"
17 },
18 {
19 "language": {
20 "name": "fr",
21 "url": "https://pokedex.mimo.dev/api/language/5/"
22 },
23 "name": "Unionpolis (porte ouest)"
24 }
25 ],
26 "pokemon_encounters": [
27 {
28 "pokemon": {
29 "name": "happiny",
30 "url": "https://pokedex.mimo.dev/api/pokemon/440/"
31 },
32 "version_details": [
33 {
34 "encounter_details": [
35 {
36 "chance": 100,
37 "condition_values": [],
38 "max_level": 1,
39 "method": {
40 "name": "gift-egg",
41 "url": "https://pokedex.mimo.dev/api/encounter-method/19/"
42 },
43 "min_level": 1
44 }
45 ],
46 "max_chance": 100,
47 "version": {
48 "name": "diamond",
49 "url": "https://pokedex.mimo.dev/api/version/12/"
50 }
51 },
52 {
53 "encounter_details": [
54 {
55 "chance": 100,
56 "condition_values": [],
57 "max_level": 1,
58 "method": {
59 "name": "gift-egg",
60 "url": "https://pokedex.mimo.dev/api/encounter-method/19/"
61 },
62 "min_level": 1
63 }
64 ],
65 "max_chance": 100,
66 "version": {
67 "name": "pearl",
68 "url": "https://pokedex.mimo.dev/api/version/13/"
69 }
70 }
71 ]
72 }
73 ]
74}