← People

Ackbar

Height180
Mass83
Hair colornone
Skin colorbrown mottle
Eye colororange
Birth year41BBY
Gendermale

Homeworld

Species

curl

curl https://swapi.build/api/people/27

JavaScript

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

Python

requests.get('https://swapi.build/api/people/27').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":"PEOPLE","id":27}
GET /api/people/27 200
{
  "birth_year": "41BBY",
  "created": "2014-12-18T11:07:50.584000Z",
  "edited": "2014-12-20T21:17:50.362000Z",
  "eye_color": "orange",
  "films": [
    "https://swapi.build/api/films/3"
  ],
  "gender": "male",
  "hair_color": "none",
  "height": "180",
  "homeworld": "https://swapi.build/api/planets/31",
  "mass": "83",
  "name": "Ackbar",
  "skin_color": "brown mottle",
  "species": [
    "https://swapi.build/api/species/8"
  ],
  "starships": [],
  "url": "https://swapi.build/api/people/27",
  "vehicles": []
}