Endpoint: planets

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

Request

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

Response

response.json
1{
2 "name": "Sullust",
3 "rotation_period": "20",
4 "orbital_period": "263",
5 "diameter": "12780",
6 "climate": "superheated",
7 "gravity": "1",
8 "terrain": "mountains, volcanoes, rocky deserts",
9 "surface_water": "5",
10 "population": "18500000000",
11 "residents": [
12 "https://swapi.mimo.dev/api/people/31/"
13 ],
14 "films": [],
15 "created": "2014-12-18T11:25:40.243000Z",
16 "edited": "2014-12-20T20:58:18.474000Z",
17 "url": "https://swapi.mimo.dev/api/planets/33/"
18}