/people/60

homecaret-rightpeoplecaret-right

60

API Endpoint:

Request:

fetch("https://swapi.info/api/people/60")
    .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": "Gregar Typho",
  "height": "185",
  "mass": "85",
  "hair_color": "black",
  "skin_color": "dark",
  "eye_color": "brown",
  "birth_year": "unknown",
  "gender": "male",
  "homeworld": "https://swapi.info/api/planets/8",
  "films": [
    "https://swapi.info/api/films/5"
  ],
  "species": [],
  "vehicles": [],
  "starships": [
    "https://swapi.info/api/starships/39"
  ],
  "created": "2014-12-20T11:10:10.381000Z",
  "edited": "2014-12-20T21:17:50.445000Z",
  "url": "https://swapi.info/api/people/60"
}
eye-open
Good