API endpoint that returns all Launch objects or a single launch.

EXAMPLE - /launch/<id>/ or /launch/?mode=list&search=SpaceX

GET:
Return a list of all Launch objects.

FILTERS:
Fields - 'name', 'id(s)', 'lsp_id', 'lsp_name', 'serial_number', 'launcher_config__id',
'rocket__spacecraftflight__spacecraft__name'

MODE:
'normal', 'list', 'detailed'
EXAMPLE: ?mode=list

SEARCH:
Searches through the launch name, rocket name, launch agency, mission name & spacecraft name.
EXAMPLE - ?search=SpaceX

GET /2.0.0/launch/bcab98e3-3650-4733-9d32-47d5870a2151/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "id": "bcab98e3-3650-4733-9d32-47d5870a2151",
    "url": "https://ll.thespacedevs.com/2.0.0/launch/bcab98e3-3650-4733-9d32-47d5870a2151/?format=api",
    "launch_library_id": null,
    "slug": "falcon-9-block-5-nrol-146",
    "name": "Falcon 9 Block 5 | NROL-146",
    "status": {
        "id": 1,
        "name": "Go"
    },
    "net": "2024-05-19T07:22:00Z",
    "window_end": "2024-05-19T11:51:00Z",
    "window_start": "2024-05-19T07:22:00Z",
    "inhold": false,
    "tbdtime": false,
    "tbddate": false,
    "probability": null,
    "holdreason": "",
    "failreason": "",
    "hashtag": null,
    "launch_service_provider": {
        "id": 121,
        "url": "https://ll.thespacedevs.com/2.0.0/agencies/121/?format=api",
        "name": "SpaceX",
        "featured": true,
        "type": "Commercial",
        "country_code": "USA",
        "abbrev": "SpX",
        "description": "Space Exploration Technologies Corp., known as SpaceX, is an American aerospace manufacturer and space transport services company headquartered in Hawthorne, California. It was founded in 2002 by entrepreneur Elon Musk with the goal of reducing space transportation costs and enabling the colonization of Mars. SpaceX operates from many pads, on the East Coast of the US they operate from SLC-40 at Cape Canaveral Space Force Station and historic LC-39A at Kennedy Space Center. They also operate from SLC-4E at Vandenberg Space Force Base, California, usually for polar launches. Another launch site is being developed at Boca Chica, Texas.",
        "administrator": "CEO: Elon Musk",
        "founding_year": "2002",
        "launchers": "Falcon | Starship",
        "spacecraft": "Dragon",
        "launch_library_url": null,
        "total_launch_count": 363,
        "consecutive_successful_launches": 64,
        "successful_launches": 352,
        "failed_launches": 11,
        "pending_launches": 135,
        "consecutive_successful_landings": 26,
        "successful_landings": 314,
        "failed_landings": 24,
        "attempted_landings": 337,
        "info_url": "http://www.spacex.com/",
        "wiki_url": "http://en.wikipedia.org/wiki/SpaceX",
        "logo_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/spacex_logo_20220826094919.png",
        "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/spacex_image_20190207032501.jpeg",
        "nation_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/spacex_nation_20230531064544.jpg"
    },
    "rocket": {
        "id": 8232,
        "configuration": {
            "id": 164,
            "launch_library_id": 188,
            "url": "https://ll.thespacedevs.com/2.0.0/config/launcher/164/?format=api",
            "name": "Falcon 9",
            "description": "Falcon 9 is a two-stage rocket designed and manufactured by SpaceX for the reliable and safe transport of satellites and the Dragon spacecraft into orbit. The Block 5 variant is the fifth major interval aimed at improving upon the ability for rapid reusability.",
            "family": "Falcon",
            "full_name": "Falcon 9 Block 5",
            "manufacturer": {
                "id": 121,
                "url": "https://ll.thespacedevs.com/2.0.0/agencies/121/?format=api",
                "name": "SpaceX",
                "featured": true,
                "type": "Commercial",
                "country_code": "USA",
                "abbrev": "SpX",
                "description": "Space Exploration Technologies Corp., known as SpaceX, is an American aerospace manufacturer and space transport services company headquartered in Hawthorne, California. It was founded in 2002 by entrepreneur Elon Musk with the goal of reducing space transportation costs and enabling the colonization of Mars. SpaceX operates from many pads, on the East Coast of the US they operate from SLC-40 at Cape Canaveral Space Force Station and historic LC-39A at Kennedy Space Center. They also operate from SLC-4E at Vandenberg Space Force Base, California, usually for polar launches. Another launch site is being developed at Boca Chica, Texas.",
                "administrator": "CEO: Elon Musk",
                "founding_year": "2002",
                "launchers": "Falcon | Starship",
                "spacecraft": "Dragon",
                "launch_library_url": null,
                "total_launch_count": 363,
                "consecutive_successful_launches": 64,
                "successful_launches": 352,
                "failed_launches": 11,
                "pending_launches": 135,
                "consecutive_successful_landings": 26,
                "successful_landings": 314,
                "failed_landings": 24,
                "attempted_landings": 337,
                "info_url": "http://www.spacex.com/",
                "wiki_url": "http://en.wikipedia.org/wiki/SpaceX",
                "logo_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/spacex_logo_20220826094919.png",
                "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/spacex_image_20190207032501.jpeg",
                "nation_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/spacex_nation_20230531064544.jpg"
            },
            "program": [
                {
                    "id": 11,
                    "url": "https://ll.thespacedevs.com/2.0.0/program/11/?format=api",
                    "name": "Commercial Resupply Services",
                    "description": "Commercial Resupply Services (CRS) are a series of flights awarded by NASA for the delivery of cargo and supplies to the International Space Station.The first CRS contracts were signed in 2008 and awarded $1.6 billion to SpaceX for twelve cargo Dragon and $1.9 billion to Orbital Sciences for eight Cygnus flights, covering deliveries to 2016. The Falcon 9 and Antares rockets were also developed under the CRS program to deliver cargo spacecraft to the ISS.",
                    "agencies": [
                        {
                            "id": 44,
                            "url": "https://ll.thespacedevs.com/2.0.0/agencies/44/?format=api",
                            "name": "National Aeronautics and Space Administration",
                            "type": "Government"
                        },
                        {
                            "id": 257,
                            "url": "https://ll.thespacedevs.com/2.0.0/agencies/257/?format=api",
                            "name": "Northrop Grumman Space Systems",
                            "type": "Commercial"
                        },
                        {
                            "id": 1020,
                            "url": "https://ll.thespacedevs.com/2.0.0/agencies/1020/?format=api",
                            "name": "Sierra Nevada Corporation",
                            "type": "Commercial"
                        },
                        {
                            "id": 121,
                            "url": "https://ll.thespacedevs.com/2.0.0/agencies/121/?format=api",
                            "name": "SpaceX",
                            "type": "Commercial"
                        }
                    ],
                    "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/commercial2520_program_20201129212219.png",
                    "start_date": "2008-12-23T00:00:00Z",
                    "end_date": null,
                    "info_url": null,
                    "wiki_url": "https://en.wikipedia.org/wiki/Commercial_Resupply_Services#Commercial_Resupply_Services"
                },
                {
                    "id": 5,
                    "url": "https://ll.thespacedevs.com/2.0.0/program/5/?format=api",
                    "name": "Commercial Crew Program",
                    "description": "The Commercial Crew Program (CCP) is a human spaceflight program operated by NASA, in association with American aerospace manufacturers Boeing and SpaceX. The program conducts rotations between the expeditions of the International Space Station program, transporting crews to and from the International Space Station (ISS) aboard Boeing Starliner and SpaceX Crew Dragon capsules, in the first crewed orbital spaceflights operated by private companies.",
                    "agencies": [
                        {
                            "id": 80,
                            "url": "https://ll.thespacedevs.com/2.0.0/agencies/80/?format=api",
                            "name": "Boeing",
                            "type": "Commercial"
                        },
                        {
                            "id": 44,
                            "url": "https://ll.thespacedevs.com/2.0.0/agencies/44/?format=api",
                            "name": "National Aeronautics and Space Administration",
                            "type": "Government"
                        },
                        {
                            "id": 121,
                            "url": "https://ll.thespacedevs.com/2.0.0/agencies/121/?format=api",
                            "name": "SpaceX",
                            "type": "Commercial"
                        }
                    ],
                    "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/commercial2520_program_20200820201209.png",
                    "start_date": "2011-04-18T00:00:00Z",
                    "end_date": null,
                    "info_url": "https://www.nasa.gov/exploration/commercial/crew/index.html",
                    "wiki_url": "https://en.wikipedia.org/wiki/Commercial_Crew_Program"
                }
            ],
            "variant": "Block 5",
            "alias": "",
            "min_stage": 1,
            "max_stage": 2,
            "length": 70.0,
            "diameter": 3.65,
            "maiden_flight": "2018-05-11",
            "launch_mass": 549,
            "leo_capacity": 22800,
            "gto_capacity": 8300,
            "to_thrust": 7607,
            "apogee": 200,
            "vehicle_range": null,
            "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/falcon_9_image_20230807133459.jpeg",
            "info_url": "https://www.spacex.com/vehicles/falcon-9/",
            "wiki_url": "https://en.wikipedia.org/wiki/Falcon_9",
            "total_launch_count": 280,
            "consecutive_successful_launches": 280,
            "successful_launches": 280,
            "failed_launches": 0,
            "pending_launches": 124
        },
        "launcher_stage": [
            {
                "id": 529,
                "type": "Core",
                "reused": null,
                "launcher_flight_number": null,
                "launcher": {
                    "id": 106,
                    "url": "https://ll.thespacedevs.com/2.0.0/launcher/106/?format=api",
                    "details": "Booster serial number unknown.",
                    "flight_proven": false,
                    "serial_number": "Unknown F9",
                    "status": "N/A",
                    "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/106_image_20230708172214.png",
                    "successful_landings": null,
                    "attempted_landings": null,
                    "flights": null,
                    "last_launch_date": null,
                    "first_launch_date": null
                },
                "landing": {
                    "id": 1365,
                    "attempt": true,
                    "success": null,
                    "description": "The Falcon 9 first stage will land on ASDS OCISLY after its flight.",
                    "location": {
                        "id": 1,
                        "name": "Of Course I Still Love You",
                        "abbrev": "OCISLY",
                        "description": "The second ASDS barge, Of Course I Still Love You (OCISLY) services launches in the Pacific Ocean and was the site of the first landing of a SpaceX Falcon 9 first stage during CRS-8, the launch of a Dragon spacecraft to the International Space Station.",
                        "location": null,
                        "successful_landings": 90
                    },
                    "type": {
                        "id": 1,
                        "name": "Autonomous Spaceport Drone Ship",
                        "abbrev": "ASDS",
                        "description": "An autonomous spaceport drone ship (ASDS) is an ocean-going vessel derived from a deck barge, outfitted with station-keeping engines and a large landing platform. Construction of such ships was commissioned by aerospace company SpaceX to allow for recovery of rocket first-stages at sea for high-velocity missions which do not carry enough fuel to return to the launch site after lofting spacecraft onto an orbital trajectory."
                    }
                },
                "previous_flight_date": null,
                "turn_around_time_days": null,
                "previous_flight": null
            }
        ],
        "spacecraft_stage": null
    },
    "mission": {
        "id": 6809,
        "launch_library_id": null,
        "name": "NROL-146",
        "description": "First batch of satellites for a reconnaissance satellite constellation built by SpaceX and Northrop Grumman for the National Reconnaissance Office to provide imaging and other reconnaissance capabilities.",
        "launch_designator": null,
        "type": "Government/Top Secret",
        "orbit": {
            "id": 25,
            "name": "Unknown",
            "abbrev": "N/A"
        }
    },
    "pad": {
        "id": 16,
        "url": "https://ll.thespacedevs.com/2.0.0/pad/16/?format=api",
        "agency_id": null,
        "name": "Space Launch Complex 4E",
        "info_url": null,
        "wiki_url": "https://en.wikipedia.org/wiki/Vandenberg_Space_Launch_Complex_4#SLC-4E",
        "map_url": "https://www.google.com/maps?q=34.632,-120.611",
        "latitude": "34.632",
        "longitude": "-120.611",
        "location": {
            "id": 11,
            "url": "https://ll.thespacedevs.com/2.0.0/location/11/?format=api",
            "name": "Vandenberg SFB, CA, USA",
            "country_code": "USA",
            "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/location_11_20200803142416.jpg",
            "total_launch_count": 755,
            "total_landing_count": 18
        },
        "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/pad_16_20200803143532.jpg",
        "total_launch_count": 144
    },
    "infoURLs": [],
    "vidURLs": [],
    "webcast_live": false,
    "image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/falcon_9_image_20230807133459.jpeg",
    "infographic": null,
    "program": [],
    "orbital_launch_attempt_count": 6673,
    "location_launch_attempt_count": 756,
    "pad_launch_attempt_count": 145,
    "agency_launch_attempt_count": 364,
    "orbital_launch_attempt_count_year": 95,
    "location_launch_attempt_count_year": 17,
    "pad_launch_attempt_count_year": 17,
    "agency_launch_attempt_count_year": 53
}