/people/55

homecaret-rightpeoplecaret-right

55

API Endpoint:

Request:

fetch("https://swapi.info/api/people/55")
    .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": "Adi Gallia",
  "height": "184",
  "mass": "50",
  "hair_color": "none",
  "skin_color": "dark",
  "eye_color": "blue",
  "birth_year": "unknown",
  "gender": "female",
  "homeworld": "https://swapi.info/api/planets/9",
  "films": [
    "https://swapi.info/api/films/4",
    "https://swapi.info/api/films/6"
  ],
  "species": [
    "https://swapi.info/api/species/23"
  ],
  "vehicles": [],
  "starships": [],
  "created": "2014-12-20T10:29:11.661000Z",
  "edited": "2014-12-20T21:17:50.432000Z",
  "url": "https://swapi.info/api/people/55"
}
eye-open
Good