← People

Yoda

Height66
Mass17
Hair colorwhite
Skin colorgreen
Eye colorbrown
Birth year896BBY
Gendermale

Homeworld

Species

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/people/20').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":20}
GET /api/people/20 200
{
  "birth_year": "896BBY",
  "created": "2014-12-15T12:26:01.042000Z",
  "edited": "2014-12-20T21:17:50.345000Z",
  "eye_color": "brown",
  "films": [
    "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": "white",
  "height": "66",
  "homeworld": "https://swapi.build/api/planets/28",
  "mass": "17",
  "name": "Yoda",
  "skin_color": "green",
  "species": [
    "https://swapi.build/api/species/6"
  ],
  "starships": [],
  "url": "https://swapi.build/api/people/20",
  "vehicles": []
}