Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 120,
3 "name": "Birdperson's Consciousness",
4 "type": "Consciousness",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/780",
8 "https://rickandmorty.mimo.dev/api/character/782",
9 "https://rickandmorty.mimo.dev/api/character/783",
10 "https://rickandmorty.mimo.dev/api/character/784",
11 "https://rickandmorty.mimo.dev/api/character/785"
12 ],
13 "url": "https://rickandmorty.mimo.dev/api/location/120",
14 "created": "2021-10-25T09:06:22.109Z"
15}