/people/82

homecaret-rightpeoplecaret-right

82

API Endpoint:

Request:

fetch("https://swapi.info/api/people/82")
    .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": "Sly Moore",
  "height": "178",
  "mass": "48",
  "hair_color": "none",
  "skin_color": "pale",
  "eye_color": "white",
  "birth_year": "unknown",
  "gender": "female",
  "homeworld": "https://swapi.info/api/planets/60",
  "films": [
    "https://swapi.info/api/films/5",
    "https://swapi.info/api/films/6"
  ],
  "species": [],
  "vehicles": [],
  "starships": [],
  "created": "2014-12-20T20:18:37.619000Z",
  "edited": "2014-12-20T21:17:50.496000Z",
  "url": "https://swapi.info/api/people/82"
}
eye-open
Good