1fetch("https://rickandmorty.mimo.dev/api/location/71") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 71,3 "name": "Earth (Pizza Dimension)",4 "type": "Planet",5 "dimension": "Pizza Dimension",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/424",8 "https://rickandmorty.mimo.dev/api/character/425"9 ],10 "url": "https://rickandmorty.mimo.dev/api/location/71",11 "created": "2018-04-15T17:55:04.478Z"12}