Endpoint: people
GEThttps://swapi.mimo.dev/api/people/Grievous
Request
GETpeople
1fetch("https://swapi.mimo.dev/api/people/Grievous")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "Grievous",
3 "height": "216",
4 "mass": "159",
5 "hair_color": "none",
6 "skin_color": "brown, white",
7 "eye_color": "green, yellow",
8 "birth_year": "unknown",
9 "gender": "male",
10 "homeworld": "https://swapi.mimo.dev/api/planets/59/",
11 "films": [
12 "https://swapi.mimo.dev/api/films/6/"
13 ],
14 "species": [
15 "https://swapi.mimo.dev/api/species/36/"
16 ],
17 "vehicles": [
18 "https://swapi.mimo.dev/api/vehicles/60/"
19 ],
20 "starships": [
21 "https://swapi.mimo.dev/api/starships/74/"
22 ],
23 "created": "2014-12-20T19:43:53.348000Z",
24 "edited": "2014-12-20T21:17:50.488000Z",
25 "url": "https://swapi.mimo.dev/api/people/79/"
26}