Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 126,
3 "name": "Rick's Memories",
4 "type": "Memory",
5 "dimension": "",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/815",
8 "https://rickandmorty.mimo.dev/api/character/814",
9 "https://rickandmorty.mimo.dev/api/character/807",
10 "https://rickandmorty.mimo.dev/api/character/94",
11 "https://rickandmorty.mimo.dev/api/character/779",
12 "https://rickandmorty.mimo.dev/api/character/816",
13 "https://rickandmorty.mimo.dev/api/character/817",
14 "https://rickandmorty.mimo.dev/api/character/274",
15 "https://rickandmorty.mimo.dev/api/character/389",
16 "https://rickandmorty.mimo.dev/api/character/215",
17 "https://rickandmorty.mimo.dev/api/character/294"
18 ],
19 "url": "https://rickandmorty.mimo.dev/api/location/126",
20 "created": "2021-11-02T15:18:57.987Z"
21}