/people/83

homecaret-rightpeoplecaret-right

83

API Endpoint:

Request:

fetch("https://swapi.info/api/people/83")
    .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": "Tion Medon",
  "height": "206",
  "mass": "80",
  "hair_color": "none",
  "skin_color": "grey",
  "eye_color": "black",
  "birth_year": "unknown",
  "gender": "male",
  "homeworld": "https://swapi.info/api/planets/12",
  "films": [
    "https://swapi.info/api/films/6"
  ],
  "species": [
    "https://swapi.info/api/species/37"
  ],
  "vehicles": [],
  "starships": [],
  "created": "2014-12-20T20:35:04.260000Z",
  "edited": "2014-12-20T21:17:50.498000Z",
  "url": "https://swapi.info/api/people/83"
}
eye-open
Good