Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 95,
3 "name": "New Improved Galactic Federation Quarters",
4 "type": "Space station",
5 "dimension": "Replacement Dimension",
6 "residents": [],
7 "url": "https://rickandmorty.mimo.dev/api/location/95",
8 "created": "2020-08-05T12:42:58.048Z"
9}