Endpoint: people
GEThttps://swapi.mimo.dev/api/people/Watto
Request
GETpeople
1fetch("https://swapi.mimo.dev/api/people/Watto")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "Watto",
3 "height": "137",
4 "mass": "unknown",
5 "hair_color": "black",
6 "skin_color": "blue, grey",
7 "eye_color": "yellow",
8 "birth_year": "unknown",
9 "gender": "male",
10 "homeworld": "https://swapi.mimo.dev/api/planets/34/",
11 "films": [
12 "https://swapi.mimo.dev/api/films/4/",
13 "https://swapi.mimo.dev/api/films/5/"
14 ],
15 "species": [
16 "https://swapi.mimo.dev/api/species/13/"
17 ],
18 "vehicles": [],
19 "starships": [],
20 "created": "2014-12-19T17:48:54.647000Z",
21 "edited": "2014-12-20T21:17:50.395000Z",
22 "url": "https://swapi.mimo.dev/api/people/40/"
23}