Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 69,
3 "name": "Earth (C-35)",
4 "type": "Planet",
5 "dimension": "Dimension C-35",
6 "residents": [],
7 "url": "https://rickandmorty.mimo.dev/api/location/69",
8 "created": "2018-04-15T16:55:56.212Z"
9}