← People

Luke Skywalker

Height172
Mass77
Hair colorblond
Skin colorfair
Eye colorblue
Birth year19BBY
Gendermale

Homeworld

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/people/1').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":1}
GET /api/people/1 200
{
  "birth_year": "19BBY",
  "created": "2014-12-09T13:50:51.644000Z",
  "edited": "2014-12-20T21:17:56.891000Z",
  "eye_color": "blue",
  "films": [
    "https://swapi.build/api/films/1",
    "https://swapi.build/api/films/2",
    "https://swapi.build/api/films/3",
    "https://swapi.build/api/films/6"
  ],
  "gender": "male",
  "hair_color": "blond",
  "height": "172",
  "homeworld": "https://swapi.build/api/planets/1",
  "mass": "77",
  "name": "Luke Skywalker",
  "skin_color": "fair",
  "species": [],
  "starships": [
    "https://swapi.build/api/starships/12",
    "https://swapi.build/api/starships/22"
  ],
  "url": "https://swapi.build/api/people/1",
  "vehicles": [
    "https://swapi.build/api/vehicles/14",
    "https://swapi.build/api/vehicles/30"
  ]
}