/people/69

homecaret-rightpeoplecaret-right

69

API Endpoint:

Request:

fetch("https://swapi.info/api/people/69")
    .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": "Jango Fett",
  "height": "183",
  "mass": "79",
  "hair_color": "black",
  "skin_color": "tan",
  "eye_color": "brown",
  "birth_year": "66BBY",
  "gender": "male",
  "homeworld": "https://swapi.info/api/planets/53",
  "films": [
    "https://swapi.info/api/films/5"
  ],
  "species": [],
  "vehicles": [],
  "starships": [],
  "created": "2014-12-20T16:54:41.620000Z",
  "edited": "2014-12-20T21:17:50.465000Z",
  "url": "https://swapi.info/api/people/69"
}
eye-open
Good