← Starships

A-wing

ModelRZ-1 A-wing Interceptor
ManufacturerAlliance Underground Engineering, Incom Corporation
Cost in credits175000
Length9.6
Max atmosphering speed1300
Crew1
Passengers0
Cargo capacity40
Consumables1 week
Hyperdrive rating1.0
MGLT120
Starship classStarfighter

Pilots

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/starships/28').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":28}
GET /api/starships/28 200
{
  "MGLT": "120",
  "cargo_capacity": "40",
  "consumables": "1 week",
  "cost_in_credits": "175000",
  "created": "2014-12-18T11:16:34.542000Z",
  "crew": "1",
  "edited": "2014-12-20T21:23:49.907000Z",
  "films": [
    "https://swapi.build/api/films/3"
  ],
  "hyperdrive_rating": "1.0",
  "length": "9.6",
  "manufacturer": "Alliance Underground Engineering, Incom Corporation",
  "max_atmosphering_speed": "1300",
  "model": "RZ-1 A-wing Interceptor",
  "name": "A-wing",
  "passengers": "0",
  "pilots": [
    "https://swapi.build/api/people/29"
  ],
  "starship_class": "Starfighter",
  "url": "https://swapi.build/api/starships/28"
}