← People
R2-D2
Attributes
| Height | 96 |
|---|---|
| Mass | 32 |
| Hair color | n/a |
| Skin color | white, blue |
| Eye color | red |
| Birth year | 33BBY |
| Gender | n/a |
Related records
Homeworld
Films
Species
Use this record
curl
curl https://swapi.build/api/people/3
JavaScript
fetch('https://swapi.build/api/people/3').then((r) => r.json())
Python
requests.get('https://swapi.build/api/people/3').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":3}
GET /api/people/3 200
{
"birth_year": "33BBY",
"created": "2014-12-10T15:11:50.376000Z",
"edited": "2014-12-20T21:17:50.311000Z",
"eye_color": "red",
"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": "96",
"homeworld": "https://swapi.build/api/planets/8",
"mass": "32",
"name": "R2-D2",
"skin_color": "white, blue",
"species": [
"https://swapi.build/api/species/2"
],
"starships": [],
"url": "https://swapi.build/api/people/3",
"vehicles": []
}