Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 44,
3 "name": "Jerryboree",
4 "type": "Daycare",
5 "dimension": "unknown",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/174",
8 "https://rickandmorty.mimo.dev/api/character/257",
9 "https://rickandmorty.mimo.dev/api/character/441",
10 "https://rickandmorty.mimo.dev/api/character/442",
11 "https://rickandmorty.mimo.dev/api/character/443",
12 "https://rickandmorty.mimo.dev/api/character/444",
13 "https://rickandmorty.mimo.dev/api/character/445",
14 "https://rickandmorty.mimo.dev/api/character/446"
15 ],
16 "url": "https://rickandmorty.mimo.dev/api/location/44",
17 "created": "2017-12-29T17:50:19.947Z"
18}