SpaceX API Ships API

SpaceX fleet ship data

Operations 2

GET /ships List All Ships #
GET /ships/{id} Get Ship #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spacex-api-ships-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

spacex-api-ships-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SpaceX Capsules Ships API
  description: The SpaceX API is an open-source REST API providing comprehensive data about SpaceX missions, rockets, capsules, cores, crew, launchpads, landing pads, payloads, ships, and the Starlink satellite constellation. It covers all past and upcoming launches with detailed mission data. No authentication is required.
  version: 5.0.0
  contact:
    name: SpaceX API Community
    url: https://github.com/r-spacex/SpaceX-API
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://api.spacexdata.com/v5
  description: SpaceX API v5 production server
tags:
- name: Ships
  description: SpaceX fleet ship data
paths:
  /ships:
    get:
      operationId: listShips
      summary: List All Ships
      description: Returns all SpaceX fleet vessels including drone ships, fairing recovery vessels, and crew ships
      tags:
      - Ships
      responses:
        '200':
          description: Array of ship objects
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Ship'
  /ships/{id}:
    get:
      operationId: getShip
      summary: Get Ship
      description: Returns a single ship by its unique ID
      tags:
      - Ships
      parameters:
      - name: id
        in: path
        description: Unique ship identifier
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Ship object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ship'
components:
  schemas:
    Ship:
      type: object
      description: A SpaceX fleet vessel
      properties:
        id:
          type: string
          description: Unique ship identifier
        name:
          type: string
          description: Ship name
        legacy_id:
          type:
          - string
          - 'null'
          description: Legacy identifier from previous API versions
        model:
          type:
          - string
          - 'null'
          description: Ship model/class
        type:
          type: string
          description: Ship type (Drone Ship, Crew Ship, Support, Tug, Barge)
        roles:
          type: array
          description: Ship operational roles
          items:
            type: string
        active:
          type: boolean
          description: Whether ship is currently active
        imo:
          type:
          - integer
          - 'null'
          description: IMO vessel number
        mmsi:
          type:
          - integer
          - 'null'
          description: MMSI maritime identifier
        abs:
          type:
          - integer
          - 'null'
          description: ABS vessel number
        class:
          type:
          - integer
          - 'null'
          description: Ship class code
        mass_kg:
          type:
          - number
          - 'null'
          description: Ship mass in kilograms
        mass_lbs:
          type:
          - number
          - 'null'
          description: Ship mass in pounds
        year_built:
          type:
          - integer
          - 'null'
          description: Year the ship was built
        home_port:
          type: string
          description: Home port location
        status:
          type:
          - string
          - 'null'
          description: Current operational status
        speed_kn:
          type:
          - number
          - 'null'
          description: Current speed in knots
        course_deg:
          type:
          - number
          - 'null'
          description: Current course in degrees
        latitude:
          type:
          - number
          - 'null'
          description: Current latitude
        longitude:
          type:
          - number
          - 'null'
          description: Current longitude
        link:
          type:
          - string
          - 'null'
          format: uri
          description: MarineTraffic or vessel tracking link
        image:
          type:
          - string
          - 'null'
          format: uri
          description: Ship image URL
        launches:
          type: array
          description: Launch IDs this ship supported
          items:
            type: string
externalDocs:
  description: SpaceX API GitHub Repository
  url: https://github.com/r-spacex/SpaceX-API