Endpoint: location
GEThttps://rickandmorty.mimo.dev/api/location/16
Request
GETlocation
1fetch("https://rickandmorty.mimo.dev/api/location/16")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "id": 16,
3 "name": "St. Gloopy Noops Hospital",
4 "type": "Space station",
5 "dimension": "unknown",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/105",
8 "https://rickandmorty.mimo.dev/api/character/263",
9 "https://rickandmorty.mimo.dev/api/character/321",
10 "https://rickandmorty.mimo.dev/api/character/383",
11 "https://rickandmorty.mimo.dev/api/character/384",
12 "https://rickandmorty.mimo.dev/api/character/454",
13 "https://rickandmorty.mimo.dev/api/character/455",
14 "https://rickandmorty.mimo.dev/api/character/456",
15 "https://rickandmorty.mimo.dev/api/character/460"
16 ],
17 "url": "https://rickandmorty.mimo.dev/api/location/16",
18 "created": "2017-11-18T11:43:20.075Z"
19}