Endpoint: planets

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

Request

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

Response

response.json
1{
2 "name": "Eriadu",
3 "rotation_period": "24",
4 "orbital_period": "360",
5 "diameter": "13490",
6 "climate": "polluted",
7 "gravity": "1 standard",
8 "terrain": "cityscape",
9 "surface_water": "unknown",
10 "population": "22000000000",
11 "residents": [
12 "https://swapi.mimo.dev/api/people/12/"
13 ],
14 "films": [],
15 "created": "2014-12-10T16:26:54.384000Z",
16 "edited": "2014-12-20T20:58:18.454000Z",
17 "url": "https://swapi.mimo.dev/api/planets/21/"
18}