Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 36,
3 "name": "Glaagablaaga",
4 "type": "Planet",
5 "dimension": "unknown",
6 "residents": [],
7 "url": "https://rickandmorty.mimo.dev/api/location/36",
8 "created": "2017-12-26T20:30:45.939Z"
9}