Documentation menu

Endpoint: location

GEThttps://rickandmorty.mimo.dev/api/location/88

Request

GETlocation
1fetch("https://rickandmorty.mimo.dev/api/location/88")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))

Response

response.json
1{
2 "id": 88,
3 "name": "Heist-Con",
4 "type": "Convention",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/544",
8 "https://rickandmorty.mimo.dev/api/character/545",
9 "https://rickandmorty.mimo.dev/api/character/546",
10 "https://rickandmorty.mimo.dev/api/character/547",
11 "https://rickandmorty.mimo.dev/api/character/548",
12 "https://rickandmorty.mimo.dev/api/character/549",
13 "https://rickandmorty.mimo.dev/api/character/550",
14 "https://rickandmorty.mimo.dev/api/character/551",
15 "https://rickandmorty.mimo.dev/api/character/552",
16 "https://rickandmorty.mimo.dev/api/character/553"
17 ],
18 "url": "https://rickandmorty.mimo.dev/api/location/88",
19 "created": "2020-05-07T09:07:41.816Z"
20}