Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 109,
3 "name": "The Ocean",
4 "type": "Liquid",
5 "dimension": "Replacement Dimension",
6 "residents": [],
7 "url": "https://rickandmorty.mimo.dev/api/location/109",
8 "created": "2021-10-16T11:53:50.571Z"
9}