Endpoint: location
GEThttps://rickandmorty.mimo.dev/api/location/101
Request
GETlocation
1fetch("https://rickandmorty.mimo.dev/api/location/101")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "id": 101,
3 "name": "Glorzo Asteroid",
4 "type": "Asteroid",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/640",
8 "https://rickandmorty.mimo.dev/api/character/641",
9 "https://rickandmorty.mimo.dev/api/character/642",
10 "https://rickandmorty.mimo.dev/api/character/643",
11 "https://rickandmorty.mimo.dev/api/character/644",
12 "https://rickandmorty.mimo.dev/api/character/645",
13 "https://rickandmorty.mimo.dev/api/character/646",
14 "https://rickandmorty.mimo.dev/api/character/647"
15 ],
16 "url": "https://rickandmorty.mimo.dev/api/location/101",
17 "created": "2020-08-07T11:28:46.897Z"
18}