← People

Lobot

Height175
Mass79
Hair colornone
Skin colorlight
Eye colorblue
Birth year37BBY
Gendermale

Homeworld

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/people/26').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":26}
GET /api/people/26 200
{
  "birth_year": "37BBY",
  "created": "2014-12-15T13:01:57.178000Z",
  "edited": "2014-12-20T21:17:50.359000Z",
  "eye_color": "blue",
  "films": [
    "https://swapi.build/api/films/2"
  ],
  "gender": "male",
  "hair_color": "none",
  "height": "175",
  "homeworld": "https://swapi.build/api/planets/6",
  "mass": "79",
  "name": "Lobot",
  "skin_color": "light",
  "species": [],
  "starships": [],
  "url": "https://swapi.build/api/people/26",
  "vehicles": []
}