Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 105,
3 "name": "NX-5 Planet Remover",
4 "type": "Death Star",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/344",
8 "https://rickandmorty.mimo.dev/api/character/670",
9 "https://rickandmorty.mimo.dev/api/character/671"
10 ],
11 "url": "https://rickandmorty.mimo.dev/api/location/105",
12 "created": "2020-08-13T11:35:53.644Z"
13}