Endpoint: planets

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

Request

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

Response

response.json
1{
2 "name": "Iktotch",
3 "rotation_period": "22",
4 "orbital_period": "481",
5 "diameter": "unknown",
6 "climate": "arid, rocky, windy",
7 "gravity": "1",
8 "terrain": "rocky",
9 "surface_water": "unknown",
10 "population": "unknown",
11 "residents": [
12 "https://swapi.mimo.dev/api/people/56/"
13 ],
14 "films": [],
15 "created": "2014-12-20T10:31:32.413000Z",
16 "edited": "2014-12-20T20:58:18.500000Z",
17 "url": "https://swapi.mimo.dev/api/planets/47/"
18}