Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 85,
3 "name": "Midland Quasar",
4 "type": "Quasar",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/529",
8 "https://rickandmorty.mimo.dev/api/character/530"
9 ],
10 "url": "https://rickandmorty.mimo.dev/api/location/85",
11 "created": "2020-05-02T13:30:41.732Z"
12}