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=600&ordering=-flights_count
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
  "count": 603,
  "next": null,
  "previous": "https://lldev.thespacedevs.com/2.2.0/spacecraft/?format=api&limit=10&offset=590&ordering=-flights_count",
  "results": [
    {
      "id": 541,
      "url": "https://lldev.thespacedevs.com/2.2.0/spacecraft/541/?format=api",
      "name": "Orion 004",
      "serial_number": "004",
      "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": "Orion spacecraft used for Artemis 3.",
      "spacecraft_config": {
        "id": 4,
        "url": "https://lldev.thespacedevs.com/2.2.0/config/spacecraft/4/?format=api",
        "name": "Orion",
        "type": {
          "id": 2,
          "name": "Capsule"
        },
        "agency": {
          "id": 44,
          "url": "https://lldev.thespacedevs.com/2.2.0/agencies/44/?format=api",
          "name": "National Aeronautics and Space Administration",
          "type": "Government"
        },
        "in_use": true,
        "image_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/orion_image_20231118102035.jpeg"
      }
    },
    {
      "id": 626,
      "url": "https://lldev.thespacedevs.com/2.2.0/spacecraft/626/?format=api",
      "name": "Cygnus CRS NG-24 (S.S. Steven R. Nagel)",
      "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": 4,
        "name": "Single Use"
      },
      "description": "This is the twenty-third flight to the ISS by the Cygnus spacecraft under the CRS program and their 12th under the CRS-2 program. This is also the 19th use of the enhanced size Cygnus.",
      "spacecraft_config": {
        "id": 19,
        "url": "https://lldev.thespacedevs.com/2.2.0/config/spacecraft/19/?format=api",
        "name": "Cygnus Enhanced",
        "type": {
          "id": 4,
          "name": "Cargo Resupply"
        },
        "agency": {
          "id": 257,
          "url": "https://lldev.thespacedevs.com/2.2.0/agencies/257/?format=api",
          "name": "Northrop Grumman Space Systems",
          "type": "Commercial"
        },
        "in_use": true,
        "image_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/cygnus2520enhanced_image_20190207032513.jpeg"
      }
    },
    {
      "id": 549,
      "url": "https://lldev.thespacedevs.com/2.2.0/spacecraft/549/?format=api",
      "name": "Gaganyaan H1",
      "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": 4,
        "name": "Single Use"
      },
      "description": "Fourth operational Gaganyaan capsule. First one to carry crew.",
      "spacecraft_config": {
        "id": 29,
        "url": "https://lldev.thespacedevs.com/2.2.0/config/spacecraft/29/?format=api",
        "name": "Gaganyaan",
        "type": {
          "id": 2,
          "name": "Capsule"
        },
        "agency": {
          "id": 1031,
          "url": "https://lldev.thespacedevs.com/2.2.0/agencies/1031/?format=api",
          "name": "Hindustan Aeronautics Limited",
          "type": "Government"
        },
        "in_use": true,
        "image_url": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/images/gaganyaan_image_20231021132705.jpeg"
      }
    }
  ]
}