Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 79,
3 "name": "Forbodulon Prime",
4 "type": "Planet",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/494",
8 "https://rickandmorty.mimo.dev/api/character/495",
9 "https://rickandmorty.mimo.dev/api/character/496"
10 ],
11 "url": "https://rickandmorty.mimo.dev/api/location/79",
12 "created": "2020-05-02T10:04:05.509Z"
13}