← People

R5-D4

Height97
Mass32
Hair colorn/a
Skin colorwhite, red
Eye colorred
Birth yearunknown
Gendern/a

Homeworld

Films

Species

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/people/8').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":8}
GET /api/people/8 200
{
  "birth_year": "unknown",
  "created": "2014-12-10T15:57:50.959000Z",
  "edited": "2014-12-20T21:17:50.321000Z",
  "eye_color": "red",
  "films": [
    "https://swapi.build/api/films/1"
  ],
  "gender": "n/a",
  "hair_color": "n/a",
  "height": "97",
  "homeworld": "https://swapi.build/api/planets/1",
  "mass": "32",
  "name": "R5-D4",
  "skin_color": "white, red",
  "species": [
    "https://swapi.build/api/species/2"
  ],
  "starships": [],
  "url": "https://swapi.build/api/people/8",
  "vehicles": []
}