/species/21

homecaret-rightspeciescaret-right

21

API Endpoint:

Request:

fetch("https://swapi.info/api/species/21")
    .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": "Nautolan",
  "classification": "amphibian",
  "designation": "sentient",
  "average_height": "180",
  "skin_colors": "green, blue, brown, red",
  "hair_colors": "none",
  "eye_colors": "black",
  "average_lifespan": "70",
  "homeworld": "https://swapi.info/api/planets/44",
  "language": "Nautila",
  "people": [
    "https://swapi.info/api/people/53"
  ],
  "films": [
    "https://swapi.info/api/films/4"
  ],
  "created": "2014-12-20T10:18:58.610000Z",
  "edited": "2014-12-20T21:36:42.181000Z",
  "url": "https://swapi.info/api/species/21"
}
eye-open
Good