/people/70

homecaret-rightpeoplecaret-right

70

API Endpoint:

Request:

fetch("https://swapi.info/api/people/70")
    .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": "Zam Wesell",
  "height": "168",
  "mass": "55",
  "hair_color": "blonde",
  "skin_color": "fair, green, yellow",
  "eye_color": "yellow",
  "birth_year": "unknown",
  "gender": "female",
  "homeworld": "https://swapi.info/api/planets/54",
  "films": [
    "https://swapi.info/api/films/5"
  ],
  "species": [
    "https://swapi.info/api/species/30"
  ],
  "vehicles": [
    "https://swapi.info/api/vehicles/45"
  ],
  "starships": [],
  "created": "2014-12-20T16:57:44.471000Z",
  "edited": "2014-12-20T21:17:50.468000Z",
  "url": "https://swapi.info/api/people/70"
}
eye-open
Good