Endpoint: people
GEThttps://swapi.mimo.dev/api/people/R5-D4
Request
GETpeople
1fetch("https://swapi.mimo.dev/api/people/R5-D4")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "R5-D4",
3 "height": "97",
4 "mass": "32",
5 "hair_color": "n/a",
6 "skin_color": "white, red",
7 "eye_color": "red",
8 "birth_year": "unknown",
9 "gender": "n/a",
10 "homeworld": "https://swapi.mimo.dev/api/planets/1/",
11 "films": [
12 "https://swapi.mimo.dev/api/films/1/"
13 ],
14 "species": [
15 "https://swapi.mimo.dev/api/species/2/"
16 ],
17 "vehicles": [],
18 "starships": [],
19 "created": "2014-12-10T15:57:50.959000Z",
20 "edited": "2014-12-20T21:17:50.321000Z",
21 "url": "https://swapi.mimo.dev/api/people/8/"
22}