1fetch("https://rickandmorty.mimo.dev/api/location/30") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 30,3 "name": "Earth (Unknown dimension)",4 "type": "Planet",5 "dimension": "unknown",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/822",8 "https://rickandmorty.mimo.dev/api/character/823",9 "https://rickandmorty.mimo.dev/api/character/824",10 "https://rickandmorty.mimo.dev/api/character/825"11 ],12 "url": "https://rickandmorty.mimo.dev/api/location/30",13 "created": "2017-12-01T11:49:43.923Z"14}