← People

Obi-Wan Kenobi

Height182
Mass77
Hair colorauburn, white
Skin colorfair
Eye colorblue-gray
Birth year57BBY
Gendermale

Homeworld

Vehicles

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/people/10').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":10}
GET /api/people/10 200
{
  "birth_year": "57BBY",
  "created": "2014-12-10T16:16:29.192000Z",
  "edited": "2014-12-20T21:17:50.325000Z",
  "eye_color": "blue-gray",
  "films": [
    "https://swapi.build/api/films/1",
    "https://swapi.build/api/films/2",
    "https://swapi.build/api/films/3",
    "https://swapi.build/api/films/4",
    "https://swapi.build/api/films/5",
    "https://swapi.build/api/films/6"
  ],
  "gender": "male",
  "hair_color": "auburn, white",
  "height": "182",
  "homeworld": "https://swapi.build/api/planets/20",
  "mass": "77",
  "name": "Obi-Wan Kenobi",
  "skin_color": "fair",
  "species": [],
  "starships": [
    "https://swapi.build/api/starships/48",
    "https://swapi.build/api/starships/59",
    "https://swapi.build/api/starships/64",
    "https://swapi.build/api/starships/65",
    "https://swapi.build/api/starships/74"
  ],
  "url": "https://swapi.build/api/people/10",
  "vehicles": [
    "https://swapi.build/api/vehicles/38"
  ]
}