Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 81,
3 "name": "Earth (Fascist Teddy Bear Dimension)",
4 "type": "Planet",
5 "dimension": "Fascist Teddy Bear Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/507",
8 "https://rickandmorty.mimo.dev/api/character/508"
9 ],
10 "url": "https://rickandmorty.mimo.dev/api/location/81",
11 "created": "2020-05-02T12:16:18.224Z"
12}