/people/56

homecaret-rightpeoplecaret-right

56

API Endpoint:

Request:

fetch("https://swapi.info/api/people/56")
    .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": "Saesee Tiin",
  "height": "188",
  "mass": "unknown",
  "hair_color": "none",
  "skin_color": "pale",
  "eye_color": "orange",
  "birth_year": "unknown",
  "gender": "male",
  "homeworld": "https://swapi.info/api/planets/47",
  "films": [
    "https://swapi.info/api/films/4",
    "https://swapi.info/api/films/6"
  ],
  "species": [
    "https://swapi.info/api/species/24"
  ],
  "vehicles": [],
  "starships": [],
  "created": "2014-12-20T10:32:11.669000Z",
  "edited": "2014-12-20T21:17:50.434000Z",
  "url": "https://swapi.info/api/people/56"
}
eye-open
Good