/species/7

homecaret-rightspeciescaret-right

7

API Endpoint:

Request:

fetch("https://swapi.info/api/species/7")
    .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": "Trandoshan",
  "classification": "reptile",
  "designation": "sentient",
  "average_height": "200",
  "skin_colors": "brown, green",
  "hair_colors": "none",
  "eye_colors": "yellow, orange",
  "average_lifespan": "unknown",
  "homeworld": "https://swapi.info/api/planets/29",
  "language": "Dosh",
  "people": [
    "https://swapi.info/api/people/24"
  ],
  "films": [
    "https://swapi.info/api/films/2"
  ],
  "created": "2014-12-15T13:07:47.704000Z",
  "edited": "2014-12-20T21:36:42.151000Z",
  "url": "https://swapi.info/api/species/7"
}
eye-open
Good