← People
Yoda
Attributes
| Height | 66 |
|---|---|
| Mass | 17 |
| Hair color | white |
| Skin color | green |
| Eye color | brown |
| Birth year | 896BBY |
| Gender | male |
Related records
Homeworld
Films
Species
Use this record
curl
curl https://swapi.build/api/people/20
JavaScript
fetch('https://swapi.build/api/people/20').then((r) => r.json())
Python
requests.get('https://swapi.build/api/people/20').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":20}
GET /api/people/20 200
{
"birth_year": "896BBY",
"created": "2014-12-15T12:26:01.042000Z",
"edited": "2014-12-20T21:17:50.345000Z",
"eye_color": "brown",
"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": "white",
"height": "66",
"homeworld": "https://swapi.build/api/planets/28",
"mass": "17",
"name": "Yoda",
"skin_color": "green",
"species": [
"https://swapi.build/api/species/6"
],
"starships": [],
"url": "https://swapi.build/api/people/20",
"vehicles": []
}