← Starships

Y-wing

ModelBTL Y-wing
ManufacturerKoensayr Manufacturing
Cost in credits134999
Length14
Max atmosphering speed1000km
Crew2
Passengers0
Cargo capacity110
Consumables1 week
Hyperdrive rating1.0
MGLT80
Starship classassault starfighter

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/starships/11').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":11}
GET /api/starships/11 200
{
  "MGLT": "80",
  "cargo_capacity": "110",
  "consumables": "1 week",
  "cost_in_credits": "134999",
  "created": "2014-12-12T11:00:39.817000Z",
  "crew": "2",
  "edited": "2014-12-20T21:23:49.883000Z",
  "films": [
    "https://swapi.build/api/films/1",
    "https://swapi.build/api/films/2",
    "https://swapi.build/api/films/3"
  ],
  "hyperdrive_rating": "1.0",
  "length": "14",
  "manufacturer": "Koensayr Manufacturing",
  "max_atmosphering_speed": "1000km",
  "model": "BTL Y-wing",
  "name": "Y-wing",
  "passengers": "0",
  "pilots": [],
  "starship_class": "assault starfighter",
  "url": "https://swapi.build/api/starships/11"
}