/people/48

homecaret-rightpeoplecaret-right

48

API Endpoint:

Request:

fetch("https://swapi.info/api/people/48")
    .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": "Dud Bolt",
  "height": "94",
  "mass": "45",
  "hair_color": "none",
  "skin_color": "blue, grey",
  "eye_color": "yellow",
  "birth_year": "unknown",
  "gender": "male",
  "homeworld": "https://swapi.info/api/planets/39",
  "films": [
    "https://swapi.info/api/films/4"
  ],
  "species": [
    "https://swapi.info/api/species/17"
  ],
  "vehicles": [],
  "starships": [],
  "created": "2014-12-20T09:57:31.858000Z",
  "edited": "2014-12-20T21:17:50.414000Z",
  "url": "https://swapi.info/api/people/48"
}
eye-open
Good