1fetch("https://rickandmorty.mimo.dev/api/location/58") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 58,3 "name": "Earth (D-99)",4 "type": "Planet",5 "dimension": "Dimension D-99",6 "residents": [],7 "url": "https://rickandmorty.mimo.dev/api/location/58",8 "created": "2017-12-31T19:49:55.109Z"9}