Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 92,
3 "name": "Earth (Tusk Dimension)",
4 "type": "Planet",
5 "dimension": "Tusk Dimension",
6 "residents": [],
7 "url": "https://rickandmorty.mimo.dev/api/location/92",
8 "created": "2020-05-07T10:25:11.950Z"
9}