1fetch("https://rickandmorty.mimo.dev/api/location/46") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 46,3 "name": "Zigerion's Base",4 "type": "Space station",5 "dimension": "Dimension C-137",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/87",8 "https://rickandmorty.mimo.dev/api/character/191",9 "https://rickandmorty.mimo.dev/api/character/270",10 "https://rickandmorty.mimo.dev/api/character/337"11 ],12 "url": "https://rickandmorty.mimo.dev/api/location/46",13 "created": "2017-12-29T19:40:07.748Z"14}