Endpoint: planets

GEThttps://swapi.mimo.dev/api/planets/Ryloth

Request

GETplanets
1fetch("https://swapi.mimo.dev/api/planets/Ryloth")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))

Response

response.json
1{
2 "name": "Ryloth",
3 "rotation_period": "30",
4 "orbital_period": "305",
5 "diameter": "10600",
6 "climate": "temperate, arid, subartic",
7 "gravity": "1",
8 "terrain": "mountains, valleys, deserts, tundra",
9 "surface_water": "5",
10 "population": "1500000000",
11 "residents": [
12 "https://swapi.mimo.dev/api/people/45/",
13 "https://swapi.mimo.dev/api/people/46/"
14 ],
15 "films": [],
16 "created": "2014-12-20T09:46:25.740000Z",
17 "edited": "2014-12-20T20:58:18.481000Z",
18 "url": "https://swapi.mimo.dev/api/planets/37/"
19}