Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 117,
3 "name": "Z. Q. P. D.",
4 "type": "Police Department",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/743"
8 ],
9 "url": "https://rickandmorty.mimo.dev/api/location/117",
10 "created": "2021-10-17T13:45:50.845Z"
11}