Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 21,
3 "name": "Testicle Monster Dimension",
4 "type": "Dimension",
5 "dimension": "Testicle Monster Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/7",
8 "https://rickandmorty.mimo.dev/api/character/436"
9 ],
10 "url": "https://rickandmorty.mimo.dev/api/location/21",
11 "created": "2017-11-18T19:41:01.605Z"
12}