Endpoint: character
GEThttps://rickandmorty.mimo.dev/api/character/251
Request
GETcharacter
1fetch("https://rickandmorty.mimo.dev/api/character/251")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "id": 251,
3 "name": "Nancy",
4 "status": "Alive",
5 "species": "Human",
6 "type": "",
7 "gender": "Female",
8 "origin": {
9 "name": "Earth (Replacement Dimension)",
10 "url": "https://rickandmorty.mimo.dev/api/location/20"
11 },
12 "location": {
13 "name": "Earth (Replacement Dimension)",
14 "url": "https://rickandmorty.mimo.dev/api/location/20"
15 },
16 "image": "https://raw.githubusercontent.com/getmimo/things-api/main/files/rickandmorty/character/avatar/251.jpeg",
17 "episode": [
18 "https://rickandmorty.mimo.dev/api/episode/6",
19 "https://rickandmorty.mimo.dev/api/episode/9",
20 "https://rickandmorty.mimo.dev/api/episode/11",
21 "https://rickandmorty.mimo.dev/api/episode/25",
22 "https://rickandmorty.mimo.dev/api/episode/29",
23 "https://rickandmorty.mimo.dev/api/episode/36"
24 ],
25 "url": "https://rickandmorty.mimo.dev/api/character/251",
26 "created": "2017-12-31T12:46:54.095Z"
27}