Endpoint: location-area
GEThttps://pokedex.mimo.dev/api/location-area/altar-of-the-moone-area
Request
GETlocation-area
1fetch("https://pokedex.mimo.dev/api/location-area/altar-of-the-moone-area")
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": 1069,
5 "location": {
6 "name": "altar-of-the-moone",
7 "url": "https://pokedex.mimo.dev/api/location/791/"
8 },
9 "name": "altar-of-the-moone-area",
10 "names": [],
11 "pokemon_encounters": [
12 {
13 "pokemon": {
14 "name": "lunala",
15 "url": "https://pokedex.mimo.dev/api/pokemon/792/"
16 },
17 "version_details": [
18 {
19 "encounter_details": [
20 {
21 "chance": 100,
22 "condition_values": [],
23 "max_level": 55,
24 "method": {
25 "name": "only-one",
26 "url": "https://pokedex.mimo.dev/api/encounter-method/20/"
27 },
28 "min_level": 55
29 }
30 ],
31 "max_chance": 100,
32 "version": {
33 "name": "moon",
34 "url": "https://pokedex.mimo.dev/api/version/28/"
35 }
36 }
37 ]
38 }
39 ]
40}