← People

Nien Nunb

Height160
Mass68
Hair colornone
Skin colorgrey
Eye colorblack
Birth yearunknown
Gendermale

Homeworld

Species

Starships

curl

curl https://swapi.build/api/people/31

JavaScript

fetch('https://swapi.build/api/people/31').then((r) => r.json())

Python

requests.get('https://swapi.build/api/people/31').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":31}
GET /api/people/31 200
{
  "birth_year": "unknown",
  "created": "2014-12-18T11:26:18.541000Z",
  "edited": "2014-12-20T21:17:50.371000Z",
  "eye_color": "black",
  "films": [
    "https://swapi.build/api/films/3"
  ],
  "gender": "male",
  "hair_color": "none",
  "height": "160",
  "homeworld": "https://swapi.build/api/planets/33",
  "mass": "68",
  "name": "Nien Nunb",
  "skin_color": "grey",
  "species": [
    "https://swapi.build/api/species/10"
  ],
  "starships": [
    "https://swapi.build/api/starships/10"
  ],
  "url": "https://swapi.build/api/people/31",
  "vehicles": []
}