Endpoint: planets

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

Request

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

Response

response.json
1{
2 "name": "Coruscant",
3 "rotation_period": "24",
4 "orbital_period": "368",
5 "diameter": "12240",
6 "climate": "temperate",
7 "gravity": "1 standard",
8 "terrain": "cityscape, mountains",
9 "surface_water": "unknown",
10 "population": "1000000000000",
11 "residents": [
12 "https://swapi.mimo.dev/api/people/34/",
13 "https://swapi.mimo.dev/api/people/55/",
14 "https://swapi.mimo.dev/api/people/74/"
15 ],
16 "films": [
17 "https://swapi.mimo.dev/api/films/3/",
18 "https://swapi.mimo.dev/api/films/4/",
19 "https://swapi.mimo.dev/api/films/5/",
20 "https://swapi.mimo.dev/api/films/6/"
21 ],
22 "created": "2014-12-10T11:54:13.921000Z",
23 "edited": "2014-12-20T20:58:18.432000Z",
24 "url": "https://swapi.mimo.dev/api/planets/9/"
25}