API endpoint that allows Spacecrafts to be viewed. A Spacecraft is a physically manufactured instance of a Spacecraft Configuration

GET: Return a list of all the existing spacecraft.

FILTERS: Parameters - 'name', 'status', 'spacecraft_config', 'is_placeholder', 'in_space' Example - /2.2.0/spacecraft/?in_space=true

SEARCH EXAMPLE: Example - /2.2.0/spacecraft/?search=Dragon

ORDERING: Fields - 'id', 'time_in_space', 'time_docked', 'flights_count', 'mission_ends_count' Example - /2.2.0/spacecraft/?ordering=id

GET /2.2.0/spacecraft/?format=api&offset=610&ordering=-flights_count
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
  "count": 612,
  "next": null,
  "previous": "https://lldev.thespacedevs.com/2.2.0/spacecraft/?format=api&limit=10&offset=600&ordering=-flights_count",
  "results": [
    {
      "id": 603,
      "url": "https://lldev.thespacedevs.com/2.2.0/spacecraft/603/?format=api",
      "name": "Space Rider",
      "serial_number": null,
      "is_placeholder": false,
      "in_space": false,
      "time_in_space": "P0D",
      "time_docked": "P0D",
      "flights_count": 0,
      "mission_ends_count": 0,
      "status": {
        "id": 5,
        "name": "Under construction"
      },
      "description": "European reusable spaceplane",
      "spacecraft_config": {
        "id": 44,
        "url": "https://lldev.thespacedevs.com/2.2.0/config/spacecraft/44/?format=api",
        "name": "Space Rider",
        "type": {
          "id": 3,
          "name": "Spaceplane"
        },
        "agency": {
          "id": 27,
          "url": "https://lldev.thespacedevs.com/2.2.0/agencies/27/?format=api",
          "name": "European Space Agency",
          "type": "Multinational"
        },
        "in_use": false,
        "image_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/space_rider_in__image_20241109112332.png"
      }
    },
    {
      "id": 470,
      "url": "https://lldev.thespacedevs.com/2.2.0/spacecraft/470/?format=api",
      "name": "Ship 20",
      "serial_number": "S20",
      "is_placeholder": false,
      "in_space": false,
      "time_in_space": "P0D",
      "time_docked": "P0D",
      "flights_count": 0,
      "mission_ends_count": 0,
      "status": {
        "id": 2,
        "name": "Retired"
      },
      "description": "Used for ground testing alongside Booster 4. Ship 20 is now on display at the Starbase Rocket Garden.",
      "spacecraft_config": {
        "id": 26,
        "url": "https://lldev.thespacedevs.com/2.2.0/config/spacecraft/26/?format=api",
        "name": "Starship V1",
        "type": {
          "id": 6,
          "name": "Reuseable Upper Stage"
        },
        "agency": {
          "id": 121,
          "url": "https://lldev.thespacedevs.com/2.2.0/agencies/121/?format=api",
          "name": "SpaceX",
          "type": "Commercial"
        },
        "in_use": false,
        "image_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/starship_image_20231116184708.jpeg"
      }
    }
  ]
}