Endpoint: planets

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

Request

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

Response

response.json
1{
2 "name": "Alderaan",
3 "rotation_period": "24",
4 "orbital_period": "364",
5 "diameter": "12500",
6 "climate": "temperate",
7 "gravity": "1 standard",
8 "terrain": "grasslands, mountains",
9 "surface_water": "40",
10 "population": "2000000000",
11 "residents": [
12 "https://swapi.mimo.dev/api/people/5/",
13 "https://swapi.mimo.dev/api/people/68/",
14 "https://swapi.mimo.dev/api/people/81/"
15 ],
16 "films": [
17 "https://swapi.mimo.dev/api/films/1/",
18 "https://swapi.mimo.dev/api/films/6/"
19 ],
20 "created": "2014-12-10T11:35:48.479000Z",
21 "edited": "2014-12-20T20:58:18.420000Z",
22 "url": "https://swapi.mimo.dev/api/planets/2/"
23}