/species/23

homecaret-rightspeciescaret-right

23

API Endpoint:

Request:

fetch("https://swapi.info/api/species/23")
    .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": "Tholothian",
  "classification": "mammal",
  "designation": "sentient",
  "average_height": "unknown",
  "skin_colors": "dark",
  "hair_colors": "unknown",
  "eye_colors": "blue, indigo",
  "average_lifespan": "unknown",
  "homeworld": "https://swapi.info/api/planets/46",
  "language": "unknown",
  "people": [
    "https://swapi.info/api/people/55"
  ],
  "films": [
    "https://swapi.info/api/films/4",
    "https://swapi.info/api/films/6"
  ],
  "created": "2014-12-20T10:29:13.798000Z",
  "edited": "2014-12-20T21:36:42.186000Z",
  "url": "https://swapi.info/api/species/23"
}
eye-open
Good