AN 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', 'is_crewed', 'include_suborbital', 'spacecraft_config__ids',
'related', 'location__ids', 'lsp__ids', 'pad__ids', 'status__ids'

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.2.0/launch/b6141255-54e9-4edc-839d-1dc81b61f19f/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "id": "b6141255-54e9-4edc-839d-1dc81b61f19f",
    "url": "https://ll.thespacedevs.com/2.2.0/launch/b6141255-54e9-4edc-839d-1dc81b61f19f/?format=api",
    "slug": "vostok-l-8k72-luna-1a",
    "flightclub_url": null,
    "r_spacex_api_id": null,
    "name": "Vostok-L 8K72 | Luna-1a",
    "status": {
        "id": 4,
        "name": "Launch Failure",
        "abbrev": "Failure",
        "description": "Either the launch vehicle did not reach orbit, or the payload(s) failed to separate."
    },
    "last_updated": "2023-06-14T03:48:23Z",
    "updates": [],
    "net": "1958-09-23T07:40:23Z",
    "net_precision": null,
    "window_end": "1958-09-23T07:40:23Z",
    "window_start": "1958-09-23T07:40:23Z",
    "probability": null,
    "weather_concerns": null,
    "holdreason": "",
    "failreason": null,
    "hashtag": null,
    "launch_service_provider": {
        "id": 66,
        "url": "https://ll.thespacedevs.com/2.2.0/agencies/66/?format=api",
        "name": "Soviet Space Program",
        "featured": false,
        "type": "Government",
        "country_code": "RUS",
        "abbrev": "CCCP",
        "description": "The Soviet space program, was the national space program of the Union of Soviet Socialist Republics (USSR) actived from 1930s until disintegration of the Soviet Union in 1991.\r\n\r\nThe Soviet Union's space program was mainly based on the cosmonautic exploration of space and the development of the expandable launch vehicles, which had been split between many design bureaus competing against each other. Over its 60-years of history, the Russian program was responsible for a number of pioneering feats and accomplishments in the human space flight, including the first intercontinental ballistic missile (R-7), first satellite (Sputnik 1), first animal in Earth orbit (the dog Laika on Sputnik 2), first human in space and Earth orbit (cosmonaut Yuri Gagarin on Vostok 1), first woman in space and Earth orbit (cosmonaut Valentina Tereshkova on Vostok 6), first spacewalk (cosmonaut Alexei Leonov on Voskhod 2), first Moon impact (Luna 2), first image of the far side of the Moon (Luna 3) and unmanned lunar soft landing (Luna 9), first space rover (Lunokhod 1), first sample of lunar soil automatically extracted and brought to Earth (Luna 16), and first space station (Salyut 1). Further notable records included the first interplanetary probes: Venera 1 and Mars 1 to fly by Venus and Mars, respectively, Venera 3 and Mars 2 to impact the respective planet surface, and Venera 7 and Mars 3 to make soft landings on these planets.",
        "administrator": null,
        "founding_year": "1931",
        "launchers": "",
        "spacecraft": "",
        "launch_library_url": null,
        "total_launch_count": 2453,
        "consecutive_successful_launches": 17,
        "successful_launches": 2285,
        "failed_launches": 168,
        "pending_launches": 0,
        "consecutive_successful_landings": 0,
        "successful_landings": 0,
        "failed_landings": 0,
        "attempted_landings": 0,
        "info_url": "",
        "wiki_url": "http://en.wikipedia.org/wiki/Soviet_space_program",
        "logo_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/soviet2520space2520program_logo_20191229081307.png",
        "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/soviet2520space2520program_image_20191229081306.jpeg",
        "nation_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/soviet2520space2520program_nation_20191229081307.png"
    },
    "rocket": {
        "id": 3025,
        "configuration": {
            "id": 454,
            "url": "https://ll.thespacedevs.com/2.2.0/config/launcher/454/?format=api",
            "name": "Vostok-L 8K72",
            "active": false,
            "reusable": false,
            "description": "The Vostok-L was a rocket used by the Soviet Union to conduct several early tests of the Vostok spacecraft",
            "family": "Vostok",
            "full_name": "Vostok-L 8K72",
            "manufacturer": {
                "id": 1000,
                "url": "https://ll.thespacedevs.com/2.2.0/agencies/1000/?format=api",
                "name": "Energia",
                "featured": false,
                "type": "Government",
                "country_code": "RUS",
                "abbrev": "OKB-1",
                "description": null,
                "administrator": null,
                "founding_year": "1946",
                "launchers": "",
                "spacecraft": "",
                "launch_library_url": null,
                "total_launch_count": 0,
                "consecutive_successful_launches": 0,
                "successful_launches": 0,
                "failed_launches": 0,
                "pending_launches": 0,
                "consecutive_successful_landings": 0,
                "successful_landings": 0,
                "failed_landings": 0,
                "attempted_landings": 0,
                "info_url": null,
                "wiki_url": "https://en.wikipedia.org/wiki/Energia_(corporation)",
                "logo_url": null,
                "image_url": null,
                "nation_url": null
            },
            "program": [],
            "variant": "L 8K72",
            "alias": "",
            "min_stage": 2,
            "max_stage": 2,
            "length": 30.84,
            "diameter": 2.6,
            "maiden_flight": "1958-09-23",
            "launch_cost": null,
            "launch_mass": 277,
            "leo_capacity": 4000,
            "gto_capacity": null,
            "to_thrust": 3956,
            "apogee": null,
            "vehicle_range": null,
            "image_url": null,
            "info_url": "",
            "wiki_url": "https://en.wikipedia.org/wiki/Vostok-L",
            "total_launch_count": 9,
            "consecutive_successful_launches": 0,
            "successful_launches": 3,
            "failed_launches": 6,
            "pending_launches": 0,
            "attempted_landings": 0,
            "successful_landings": 0,
            "failed_landings": 0,
            "consecutive_successful_landings": 0
        },
        "launcher_stage": [],
        "spacecraft_stage": null
    },
    "mission": {
        "id": 1447,
        "name": "Luna-1a",
        "description": "Luna E-1 number 1 was a Soviet spacecraft intended to impact the moon, however, was lost in a launch failure.",
        "launch_designator": null,
        "type": "Lunar Exploration",
        "orbit": {
            "id": 10,
            "name": "Lunar Impactor",
            "abbrev": "Lunar Impactor"
        },
        "agencies": [],
        "info_urls": [],
        "vid_urls": []
    },
    "pad": {
        "id": 32,
        "url": "https://ll.thespacedevs.com/2.2.0/pad/32/?format=api",
        "agency_id": null,
        "name": "1/5",
        "description": null,
        "info_url": null,
        "wiki_url": "",
        "map_url": "https://www.google.com/maps?q=45.92,63.342",
        "latitude": "45.92",
        "longitude": "63.342",
        "location": {
            "id": 15,
            "url": "https://ll.thespacedevs.com/2.2.0/location/15/?format=api",
            "name": "Baikonur Cosmodrome, Republic of Kazakhstan",
            "country_code": "KAZ",
            "description": "",
            "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/location_15_20200803142517.jpg",
            "timezone_name": "Asia/Qyzylorda",
            "total_launch_count": 1548,
            "total_landing_count": 0
        },
        "country_code": "KAZ",
        "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/pad_32_20200803143513.jpg",
        "total_launch_count": 487,
        "orbital_launch_attempt_count": 487
    },
    "infoURLs": [],
    "vidURLs": [],
    "webcast_live": false,
    "timeline": [],
    "image": null,
    "infographic": null,
    "program": [],
    "orbital_launch_attempt_count": 23,
    "location_launch_attempt_count": 5,
    "pad_launch_attempt_count": 5,
    "agency_launch_attempt_count": 5,
    "orbital_launch_attempt_count_year": 20,
    "location_launch_attempt_count_year": 3,
    "pad_launch_attempt_count_year": 3,
    "agency_launch_attempt_count_year": 3,
    "pad_turnaround": "P131DT28M23S",
    "mission_patches": [],
    "type": "detailed"
}