/species/32

homecaret-rightspeciescaret-right

32

API Endpoint:

Request:

fetch("https://swapi.info/api/species/32")
    .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": "Kaminoan",
  "classification": "amphibian",
  "designation": "sentient",
  "average_height": "220",
  "skin_colors": "grey, blue",
  "hair_colors": "none",
  "eye_colors": "black",
  "average_lifespan": "80",
  "homeworld": "https://swapi.info/api/planets/10",
  "language": "Kaminoan",
  "people": [
    "https://swapi.info/api/people/72",
    "https://swapi.info/api/people/73"
  ],
  "films": [
    "https://swapi.info/api/films/5"
  ],
  "created": "2014-12-20T17:31:24.838000Z",
  "edited": "2014-12-20T21:36:42.202000Z",
  "url": "https://swapi.info/api/species/32"
}
eye-open
Good