/species/22

homecaret-rightspeciescaret-right

22

API Endpoint:

Request:

fetch("https://swapi.info/api/species/22")
    .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": "Zabrak",
  "classification": "mammal",
  "designation": "sentient",
  "average_height": "180",
  "skin_colors": "pale, brown, red, orange, yellow",
  "hair_colors": "black",
  "eye_colors": "brown, orange",
  "average_lifespan": "unknown",
  "homeworld": "https://swapi.info/api/planets/45",
  "language": "Zabraki",
  "people": [
    "https://swapi.info/api/people/44",
    "https://swapi.info/api/people/54"
  ],
  "films": [
    "https://swapi.info/api/films/4"
  ],
  "created": "2014-12-20T10:26:59.894000Z",
  "edited": "2014-12-20T21:36:42.183000Z",
  "url": "https://swapi.info/api/species/22"
}
eye-open
Good