Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 118,
3 "name": "Space Tahoe",
4 "type": "",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/751",
8 "https://rickandmorty.mimo.dev/api/character/752"
9 ],
10 "url": "https://rickandmorty.mimo.dev/api/location/118",
11 "created": "2021-10-17T14:03:13.221Z"
12}