Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 100,
3 "name": "Ricks’s Story",
4 "type": "Diegesis",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/603",
8 "https://rickandmorty.mimo.dev/api/character/614",
9 "https://rickandmorty.mimo.dev/api/character/625",
10 "https://rickandmorty.mimo.dev/api/character/635",
11 "https://rickandmorty.mimo.dev/api/character/636",
12 "https://rickandmorty.mimo.dev/api/character/608"
13 ],
14 "url": "https://rickandmorty.mimo.dev/api/location/100",
15 "created": "2020-08-06T11:45:08.782Z"
16}