Endpoint: planets
GEThttps://swapi.mimo.dev/api/planets/Mygeeto
Request
GETplanets
1fetch("https://swapi.mimo.dev/api/planets/Mygeeto")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "Mygeeto",
3 "rotation_period": "12",
4 "orbital_period": "167",
5 "diameter": "10088",
6 "climate": "frigid",
7 "gravity": "1 standard",
8 "terrain": "glaciers, mountains, ice canyons",
9 "surface_water": "unknown",
10 "population": "19000000",
11 "residents": [],
12 "films": [
13 "https://swapi.mimo.dev/api/films/6/"
14 ],
15 "created": "2014-12-10T13:43:39.139000Z",
16 "edited": "2014-12-20T20:58:18.446000Z",
17 "url": "https://swapi.mimo.dev/api/planets/16/"
18}