Endpoint: people

GEThttps://swapi.mimo.dev/api/people/Palpatine

Request

GETpeople
1fetch("https://swapi.mimo.dev/api/people/Palpatine")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))

Response

response.json
1{
2 "name": "Palpatine",
3 "height": "170",
4 "mass": "75",
5 "hair_color": "grey",
6 "skin_color": "pale",
7 "eye_color": "yellow",
8 "birth_year": "82BBY",
9 "gender": "male",
10 "homeworld": "https://swapi.mimo.dev/api/planets/8/",
11 "films": [
12 "https://swapi.mimo.dev/api/films/2/",
13 "https://swapi.mimo.dev/api/films/3/",
14 "https://swapi.mimo.dev/api/films/4/",
15 "https://swapi.mimo.dev/api/films/5/",
16 "https://swapi.mimo.dev/api/films/6/"
17 ],
18 "species": [],
19 "vehicles": [],
20 "starships": [],
21 "created": "2014-12-15T12:48:05.971000Z",
22 "edited": "2014-12-20T21:17:50.347000Z",
23 "url": "https://swapi.mimo.dev/api/people/21/"
24}