Endpoint: people
GEThttps://swapi.mimo.dev/api/people/Bossk
Request
GETpeople
1fetch("https://swapi.mimo.dev/api/people/Bossk")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "Bossk",
3 "height": "190",
4 "mass": "113",
5 "hair_color": "none",
6 "skin_color": "green",
7 "eye_color": "red",
8 "birth_year": "53BBY",
9 "gender": "male",
10 "homeworld": "https://swapi.mimo.dev/api/planets/29/",
11 "films": [
12 "https://swapi.mimo.dev/api/films/2/"
13 ],
14 "species": [
15 "https://swapi.mimo.dev/api/species/7/"
16 ],
17 "vehicles": [],
18 "starships": [],
19 "created": "2014-12-15T12:53:49.297000Z",
20 "edited": "2014-12-20T21:17:50.355000Z",
21 "url": "https://swapi.mimo.dev/api/people/24/"
22}