← Starships

X-wing

ModelT-65 X-wing
ManufacturerIncom Corporation
Cost in credits149999
Length12.5
Max atmosphering speed1050
Crew1
Passengers0
Cargo capacity110
Consumables1 week
Hyperdrive rating1.0
MGLT100
Starship classStarfighter

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/starships/12').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":12}
GET /api/starships/12 200
{
  "MGLT": "100",
  "cargo_capacity": "110",
  "consumables": "1 week",
  "cost_in_credits": "149999",
  "created": "2014-12-12T11:19:05.340000Z",
  "crew": "1",
  "edited": "2014-12-20T21:23:49.886000Z",
  "films": [
    "https://swapi.build/api/films/1",
    "https://swapi.build/api/films/2",
    "https://swapi.build/api/films/3"
  ],
  "hyperdrive_rating": "1.0",
  "length": "12.5",
  "manufacturer": "Incom Corporation",
  "max_atmosphering_speed": "1050",
  "model": "T-65 X-wing",
  "name": "X-wing",
  "passengers": "0",
  "pilots": [
    "https://swapi.build/api/people/1",
    "https://swapi.build/api/people/9",
    "https://swapi.build/api/people/18",
    "https://swapi.build/api/people/19"
  ],
  "starship_class": "Starfighter",
  "url": "https://swapi.build/api/starships/12"
}