Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 106,
3 "name": "Gaia",
4 "type": "Planet",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/662",
8 "https://rickandmorty.mimo.dev/api/character/663",
9 "https://rickandmorty.mimo.dev/api/character/664",
10 "https://rickandmorty.mimo.dev/api/character/665",
11 "https://rickandmorty.mimo.dev/api/character/666"
12 ],
13 "url": "https://rickandmorty.mimo.dev/api/location/106",
14 "created": "2020-08-13T12:00:29.825Z"
15}