← People
Darth Vader
Attributes
| Height | 202 |
|---|---|
| Mass | 136 |
| Hair color | none |
| Skin color | white |
| Eye color | yellow |
| Birth year | 41.9BBY |
| Gender | male |
Related records
Homeworld
Starships
Use this record
curl
curl https://swapi.build/api/people/4
JavaScript
fetch('https://swapi.build/api/people/4').then((r) => r.json())
Python
requests.get('https://swapi.build/api/people/4').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":4}
GET /api/people/4 200
{
"birth_year": "41.9BBY",
"created": "2014-12-10T15:18:20.704000Z",
"edited": "2014-12-20T21:17:50.313000Z",
"eye_color": "yellow",
"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": "none",
"height": "202",
"homeworld": "https://swapi.build/api/planets/1",
"mass": "136",
"name": "Darth Vader",
"skin_color": "white",
"species": [],
"starships": [
"https://swapi.build/api/starships/13"
],
"url": "https://swapi.build/api/people/4",
"vehicles": []
}