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/896e8af6-d256-4a5b-ab15-2f25c84e90e3/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "id": "896e8af6-d256-4a5b-ab15-2f25c84e90e3",
    "url": "https://ll.thespacedevs.com/2.2.0/launch/896e8af6-d256-4a5b-ab15-2f25c84e90e3/?format=api",
    "slug": "juno-i-explorer-2",
    "flightclub_url": null,
    "r_spacex_api_id": null,
    "name": "Juno-I | Explorer 2",
    "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-14T17:40:22Z",
    "updates": [],
    "net": "1958-03-05T18:27:57Z",
    "net_precision": null,
    "window_end": "1958-03-05T18:27:57Z",
    "window_start": "1958-03-05T18:27:57Z",
    "probability": null,
    "weather_concerns": null,
    "holdreason": "",
    "failreason": null,
    "hashtag": null,
    "launch_service_provider": {
        "id": 271,
        "url": "https://ll.thespacedevs.com/2.2.0/agencies/271/?format=api",
        "name": "Army Ballistic Missile Agency",
        "featured": false,
        "type": "Government",
        "country_code": "USA",
        "abbrev": "ABMA",
        "description": "The Army Ballistic Missile Agency was formed to develop the U.S. Army's first large ballistic missile. The agency was established at Redstone Arsenal on 1 February 1956, and commanded by Major General John B. Medaris with Wernher von Braun as technical director.",
        "administrator": null,
        "founding_year": null,
        "launchers": "",
        "spacecraft": "",
        "launch_library_url": null,
        "total_launch_count": 12,
        "consecutive_successful_launches": 0,
        "successful_launches": 5,
        "failed_launches": 7,
        "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/Army_Ballistic_Missile_Agency",
        "logo_url": null,
        "image_url": null,
        "nation_url": null
    },
    "rocket": {
        "id": 3008,
        "configuration": {
            "id": 324,
            "url": "https://ll.thespacedevs.com/2.2.0/config/launcher/324/?format=api",
            "name": "Juno-I",
            "active": false,
            "reusable": false,
            "description": "The Juno I was a four-stage American booster rocket which launched America's first satellite, Explorer 1 in 1958. A member of thr redstone family, it was derived from the Jupiter-C sounding rocket.",
            "family": "Redstone",
            "full_name": "Juno-I",
            "manufacturer": {
                "id": 158,
                "url": "https://ll.thespacedevs.com/2.2.0/agencies/158/?format=api",
                "name": "Chrysler",
                "featured": false,
                "type": "Commercial",
                "country_code": "USA",
                "abbrev": "CHR",
                "description": "In July 1959, NASA chose the Redstone missile as the basis for the Mercury-Redstone Launch Vehicle to be used for suborbital test flights of the Project Mercury spacecraft. Three unmanned MRLV launch attempts were made between November 1960 and March 1961, two of which were successful. The MRLV successfully launched the chimpanzee Ham, and astronauts Alan Shepard and Gus Grissom on three suborbital flights in January, May and July 1961, respectively.",
                "administrator": null,
                "founding_year": "1950",
                "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": "http://www.chryslergroupllc.com/",
                "wiki_url": "http://en.wikipedia.org/wiki/Chrysler_Corporation#Space_boosters",
                "logo_url": null,
                "image_url": null,
                "nation_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/chrysler_nation_20190701071744.png"
            },
            "program": [],
            "variant": "Juno I",
            "alias": "",
            "min_stage": 4,
            "max_stage": 4,
            "length": 21.2,
            "diameter": 1.78,
            "maiden_flight": "1958-01-31",
            "launch_cost": null,
            "launch_mass": 29,
            "leo_capacity": 11,
            "gto_capacity": null,
            "to_thrust": 416,
            "apogee": null,
            "vehicle_range": null,
            "image_url": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/juno_i_on_the_p_image_20240411120216.jpeg",
            "info_url": null,
            "wiki_url": "https://en.wikipedia.org/wiki/Juno_I",
            "total_launch_count": 6,
            "consecutive_successful_launches": 0,
            "successful_launches": 3,
            "failed_launches": 3,
            "pending_launches": 0,
            "attempted_landings": 0,
            "successful_landings": 0,
            "failed_landings": 0,
            "consecutive_successful_landings": 0
        },
        "launcher_stage": [],
        "spacecraft_stage": null
    },
    "mission": {
        "id": 1434,
        "name": "Explorer 2",
        "description": "Small satellite similar to Explorer 1. It failed to reach orbit due to a fourth stage failure.",
        "launch_designator": null,
        "type": "Test Flight",
        "orbit": {
            "id": 8,
            "name": "Low Earth Orbit",
            "abbrev": "LEO"
        },
        "agencies": [],
        "info_urls": [],
        "vid_urls": []
    },
    "pad": {
        "id": 193,
        "url": "https://ll.thespacedevs.com/2.2.0/pad/193/?format=api",
        "agency_id": 161,
        "name": "Launch Complex 26A",
        "description": null,
        "info_url": null,
        "wiki_url": "https://en.wikipedia.org/wiki/Cape_Canaveral_Air_Force_Station_Launch_Complex_26",
        "map_url": "https://www.google.com/maps?q=28.4433,-80.5712",
        "latitude": "28.4433",
        "longitude": "-80.5712",
        "location": {
            "id": 12,
            "url": "https://ll.thespacedevs.com/2.2.0/location/12/?format=api",
            "name": "Cape Canaveral, FL, USA",
            "country_code": "USA",
            "description": "",
            "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/location_12_20200803142519.jpg",
            "timezone_name": "America/New_York",
            "total_launch_count": 949,
            "total_landing_count": 51
        },
        "country_code": "USA",
        "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/pad_space_launch_complex_26a_20210830170946.jpg",
        "total_launch_count": 3,
        "orbital_launch_attempt_count": 3
    },
    "infoURLs": [],
    "vidURLs": [],
    "webcast_live": false,
    "timeline": [],
    "image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/images/juno_i_on_the_p_image_20240411120216.jpeg",
    "infographic": null,
    "program": [],
    "orbital_launch_attempt_count": 6,
    "location_launch_attempt_count": 4,
    "pad_launch_attempt_count": 2,
    "agency_launch_attempt_count": 2,
    "orbital_launch_attempt_count_year": 3,
    "location_launch_attempt_count_year": 3,
    "pad_launch_attempt_count_year": 2,
    "agency_launch_attempt_count_year": 2,
    "pad_turnaround": "P32DT14H40M1S",
    "mission_patches": [],
    "type": "detailed"
}