Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 37,
3 "name": "Resort Planet",
4 "type": "Planet",
5 "dimension": "unknown",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/142",
8 "https://rickandmorty.mimo.dev/api/character/296",
9 "https://rickandmorty.mimo.dev/api/character/297",
10 "https://rickandmorty.mimo.dev/api/character/319",
11 "https://rickandmorty.mimo.dev/api/character/369"
12 ],
13 "url": "https://rickandmorty.mimo.dev/api/location/37",
14 "created": "2017-12-27T20:02:59.005Z"
15}