← People

Greedo

Height173
Mass74
Hair colorn/a
Skin colorgreen
Eye colorblack
Birth year44BBY
Gendermale

Homeworld

Films

Species

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/people/15').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":15}
GET /api/people/15 200
{
  "birth_year": "44BBY",
  "created": "2014-12-10T17:03:30.334000Z",
  "edited": "2014-12-20T21:17:50.336000Z",
  "eye_color": "black",
  "films": [
    "https://swapi.build/api/films/1"
  ],
  "gender": "male",
  "hair_color": "n/a",
  "height": "173",
  "homeworld": "https://swapi.build/api/planets/23",
  "mass": "74",
  "name": "Greedo",
  "skin_color": "green",
  "species": [
    "https://swapi.build/api/species/4"
  ],
  "starships": [],
  "url": "https://swapi.build/api/people/15",
  "vehicles": []
}