Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 12,
3 "name": "Cronenberg Earth",
4 "type": "Planet",
5 "dimension": "Cronenberg Dimension",
6 "residents": [],
7 "url": "https://rickandmorty.mimo.dev/api/location/12",
8 "created": "2017-11-18T11:29:27.857Z"
9}