Endpoint: planets

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

Request

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

Response

response.json
1{
2 "name": "Dathomir",
3 "rotation_period": "24",
4 "orbital_period": "491",
5 "diameter": "10480",
6 "climate": "temperate",
7 "gravity": "0.9",
8 "terrain": "forests, deserts, savannas",
9 "surface_water": "unknown",
10 "population": "5200",
11 "residents": [
12 "https://swapi.mimo.dev/api/people/44/"
13 ],
14 "films": [],
15 "created": "2014-12-19T18:00:40.142000Z",
16 "edited": "2014-12-20T20:58:18.480000Z",
17 "url": "https://swapi.mimo.dev/api/planets/36/"
18}