Endpoint: people
GEThttps://swapi.mimo.dev/api/people/Tarfful
Request
GETpeople
1fetch("https://swapi.mimo.dev/api/people/Tarfful")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "Tarfful",
3 "height": "234",
4 "mass": "136",
5 "hair_color": "brown",
6 "skin_color": "brown",
7 "eye_color": "blue",
8 "birth_year": "unknown",
9 "gender": "male",
10 "homeworld": "https://swapi.mimo.dev/api/planets/14/",
11 "films": [
12 "https://swapi.mimo.dev/api/films/6/"
13 ],
14 "species": [
15 "https://swapi.mimo.dev/api/species/3/"
16 ],
17 "vehicles": [],
18 "starships": [],
19 "created": "2014-12-20T19:46:34.209000Z",
20 "edited": "2014-12-20T21:17:50.491000Z",
21 "url": "https://swapi.mimo.dev/api/people/80/"
22}