Endpoint: pokemon-habitat

GEThttps://pokedex.mimo.dev/api/pokemon-habitat

Request

GETpokemon-habitat
1fetch("https://pokedex.mimo.dev/api/pokemon-habitat")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))

Response

response.json
1[
2 {
3 "name": "cave",
4 "url": "https://pokedex.mimo.dev/api/pokemon-habitat/1/",
5 "id": "1"
6 },
7 {
8 "name": "forest",
9 "url": "https://pokedex.mimo.dev/api/pokemon-habitat/2/",
10 "id": "2"
11 },
12 {
13 "name": "grassland",
14 "url": "https://pokedex.mimo.dev/api/pokemon-habitat/3/",
15 "id": "3"
16 },
17 {
18 "name": "mountain",
19 "url": "https://pokedex.mimo.dev/api/pokemon-habitat/4/",
20 "id": "4"
21 },
22 {
23 "name": "rare",
24 "url": "https://pokedex.mimo.dev/api/pokemon-habitat/5/",
25 "id": "5"
26 },
27 {
28 "name": "rough-terrain",
29 "url": "https://pokedex.mimo.dev/api/pokemon-habitat/6/",
30 "id": "6"
31 },
32 {
33 "name": "sea",
34 "url": "https://pokedex.mimo.dev/api/pokemon-habitat/7/",
35 "id": "7"
36 },
37 {
38 "name": "urban",
39 "url": "https://pokedex.mimo.dev/api/pokemon-habitat/8/",
40 "id": "8"
41 },
42 {
43 "name": "waters-edge",
44 "url": "https://pokedex.mimo.dev/api/pokemon-habitat/9/",
45 "id": "9"
46 }
47]