Endpoint: location
GEThttps://rickandmorty.mimo.dev/api/location/34
Request
GETlocation
1fetch("https://rickandmorty.mimo.dev/api/location/34")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "id": 34,
3 "name": "Earth (Evil Rick's Target Dimension)",
4 "type": "Planet",
5 "dimension": "Evil Rick's Target Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/39",
8 "https://rickandmorty.mimo.dev/api/character/177",
9 "https://rickandmorty.mimo.dev/api/character/232",
10 "https://rickandmorty.mimo.dev/api/character/290",
11 "https://rickandmorty.mimo.dev/api/character/339"
12 ],
13 "url": "https://rickandmorty.mimo.dev/api/location/34",
14 "created": "2017-12-26T15:35:20.499Z"
15}