Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 54,
3 "name": "Vindicator's Base",
4 "type": "Spacecraft",
5 "dimension": "unknown",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/252"
8 ],
9 "url": "https://rickandmorty.mimo.dev/api/location/54",
10 "created": "2017-12-31T12:57:37.824Z"
11}