Endpoint: location
GEThttps://rickandmorty.mimo.dev/api/location/94
Request
GETlocation
1fetch("https://rickandmorty.mimo.dev/api/location/94")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "id": 94,
3 "name": "Draygon",
4 "type": "Planet",
5 "dimension": "Magic Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/563",
8 "https://rickandmorty.mimo.dev/api/character/565",
9 "https://rickandmorty.mimo.dev/api/character/566",
10 "https://rickandmorty.mimo.dev/api/character/567",
11 "https://rickandmorty.mimo.dev/api/character/568",
12 "https://rickandmorty.mimo.dev/api/character/569"
13 ],
14 "url": "https://rickandmorty.mimo.dev/api/location/94",
15 "created": "2020-05-07T11:30:49.963Z"
16}