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