← People

Han Solo

Height180
Mass80
Hair colorbrown
Skin colorfair
Eye colorbrown
Birth year29BBY
Gendermale

Homeworld

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/people/14').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":14}
GET /api/people/14 200
{
  "birth_year": "29BBY",
  "created": "2014-12-10T16:49:14.582000Z",
  "edited": "2014-12-20T21:17:50.334000Z",
  "eye_color": "brown",
  "films": [
    "https://swapi.build/api/films/1",
    "https://swapi.build/api/films/2",
    "https://swapi.build/api/films/3"
  ],
  "gender": "male",
  "hair_color": "brown",
  "height": "180",
  "homeworld": "https://swapi.build/api/planets/22",
  "mass": "80",
  "name": "Han Solo",
  "skin_color": "fair",
  "species": [],
  "starships": [
    "https://swapi.build/api/starships/10",
    "https://swapi.build/api/starships/22"
  ],
  "url": "https://swapi.build/api/people/14",
  "vehicles": []
}