1fetch("https://rickandmorty.mimo.dev/api/location/17") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 17,3 "name": "Earth (5-126)",4 "type": "Planet",5 "dimension": "Dimension 5-126",6 "residents": [],7 "url": "https://rickandmorty.mimo.dev/api/location/17",8 "created": "2017-11-18T11:41:08.486Z"9}