← People

Wilhuff Tarkin

Height180
Massunknown
Hair colorauburn, grey
Skin colorfair
Eye colorblue
Birth year64BBY
Gendermale

Homeworld

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/people/12').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":12}
GET /api/people/12 200
{
  "birth_year": "64BBY",
  "created": "2014-12-10T16:26:56.138000Z",
  "edited": "2014-12-20T21:17:50.330000Z",
  "eye_color": "blue",
  "films": [
    "https://swapi.build/api/films/1",
    "https://swapi.build/api/films/6"
  ],
  "gender": "male",
  "hair_color": "auburn, grey",
  "height": "180",
  "homeworld": "https://swapi.build/api/planets/21",
  "mass": "unknown",
  "name": "Wilhuff Tarkin",
  "skin_color": "fair",
  "species": [],
  "starships": [],
  "url": "https://swapi.build/api/people/12",
  "vehicles": []
}