Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 7,
3 "name": "Immortality Field Resort",
4 "type": "Resort",
5 "dimension": "unknown",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/23",
8 "https://rickandmorty.mimo.dev/api/character/204",
9 "https://rickandmorty.mimo.dev/api/character/320"
10 ],
11 "url": "https://rickandmorty.mimo.dev/api/location/7",
12 "created": "2017-11-10T13:09:17.136Z"
13}