← People
Palpatine
Attributes
| Height | 170 |
|---|---|
| Mass | 75 |
| Hair color | grey |
| Skin color | pale |
| Eye color | yellow |
| Birth year | 82BBY |
| Gender | male |
Related records
Homeworld
Use this record
curl
curl https://swapi.build/api/people/21
JavaScript
fetch('https://swapi.build/api/people/21').then((r) => r.json())
Python
requests.get('https://swapi.build/api/people/21').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":21}
GET /api/people/21 200
{
"birth_year": "82BBY",
"created": "2014-12-15T12:48:05.971000Z",
"edited": "2014-12-20T21:17:50.347000Z",
"eye_color": "yellow",
"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": "grey",
"height": "170",
"homeworld": "https://swapi.build/api/planets/8",
"mass": "75",
"name": "Palpatine",
"skin_color": "pale",
"species": [],
"starships": [],
"url": "https://swapi.build/api/people/21",
"vehicles": []
}