Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 18,
3 "name": "Mr. Goldenfold's dream",
4 "type": "Dream",
5 "dimension": "Dimension C-137",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/63",
8 "https://rickandmorty.mimo.dev/api/character/80",
9 "https://rickandmorty.mimo.dev/api/character/221",
10 "https://rickandmorty.mimo.dev/api/character/246",
11 "https://rickandmorty.mimo.dev/api/character/304",
12 "https://rickandmorty.mimo.dev/api/character/305",
13 "https://rickandmorty.mimo.dev/api/character/306",
14 "https://rickandmorty.mimo.dev/api/character/396"
15 ],
16 "url": "https://rickandmorty.mimo.dev/api/location/18",
17 "created": "2017-11-18T11:46:22.933Z"
18}