1fetch("https://rickandmorty.mimo.dev/api/location/125") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 125,3 "name": "Rick and Two Crows Planet",4 "type": "Planet",5 "dimension": "Replacement Dimension",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/809",8 "https://rickandmorty.mimo.dev/api/character/808",9 "https://rickandmorty.mimo.dev/api/character/787"10 ],11 "url": "https://rickandmorty.mimo.dev/api/location/125",12 "created": "2021-11-02T13:50:55.588Z"13}