Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 77,
3 "name": "Earth (Fascist Dimension)",
4 "type": "Planet",
5 "dimension": "Fascist Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/242",
8 "https://rickandmorty.mimo.dev/api/character/498",
9 "https://rickandmorty.mimo.dev/api/character/499",
10 "https://rickandmorty.mimo.dev/api/character/500",
11 "https://rickandmorty.mimo.dev/api/character/501",
12 "https://rickandmorty.mimo.dev/api/character/502"
13 ],
14 "url": "https://rickandmorty.mimo.dev/api/location/77",
15 "created": "2020-05-02T09:39:49.158Z"
16}