1fetch("https://rickandmorty.mimo.dev/api/location/25") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 25,3 "name": "The Menagerie",4 "type": "Menagerie",5 "dimension": "unknown",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/67",8 "https://rickandmorty.mimo.dev/api/character/490",9 "https://rickandmorty.mimo.dev/api/character/491"10 ],11 "url": "https://rickandmorty.mimo.dev/api/location/25",12 "created": "2017-11-30T11:13:46.697Z"13}