← People

Mace Windu

Height188
Mass84
Hair colornone
Skin colordark
Eye colorbrown
Birth year72BBY
Gendermale

Homeworld

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/people/51').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":51}
GET /api/people/51 200
{
  "birth_year": "72BBY",
  "created": "2014-12-20T10:12:30.846000Z",
  "edited": "2014-12-20T21:17:50.420000Z",
  "eye_color": "brown",
  "films": [
    "https://swapi.build/api/films/4",
    "https://swapi.build/api/films/5",
    "https://swapi.build/api/films/6"
  ],
  "gender": "male",
  "hair_color": "none",
  "height": "188",
  "homeworld": "https://swapi.build/api/planets/42",
  "mass": "84",
  "name": "Mace Windu",
  "skin_color": "dark",
  "species": [],
  "starships": [],
  "url": "https://swapi.build/api/people/51",
  "vehicles": []
}