Endpoint: planets

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

Request

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

Response

response.json
1{
2 "name": "Tholoth",
3 "rotation_period": "unknown",
4 "orbital_period": "unknown",
5 "diameter": "unknown",
6 "climate": "unknown",
7 "gravity": "unknown",
8 "terrain": "unknown",
9 "surface_water": "unknown",
10 "population": "unknown",
11 "residents": [],
12 "films": [],
13 "created": "2014-12-20T10:28:31.117000Z",
14 "edited": "2014-12-20T20:58:18.498000Z",
15 "url": "https://swapi.mimo.dev/api/planets/46/"
16}