1fetch("https://rickandmorty.mimo.dev/api/location/56") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 56,3 "name": "Mega Gargantuan Kingdom",4 "type": "Microverse",5 "dimension": "Replacement Dimension",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/269"8 ],9 "url": "https://rickandmorty.mimo.dev/api/location/56",10 "created": "2017-12-31T14:01:44.921Z"11}