Endpoint: location
GEThttps://rickandmorty.mimo.dev/api/location/98
Request
GETlocation
1fetch("https://rickandmorty.mimo.dev/api/location/98")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "id": 98,
3 "name": "Tickets Please Guy Nightmare",
4 "type": "Nightmare",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/594",
8 "https://rickandmorty.mimo.dev/api/character/595",
9 "https://rickandmorty.mimo.dev/api/character/596",
10 "https://rickandmorty.mimo.dev/api/character/605",
11 "https://rickandmorty.mimo.dev/api/character/609",
12 "https://rickandmorty.mimo.dev/api/character/610",
13 "https://rickandmorty.mimo.dev/api/character/639"
14 ],
15 "url": "https://rickandmorty.mimo.dev/api/location/98",
16 "created": "2020-08-06T09:52:43.580Z"
17}