Documentation menu

Endpoint: location

GEThttps://rickandmorty.mimo.dev/api/location/47

Request

GETlocation
1fetch("https://rickandmorty.mimo.dev/api/location/47")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))

Response

response.json
1{
2 "id": 47,
3 "name": "Pluto",
4 "type": "Dwarf planet (Celestial Dwarf)",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/192",
8 "https://rickandmorty.mimo.dev/api/character/307",
9 "https://rickandmorty.mimo.dev/api/character/419",
10 "https://rickandmorty.mimo.dev/api/character/420",
11 "https://rickandmorty.mimo.dev/api/character/421",
12 "https://rickandmorty.mimo.dev/api/character/422"
13 ],
14 "url": "https://rickandmorty.mimo.dev/api/location/47",
15 "created": "2017-12-29T19:49:29.228Z"
16}