← Starships

B-wing

ModelA/SF-01 B-wing starfighter
ManufacturerSlayn & Korpil
Cost in credits220000
Length16.9
Max atmosphering speed950
Crew1
Passengers0
Cargo capacity45
Consumables1 week
Hyperdrive rating2.0
MGLT91
Starship classAssault Starfighter

curl

curl https://swapi.build/api/starships/29

JavaScript

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

Python

requests.get('https://swapi.build/api/starships/29').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":"STARSHIPS","id":29}
GET /api/starships/29 200
{
  "MGLT": "91",
  "cargo_capacity": "45",
  "consumables": "1 week",
  "cost_in_credits": "220000",
  "created": "2014-12-18T11:18:04.763000Z",
  "crew": "1",
  "edited": "2014-12-20T21:23:49.909000Z",
  "films": [
    "https://swapi.build/api/films/3"
  ],
  "hyperdrive_rating": "2.0",
  "length": "16.9",
  "manufacturer": "Slayn & Korpil",
  "max_atmosphering_speed": "950",
  "model": "A/SF-01 B-wing starfighter",
  "name": "B-wing",
  "passengers": "0",
  "pilots": [],
  "starship_class": "Assault Starfighter",
  "url": "https://swapi.build/api/starships/29"
}