Endpoint: planets

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

Request

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

Response

response.json
1{
2 "name": "Utapau",
3 "rotation_period": "27",
4 "orbital_period": "351",
5 "diameter": "12900",
6 "climate": "temperate, arid, windy",
7 "gravity": "1 standard",
8 "terrain": "scrublands, savanna, canyons, sinkholes",
9 "surface_water": "0.9",
10 "population": "95000000",
11 "residents": [
12 "https://swapi.mimo.dev/api/people/83/"
13 ],
14 "films": [
15 "https://swapi.mimo.dev/api/films/6/"
16 ],
17 "created": "2014-12-10T12:49:01.491000Z",
18 "edited": "2014-12-20T20:58:18.439000Z",
19 "url": "https://swapi.mimo.dev/api/planets/12/"
20}