Endpoint: location
GEThttps://rickandmorty.mimo.dev/api/location/23
Request
GETlocation
1fetch("https://rickandmorty.mimo.dev/api/location/23")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "id": 23,
3 "name": "Earth (C-500A)",
4 "type": "Planet",
5 "dimension": "Dimension C-500A",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/37",
8 "https://rickandmorty.mimo.dev/api/character/91",
9 "https://rickandmorty.mimo.dev/api/character/176",
10 "https://rickandmorty.mimo.dev/api/character/183",
11 "https://rickandmorty.mimo.dev/api/character/195"
12 ],
13 "url": "https://rickandmorty.mimo.dev/api/location/23",
14 "created": "2017-11-18T20:58:15.178Z"
15}