/people/76
Request:
fetch("https://swapi.info/api/people/76")
.then((res) => res.json()) // Parse the JSON content from the API to be consumed
.then((json) => console.log(json)) // Log the JSON response to your console
.catch((error) => console.error(error)) // Log the API error (if any) to your console
Result:
{
"name": "Wat Tambor",
"height": "193",
"mass": "48",
"hair_color": "none",
"skin_color": "green, grey",
"eye_color": "unknown",
"birth_year": "unknown",
"gender": "male",
"homeworld": "https://swapi.info/api/planets/56",
"films": [
"https://swapi.info/api/films/5"
],
"species": [
"https://swapi.info/api/species/33"
],
"vehicles": [],
"starships": [],
"created": "2014-12-20T17:53:52.607000Z",
"edited": "2014-12-20T21:17:50.481000Z",
"url": "https://swapi.info/api/people/76"
}