Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 48,
3 "name": "Fantasy World",
4 "type": "Planet",
5 "dimension": "Fantasy Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/41",
8 "https://rickandmorty.mimo.dev/api/character/193",
9 "https://rickandmorty.mimo.dev/api/character/238",
10 "https://rickandmorty.mimo.dev/api/character/333"
11 ],
12 "url": "https://rickandmorty.mimo.dev/api/location/48",
13 "created": "2017-12-29T19:55:54.672Z"
14}