Endpoint: planets

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

Request

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

Response

response.json
1{
2 "name": "Felucia",
3 "rotation_period": "34",
4 "orbital_period": "231",
5 "diameter": "9100",
6 "climate": "hot, humid",
7 "gravity": "0.75 standard",
8 "terrain": "fungus forests",
9 "surface_water": "unknown",
10 "population": "8500000",
11 "residents": [],
12 "films": [
13 "https://swapi.mimo.dev/api/films/6/"
14 ],
15 "created": "2014-12-10T13:44:50.397000Z",
16 "edited": "2014-12-20T20:58:18.447000Z",
17 "url": "https://swapi.mimo.dev/api/planets/17/"
18}