Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 89,
3 "name": "Heistotron Base",
4 "type": "Space station",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/554",
8 "https://rickandmorty.mimo.dev/api/character/555",
9 "https://rickandmorty.mimo.dev/api/character/556",
10 "https://rickandmorty.mimo.dev/api/character/557",
11 "https://rickandmorty.mimo.dev/api/character/558"
12 ],
13 "url": "https://rickandmorty.mimo.dev/api/location/89",
14 "created": "2020-05-07T10:11:40.632Z"
15}