← People

Anakin Skywalker

Height188
Mass84
Hair colorblond
Skin colorfair
Eye colorblue
Birth year41.9BBY
Gendermale

Homeworld

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/people/11').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":11}
GET /api/people/11 200
{
  "birth_year": "41.9BBY",
  "created": "2014-12-10T16:20:44.310000Z",
  "edited": "2014-12-20T21:17:50.327000Z",
  "eye_color": "blue",
  "films": [
    "https://swapi.build/api/films/4",
    "https://swapi.build/api/films/5",
    "https://swapi.build/api/films/6"
  ],
  "gender": "male",
  "hair_color": "blond",
  "height": "188",
  "homeworld": "https://swapi.build/api/planets/1",
  "mass": "84",
  "name": "Anakin Skywalker",
  "skin_color": "fair",
  "species": [],
  "starships": [
    "https://swapi.build/api/starships/39",
    "https://swapi.build/api/starships/59",
    "https://swapi.build/api/starships/65"
  ],
  "url": "https://swapi.build/api/people/11",
  "vehicles": [
    "https://swapi.build/api/vehicles/44",
    "https://swapi.build/api/vehicles/46"
  ]
}