/species/15

homecaret-rightspeciescaret-right

15

API Endpoint:

Request:

fetch("https://swapi.info/api/species/15")
    .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": "Twi'lek",
  "classification": "mammals",
  "designation": "sentient",
  "average_height": "200",
  "skin_colors": "orange, yellow, blue, green, pink, purple, tan",
  "hair_colors": "none",
  "eye_colors": "blue, brown, orange, pink",
  "average_lifespan": "unknown",
  "homeworld": "https://swapi.info/api/planets/37",
  "language": "Twi'leki",
  "people": [
    "https://swapi.info/api/people/45",
    "https://swapi.info/api/people/46"
  ],
  "films": [
    "https://swapi.info/api/films/3",
    "https://swapi.info/api/films/4",
    "https://swapi.info/api/films/5",
    "https://swapi.info/api/films/6"
  ],
  "created": "2014-12-20T09:48:02.406000Z",
  "edited": "2014-12-20T21:36:42.169000Z",
  "url": "https://swapi.info/api/species/15"
}
eye-open
Good