← People

Mon Mothma

Height150
Massunknown
Hair colorauburn
Skin colorfair
Eye colorblue
Birth year48BBY
Genderfemale

Homeworld

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/people/28').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":28}
GET /api/people/28 200
{
  "birth_year": "48BBY",
  "created": "2014-12-18T11:12:38.895000Z",
  "edited": "2014-12-20T21:17:50.364000Z",
  "eye_color": "blue",
  "films": [
    "https://swapi.build/api/films/3"
  ],
  "gender": "female",
  "hair_color": "auburn",
  "height": "150",
  "homeworld": "https://swapi.build/api/planets/32",
  "mass": "unknown",
  "name": "Mon Mothma",
  "skin_color": "fair",
  "species": [],
  "starships": [],
  "url": "https://swapi.build/api/people/28",
  "vehicles": []
}