Documentation menu

Endpoint: location

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

Request

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

Response

response.json
1{
2 "id": 40,
3 "name": "Gazorpazorp",
4 "type": "Planet",
5 "dimension": "unknown",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/168",
8 "https://rickandmorty.mimo.dev/api/character/211",
9 "https://rickandmorty.mimo.dev/api/character/376"
10 ],
11 "url": "https://rickandmorty.mimo.dev/api/location/40",
12 "created": "2017-12-29T12:31:50.313Z"
13}