1fetch("https://rickandmorty.mimo.dev/api/location/69") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 69,3 "name": "Earth (C-35)",4 "type": "Planet",5 "dimension": "Dimension C-35",6 "residents": [],7 "url": "https://rickandmorty.mimo.dev/api/location/69",8 "created": "2018-04-15T16:55:56.212Z"9}