Endpoint: location
GEThttps://rickandmorty.mimo.dev/api/location/99
Request
GETlocation
1fetch("https://rickandmorty.mimo.dev/api/location/99")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "id": 99,
3 "name": "Morty’s Story",
4 "type": "Diegesis",
5 "dimension": "Replacement Dimension",
6 "residents": [
7 "https://rickandmorty.mimo.dev/api/character/602",
8 "https://rickandmorty.mimo.dev/api/character/604",
9 "https://rickandmorty.mimo.dev/api/character/613",
10 "https://rickandmorty.mimo.dev/api/character/628",
11 "https://rickandmorty.mimo.dev/api/character/629",
12 "https://rickandmorty.mimo.dev/api/character/621"
13 ],
14 "url": "https://rickandmorty.mimo.dev/api/location/99",
15 "created": "2020-08-06T11:42:46.054Z"
16}