← Species

Human

Classificationmammal
Designationsentient
Average height180
Skin colorscaucasian, black, asian, hispanic
Hair colorsblonde, brown, black, red
Eye colorsbrown, blue, green, hazel, grey, amber
Average lifespan120
LanguageGalactic Basic

Homeworld

curl

curl https://swapi.build/api/species/1

JavaScript

fetch('https://swapi.build/api/species/1').then((r) => r.json())

Python

requests.get('https://swapi.build/api/species/1').json()

MCP

Connect your agent once:

claude mcp add --transport http swapi-build https://swapi.build/mcp

then call the tool sw_get with:

{"resource":"SPECIES","id":1}
GET /api/species/1 200
{
  "average_height": "180",
  "average_lifespan": "120",
  "classification": "mammal",
  "created": "2014-12-10T13:52:11.567000Z",
  "designation": "sentient",
  "edited": "2014-12-20T21:36:42.136000Z",
  "eye_colors": "brown, blue, green, hazel, grey, amber",
  "films": [
    "https://swapi.build/api/films/1",
    "https://swapi.build/api/films/2",
    "https://swapi.build/api/films/3",
    "https://swapi.build/api/films/4",
    "https://swapi.build/api/films/5",
    "https://swapi.build/api/films/6"
  ],
  "hair_colors": "blonde, brown, black, red",
  "homeworld": "https://swapi.build/api/planets/9",
  "language": "Galactic Basic",
  "name": "Human",
  "people": [
    "https://swapi.build/api/people/66",
    "https://swapi.build/api/people/67",
    "https://swapi.build/api/people/68",
    "https://swapi.build/api/people/74"
  ],
  "skin_colors": "caucasian, black, asian, hispanic",
  "url": "https://swapi.build/api/species/1"
}