Endpoint: location
GEThttps://rickandmorty.mimo.dev/api/location/4
Request
GETlocation
1fetch("https://rickandmorty.mimo.dev/api/location/4")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "id": 4,
3 "name": "Worldender's lair",
4 "type": "Planet",
5 "dimension": "unknown",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/10",
8 "https://rickandmorty.mimo.dev/api/character/81",
9 "https://rickandmorty.mimo.dev/api/character/208",
10 "https://rickandmorty.mimo.dev/api/character/226",
11 "https://rickandmorty.mimo.dev/api/character/340",
12 "https://rickandmorty.mimo.dev/api/character/362",
13 "https://rickandmorty.mimo.dev/api/character/375",
14 "https://rickandmorty.mimo.dev/api/character/382",
15 "https://rickandmorty.mimo.dev/api/character/395"
16 ],
17 "url": "https://rickandmorty.mimo.dev/api/location/4",
18 "created": "2017-11-10T13:08:20.569Z"
19}