Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 41,
3 "name": "Hamster in Butt World",
4 "type": "Planet",
5 "dimension": "unknown",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/153"
8 ],
9 "url": "https://rickandmorty.mimo.dev/api/location/41",
10 "created": "2017-12-29T15:27:54.209Z"
11}