/people/16

homecaret-rightpeoplecaret-right

16

API Endpoint:

Request:

fetch("https://swapi.info/api/people/16")
    .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": "Jabba Desilijic Tiure",
  "height": "175",
  "mass": "1,358",
  "hair_color": "n/a",
  "skin_color": "green-tan, brown",
  "eye_color": "orange",
  "birth_year": "600BBY",
  "gender": "hermaphrodite",
  "homeworld": "https://swapi.info/api/planets/24",
  "films": [
    "https://swapi.info/api/films/1",
    "https://swapi.info/api/films/3",
    "https://swapi.info/api/films/4"
  ],
  "species": [
    "https://swapi.info/api/species/5"
  ],
  "vehicles": [],
  "starships": [],
  "created": "2014-12-10T17:11:31.638000Z",
  "edited": "2014-12-20T21:17:50.338000Z",
  "url": "https://swapi.info/api/people/16"
}
eye-open
Good