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/540/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "id": 540,
    "url": "https://ll.thespacedevs.com/2.2.0/spacecraft/540/?format=api",
    "name": "Orion 003",
    "serial_number": "003",
    "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 2.",
    "spacecraft_config": {
        "id": 4,
        "url": "https://ll.thespacedevs.com/2.2.0/config/spacecraft/4/?format=api",
        "name": "Orion",
        "type": {
            "id": 2,
            "name": "Capsule"
        },
        "agency": {
            "id": 44,
            "url": "https://ll.thespacedevs.com/2.2.0/agencies/44/?format=api",
            "name": "National Aeronautics and Space Administration",
            "featured": true,
            "type": "Government",
            "country_code": "USA",
            "abbrev": "NASA",
            "description": "The National Aeronautics and Space Administration is an independent agency of the executive branch of the United States federal government responsible for the civilian space program, as well as aeronautics and aerospace research. NASA have many launch facilities but most are inactive. The most commonly used pad will be LC-39B at Kennedy Space Center in Florida.",
            "administrator": "Administrator: Bill Nelson",
            "founding_year": "1958",
            "launchers": "Space Shuttle | SLS",
            "spacecraft": "Orion",
            "parent": null,
            "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/national2520aeronautics2520and2520space2520administration_image_20190207032448.jpeg",
            "logo_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/logo/national2520aeronautics2520and2520space2520administration_logo_20190207032448.png"
        },
        "in_use": true,
        "capability": "Lunar Missions.",
        "history": "The Orion Multi-Purpose Crew Vehicle (Orion MPCV) is an American spacecraft intended to carry a crew of four astronauts to destinations at or beyond low Earth orbit (LEO). Currently under development by NASA for launch on the Space Launch System, Orion is intended to facilitate human exploration of asteroids and of Mars, as well as to provide a means of delivering or retrieving crew or supplies from the ISS if needed.",
        "details": "The Orion MPCV takes basic design elements from the Apollo Command Module that took astronauts to the moon, but its technology and capability are more advanced. It is designed to support long-duration deep space missions, with up to 21 days active crew time plus 6 months quiescent. During the quiescent period crew life support would be provided by another module such as a Deep Space Habitat. The spacecraft's life support, propulsion, thermal protection and avionics systems are designed to be upgradeable as new technologies become available. nn The MPCV spacecraft includes both crew and service modules, and a spacecraft adaptor. The MPCV's crew module is larger than Apollo's and can support more crew members for short or long-duration missions. The service module fuels and propels the spacecraft as well as storing oxygen and water for astronauts. The service module's structure is also being designed to provide locations to mount scientific experiments and cargo.",
        "maiden_flight": "2022-11-16",
        "height": 3.3,
        "diameter": 5.03,
        "human_rated": true,
        "crew_capacity": 4,
        "payload_capacity": 100,
        "payload_return_capacity": null,
        "flight_life": "21.1 days",
        "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/orion_image_20231118102035.jpeg",
        "nation_url": null,
        "wiki_link": "https://en.wikipedia.org/wiki/Orion_(spacecraft)",
        "info_link": ""
    },
    "flights": [
        {
            "id": 759,
            "url": "https://ll.thespacedevs.com/2.2.0/spacecraft/flight/759/?format=api",
            "destination": "Circumlunar flyby",
            "mission_end": null,
            "spacecraft": {
                "id": 540,
                "url": "https://ll.thespacedevs.com/2.2.0/spacecraft/540/?format=api",
                "name": "Orion 003",
                "serial_number": "003",
                "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 2.",
                "spacecraft_config": {
                    "id": 4,
                    "url": "https://ll.thespacedevs.com/2.2.0/config/spacecraft/4/?format=api",
                    "name": "Orion",
                    "type": {
                        "id": 2,
                        "name": "Capsule"
                    },
                    "agency": {
                        "id": 44,
                        "url": "https://ll.thespacedevs.com/2.2.0/agencies/44/?format=api",
                        "name": "National Aeronautics and Space Administration",
                        "type": "Government"
                    },
                    "in_use": true,
                    "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/orion_image_20231118102035.jpeg"
                }
            },
            "launch": {
                "id": "41699701-2ef4-4b0c-ac9d-6757820cde87",
                "url": "https://ll.thespacedevs.com/2.2.0/launch/41699701-2ef4-4b0c-ac9d-6757820cde87/?format=api",
                "slug": "sls-block-1-artemis-ii",
                "name": "SLS Block 1 | Artemis II",
                "status": {
                    "id": 2,
                    "name": "To Be Determined",
                    "abbrev": "TBD",
                    "description": "Current date is a placeholder or rough estimation based on unreliable or interpreted sources."
                },
                "last_updated": "2024-01-09T18:53:11Z",
                "net": "2025-09-30T00:00:00Z",
                "window_end": "2025-09-30T00:00:00Z",
                "window_start": "2025-09-30T00:00:00Z",
                "net_precision": {
                    "id": 7,
                    "name": "Month",
                    "abbrev": "M",
                    "description": "The T-0 is expected in the given month."
                },
                "probability": null,
                "weather_concerns": null,
                "holdreason": "",
                "failreason": "",
                "hashtag": null,
                "launch_service_provider": {
                    "id": 44,
                    "url": "https://ll.thespacedevs.com/2.2.0/agencies/44/?format=api",
                    "name": "National Aeronautics and Space Administration",
                    "type": "Government"
                },
                "rocket": {
                    "id": 187,
                    "configuration": {
                        "id": 143,
                        "url": "https://ll.thespacedevs.com/2.2.0/config/launcher/143/?format=api",
                        "name": "Space Launch System (SLS)",
                        "family": "Space Launch System",
                        "full_name": "Space Launch System Block 1",
                        "variant": "Block 1"
                    }
                },
                "mission": {
                    "id": 6343,
                    "name": "Artemis II",
                    "description": "Artemis II is the first crewed mission as part of the Artemis program. Artemis II will send a crew of 4 - 3 Americans and 1 Canadian around the moon and return them back to Earth.\r\n\r\nThe mission will test the core systems of NASA's Orion spacecraft including the critical life support system, among other systems which could not be tested during Artemis I due to the lack of crew onboard.",
                    "launch_designator": null,
                    "type": "Human Exploration",
                    "orbit": {
                        "id": 9,
                        "name": "Lunar flyby",
                        "abbrev": "Lunar flyby"
                    },
                    "agencies": [],
                    "info_urls": [],
                    "vid_urls": []
                },
                "pad": {
                    "id": 4,
                    "url": "https://ll.thespacedevs.com/2.2.0/pad/4/?format=api",
                    "agency_id": 44,
                    "name": "Launch Complex 39B",
                    "description": null,
                    "info_url": null,
                    "wiki_url": "https://en.wikipedia.org/wiki/Kennedy_Space_Center_Launch_Complex_39#Launch_Pad_39B",
                    "map_url": "https://www.google.com/maps?q=28.62711233,-80.62101503",
                    "latitude": "28.62711233",
                    "longitude": "-80.62101503",
                    "location": {
                        "id": 27,
                        "url": "https://ll.thespacedevs.com/2.2.0/location/27/?format=api",
                        "name": "Kennedy Space Center, FL, USA",
                        "country_code": "USA",
                        "description": "",
                        "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/location_27_20200803142447.jpg",
                        "timezone_name": "America/New_York",
                        "total_launch_count": 236,
                        "total_landing_count": 0
                    },
                    "country_code": "USA",
                    "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/pad_4_20200803143518.jpg",
                    "total_launch_count": 58,
                    "orbital_launch_attempt_count": 57
                },
                "webcast_live": false,
                "image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/space_launch_sy_image_20220331082429.jpeg",
                "infographic": null,
                "program": [
                    {
                        "id": 15,
                        "url": "https://ll.thespacedevs.com/2.2.0/program/15/?format=api",
                        "name": "Artemis",
                        "description": "The Artemis program is a US government-funded crewed spaceflight program that has the goal of landing \"the first woman and the next man\" on the Moon, specifically at the lunar south pole region by 2024.",
                        "agencies": [
                            {
                                "id": 44,
                                "url": "https://ll.thespacedevs.com/2.2.0/agencies/44/?format=api",
                                "name": "National Aeronautics and Space Administration",
                                "type": "Government"
                            }
                        ],
                        "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/artemis_program_20220827100930.png",
                        "start_date": "2017-12-11T00:00:00Z",
                        "end_date": null,
                        "info_url": "https://www.nasa.gov/specials/artemis/",
                        "wiki_url": "https://en.wikipedia.org/wiki/Artemis_program",
                        "mission_patches": [],
                        "type": {
                            "id": 2,
                            "name": "Human Spaceflight"
                        }
                    }
                ],
                "orbital_launch_attempt_count": 6839,
                "location_launch_attempt_count": 245,
                "pad_launch_attempt_count": 59,
                "agency_launch_attempt_count": 136,
                "orbital_launch_attempt_count_year": 27,
                "location_launch_attempt_count_year": 1,
                "pad_launch_attempt_count_year": 1,
                "agency_launch_attempt_count_year": 1,
                "type": "normal"
            },
            "landing": {
                "id": 499,
                "attempt": true,
                "success": null,
                "description": "The Orion spacecraft will splash down in the Pacific Ocean.",
                "downrange_distance": null,
                "location": {
                    "id": 18,
                    "name": "Pacific Ocean",
                    "abbrev": "PAC",
                    "description": "Pacific Ocean",
                    "location": null,
                    "successful_landings": 3
                },
                "type": {
                    "id": 4,
                    "name": "Parachute Landing",
                    "abbrev": "PL",
                    "description": "Unpowered landing using parachute(s)."
                }
            }
        }
    ]
}