Endpoint: location
GEThttps://rickandmorty.mimo.dev/api/location/83
Request
GETlocation
1fetch("https://rickandmorty.mimo.dev/api/location/83")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "id": 83,
3 "name": "Monogatron Mothership",
4 "type": "Space station",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/525",
8 "https://rickandmorty.mimo.dev/api/character/527",
9 "https://rickandmorty.mimo.dev/api/character/528",
10 "https://rickandmorty.mimo.dev/api/character/533"
11 ],
12 "url": "https://rickandmorty.mimo.dev/api/location/83",
13 "created": "2020-05-02T13:10:42.299Z"
14}