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/724dd8ce-78ec-4dad-b17c-ff66c257fab7/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "id": "724dd8ce-78ec-4dad-b17c-ff66c257fab7",
    "url": "https://ll.thespacedevs.com/2.0.0/launch/724dd8ce-78ec-4dad-b17c-ff66c257fab7/?format=api",
    "launch_library_id": 1943,
    "slug": "sls-block-1b-artemis-vii",
    "name": "SLS Block 1B | Artemis VII",
    "status": {
        "id": 2,
        "name": "TBD"
    },
    "net": "2031-09-30T00:00:00Z",
    "window_end": "2031-09-30T00:00:00Z",
    "window_start": "2031-09-30T00:00:00Z",
    "inhold": false,
    "tbdtime": false,
    "tbddate": false,
    "probability": -1,
    "holdreason": "",
    "failreason": "",
    "hashtag": null,
    "launch_service_provider": {
        "id": 44,
        "url": "https://ll.thespacedevs.com/2.0.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",
        "launch_library_url": null,
        "total_launch_count": 135,
        "consecutive_successful_launches": 11,
        "successful_launches": 115,
        "failed_launches": 20,
        "pending_launches": 6,
        "consecutive_successful_landings": 0,
        "successful_landings": 0,
        "failed_landings": 0,
        "attempted_landings": 0,
        "info_url": "http://www.nasa.gov",
        "wiki_url": "http://en.wikipedia.org/wiki/National_Aeronautics_and_Space_Administration",
        "logo_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/national2520aeronautics2520and2520space2520administration_logo_20190207032448.png",
        "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/national2520aeronautics2520and2520space2520administration_image_20190207032448.jpeg",
        "nation_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/national2520aeronautics2520and2520space2520administration_nation_20230803040809.jpg"
    },
    "rocket": {
        "id": 2548,
        "configuration": {
            "id": 205,
            "launch_library_id": 236,
            "url": "https://ll.thespacedevs.com/2.0.0/config/launcher/205/?format=api",
            "name": "Space Launch System (SLS)",
            "description": "The Space Launch System (SLS) is an American Space Shuttle-derived heavy expendable launch vehicle. It is part of NASA's deep space exploration plans including as the main launch vehicle of the Artemis program. SLS follows the cancellation of the Constellation program, and is to replace the retired Space Shuttle.",
            "family": "Space Launch System",
            "full_name": "Space Launch System Block 1B",
            "manufacturer": {
                "id": 44,
                "url": "https://ll.thespacedevs.com/2.0.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",
                "launch_library_url": null,
                "total_launch_count": 135,
                "consecutive_successful_launches": 11,
                "successful_launches": 115,
                "failed_launches": 20,
                "pending_launches": 6,
                "consecutive_successful_landings": 0,
                "successful_landings": 0,
                "failed_landings": 0,
                "attempted_landings": 0,
                "info_url": "http://www.nasa.gov",
                "wiki_url": "http://en.wikipedia.org/wiki/National_Aeronautics_and_Space_Administration",
                "logo_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/national2520aeronautics2520and2520space2520administration_logo_20190207032448.png",
                "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/national2520aeronautics2520and2520space2520administration_image_20190207032448.jpeg",
                "nation_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/national2520aeronautics2520and2520space2520administration_nation_20230803040809.jpg"
            },
            "program": [
                {
                    "id": 15,
                    "url": "https://ll.thespacedevs.com/2.0.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.0.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"
                }
            ],
            "variant": "Block 1B",
            "alias": "",
            "min_stage": 2,
            "max_stage": 2,
            "length": 111.0,
            "diameter": 8.4,
            "maiden_flight": null,
            "launch_mass": 2948,
            "leo_capacity": 105000,
            "gto_capacity": null,
            "to_thrust": 39000,
            "apogee": null,
            "vehicle_range": null,
            "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/sls_block_1b_image_20200905100013.jpeg",
            "info_url": "https://www.nasa.gov/exploration/systems/sls/fs/sls.html",
            "wiki_url": "https://en.wikipedia.org/wiki/Space_Launch_System",
            "total_launch_count": 0,
            "consecutive_successful_launches": 0,
            "successful_launches": 0,
            "failed_launches": 0,
            "pending_launches": 4
        },
        "launcher_stage": [],
        "spacecraft_stage": null
    },
    "mission": null,
    "pad": {
        "id": 4,
        "url": "https://ll.thespacedevs.com/2.0.0/pad/4/?format=api",
        "agency_id": 44,
        "name": "Launch Complex 39B",
        "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.0.0/location/27/?format=api",
            "name": "Kennedy Space Center, FL, USA",
            "country_code": "USA",
            "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/location_27_20200803142447.jpg",
            "total_launch_count": 237,
            "total_landing_count": 0
        },
        "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/pad_4_20200803143518.jpg",
        "total_launch_count": 58
    },
    "infoURLs": [],
    "vidURLs": [],
    "webcast_live": false,
    "image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/sls_block_1b_image_20200905100013.jpeg",
    "infographic": null,
    "program": [
        {
            "id": 15,
            "url": "https://ll.thespacedevs.com/2.0.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.0.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"
        }
    ],
    "orbital_launch_attempt_count": 6997,
    "location_launch_attempt_count": 262,
    "pad_launch_attempt_count": 64,
    "agency_launch_attempt_count": 141,
    "orbital_launch_attempt_count_year": 6997,
    "location_launch_attempt_count_year": 1,
    "pad_launch_attempt_count_year": 1,
    "agency_launch_attempt_count_year": 1
}