Endpoint: location
GEThttps://rickandmorty.mimo.dev/api/location/8
Request
GETlocation
1fetch("https://rickandmorty.mimo.dev/api/location/8")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "id": 8,
3 "name": "Post-Apocalyptic Earth",
4 "type": "Planet",
5 "dimension": "Post-Apocalyptic Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/25",
8 "https://rickandmorty.mimo.dev/api/character/52",
9 "https://rickandmorty.mimo.dev/api/character/68",
10 "https://rickandmorty.mimo.dev/api/character/110",
11 "https://rickandmorty.mimo.dev/api/character/111",
12 "https://rickandmorty.mimo.dev/api/character/140",
13 "https://rickandmorty.mimo.dev/api/character/156",
14 "https://rickandmorty.mimo.dev/api/character/228",
15 "https://rickandmorty.mimo.dev/api/character/323",
16 "https://rickandmorty.mimo.dev/api/character/342"
17 ],
18 "url": "https://rickandmorty.mimo.dev/api/location/8",
19 "created": "2017-11-10T13:09:22.551Z"
20}