/people/67

homecaret-rightpeoplecaret-right

67

API Endpoint:

Request:

fetch("https://swapi.info/api/people/67")
    .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": "Dooku",
  "height": "193",
  "mass": "80",
  "hair_color": "white",
  "skin_color": "fair",
  "eye_color": "brown",
  "birth_year": "102BBY",
  "gender": "male",
  "homeworld": "https://swapi.info/api/planets/52",
  "films": [
    "https://swapi.info/api/films/5",
    "https://swapi.info/api/films/6"
  ],
  "species": [
    "https://swapi.info/api/species/1"
  ],
  "vehicles": [
    "https://swapi.info/api/vehicles/55"
  ],
  "starships": [],
  "created": "2014-12-20T16:52:14.726000Z",
  "edited": "2014-12-20T21:17:50.462000Z",
  "url": "https://swapi.info/api/people/67"
}
eye-open
Good