Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 51,
3 "name": "Larva Alien's Planet",
4 "type": "Planet",
5 "dimension": "Unknown dimension",
6 "residents": [],
7 "url": "https://rickandmorty.mimo.dev/api/location/51",
8 "created": "2017-12-30T12:48:19.312Z"
9}