← People
C-3PO
Attributes
| Height | 167 |
|---|---|
| Mass | 75 |
| Hair color | n/a |
| Skin color | gold |
| Eye color | yellow |
| Birth year | 112BBY |
| Gender | n/a |
Related records
Homeworld
Films
Species
Use this record
curl
curl https://swapi.build/api/people/2
JavaScript
fetch('https://swapi.build/api/people/2').then((r) => r.json())
Python
requests.get('https://swapi.build/api/people/2').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":2}
GET /api/people/2 200
{
"birth_year": "112BBY",
"created": "2014-12-10T15:10:51.357000Z",
"edited": "2014-12-20T21:17:50.309000Z",
"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/4",
"https://swapi.build/api/films/5",
"https://swapi.build/api/films/6"
],
"gender": "n/a",
"hair_color": "n/a",
"height": "167",
"homeworld": "https://swapi.build/api/planets/1",
"mass": "75",
"name": "C-3PO",
"skin_color": "gold",
"species": [
"https://swapi.build/api/species/2"
],
"starships": [],
"url": "https://swapi.build/api/people/2",
"vehicles": []
}