Endpoint: location
GEThttps://rickandmorty.mimo.dev/api/location/116
Request
GETlocation
1fetch("https://rickandmorty.mimo.dev/api/location/116")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "id": 116,
3 "name": "Hell",
4 "type": "Hell",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/744",
8 "https://rickandmorty.mimo.dev/api/character/745",
9 "https://rickandmorty.mimo.dev/api/character/746",
10 "https://rickandmorty.mimo.dev/api/character/747",
11 "https://rickandmorty.mimo.dev/api/character/748",
12 "https://rickandmorty.mimo.dev/api/character/749",
13 "https://rickandmorty.mimo.dev/api/character/750"
14 ],
15 "url": "https://rickandmorty.mimo.dev/api/location/116",
16 "created": "2021-10-17T12:31:59.067Z"
17}