← People

Boba Fett

Height183
Mass78.2
Hair colorblack
Skin colorfair
Eye colorbrown
Birth year31.5BBY
Gendermale

Homeworld

Starships

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/people/22').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":22}
GET /api/people/22 200
{
  "birth_year": "31.5BBY",
  "created": "2014-12-15T12:49:32.457000Z",
  "edited": "2014-12-20T21:17:50.349000Z",
  "eye_color": "brown",
  "films": [
    "https://swapi.build/api/films/2",
    "https://swapi.build/api/films/3",
    "https://swapi.build/api/films/5"
  ],
  "gender": "male",
  "hair_color": "black",
  "height": "183",
  "homeworld": "https://swapi.build/api/planets/10",
  "mass": "78.2",
  "name": "Boba Fett",
  "skin_color": "fair",
  "species": [],
  "starships": [
    "https://swapi.build/api/starships/21"
  ],
  "url": "https://swapi.build/api/people/22",
  "vehicles": []
}