Endpoint: planets
GEThttps://swapi.mimo.dev/api/planets/unknown
Request
GETplanets
1fetch("https://swapi.mimo.dev/api/planets/unknown")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "unknown",
3 "rotation_period": "0",
4 "orbital_period": "0",
5 "diameter": "0",
6 "climate": "unknown",
7 "gravity": "unknown",
8 "terrain": "unknown",
9 "surface_water": "unknown",
10 "population": "unknown",
11 "residents": [
12 "https://swapi.mimo.dev/api/people/20/",
13 "https://swapi.mimo.dev/api/people/23/",
14 "https://swapi.mimo.dev/api/people/29/",
15 "https://swapi.mimo.dev/api/people/32/",
16 "https://swapi.mimo.dev/api/people/75/"
17 ],
18 "films": [],
19 "created": "2014-12-15T12:25:59.569000Z",
20 "edited": "2014-12-20T20:58:18.466000Z",
21 "url": "https://swapi.mimo.dev/api/planets/28/"
22}