← Starships

Republic Cruiser

ModelConsular-class cruiser
ManufacturerCorellian Engineering Corporation
Cost in creditsunknown
Length115
Max atmosphering speed900
Crew9
Passengers16
Cargo capacityunknown
Consumablesunknown
Hyperdrive rating2.0
MGLTunknown
Starship classSpace cruiser

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/starships/31').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":31}
GET /api/starships/31 200
{
  "MGLT": "unknown",
  "cargo_capacity": "unknown",
  "consumables": "unknown",
  "cost_in_credits": "unknown",
  "created": "2014-12-19T17:01:31.488000Z",
  "crew": "9",
  "edited": "2014-12-20T21:23:49.912000Z",
  "films": [
    "https://swapi.build/api/films/4"
  ],
  "hyperdrive_rating": "2.0",
  "length": "115",
  "manufacturer": "Corellian Engineering Corporation",
  "max_atmosphering_speed": "900",
  "model": "Consular-class cruiser",
  "name": "Republic Cruiser",
  "passengers": "16",
  "pilots": [],
  "starship_class": "Space cruiser",
  "url": "https://swapi.build/api/starships/31"
}