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/ee02a1f3-2370-460b-8dd6-27f30b5635dc/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "id": "ee02a1f3-2370-460b-8dd6-27f30b5635dc",
    "url": "https://ll.thespacedevs.com/2.2.0/launch/ee02a1f3-2370-460b-8dd6-27f30b5635dc/?format=api",
    "slug": "zenit-xm-4",
    "flightclub_url": null,
    "r_spacex_api_id": null,
    "name": "Zenit | XM-4",
    "status": {
        "id": 3,
        "name": "Launch Successful",
        "abbrev": "Success",
        "description": "The launch vehicle successfully inserted its payload(s) into the target orbit(s)."
    },
    "last_updated": "2023-06-14T03:33:18Z",
    "updates": [],
    "net": "2006-10-30T23:48:59Z",
    "net_precision": null,
    "window_end": "2006-10-30T23:48:59Z",
    "window_start": "2006-10-30T23:48:59Z",
    "probability": null,
    "weather_concerns": null,
    "holdreason": "",
    "failreason": null,
    "hashtag": null,
    "launch_service_provider": {
        "id": 122,
        "url": "https://ll.thespacedevs.com/2.2.0/agencies/122/?format=api",
        "name": "Sea Launch",
        "featured": false,
        "type": "Commercial",
        "country_code": "RUS",
        "abbrev": "SL",
        "description": null,
        "administrator": null,
        "founding_year": null,
        "launchers": "",
        "spacecraft": "",
        "launch_library_url": null,
        "total_launch_count": 43,
        "consecutive_successful_launches": 3,
        "successful_launches": 40,
        "failed_launches": 3,
        "pending_launches": 0,
        "consecutive_successful_landings": 0,
        "successful_landings": 0,
        "failed_landings": 0,
        "attempted_landings": 0,
        "info_url": "http://www.sea-launch.com/",
        "wiki_url": "http://en.wikipedia.org/wiki/Sea_Launch",
        "logo_url": null,
        "image_url": null,
        "nation_url": null
    },
    "rocket": {
        "id": 7291,
        "configuration": {
            "id": 11,
            "url": "https://ll.thespacedevs.com/2.2.0/config/launcher/11/?format=api",
            "name": "Zenit",
            "active": false,
            "reusable": false,
            "description": "",
            "family": "Zenith",
            "full_name": "Zenit 3SL",
            "manufacturer": {
                "id": 122,
                "url": "https://ll.thespacedevs.com/2.2.0/agencies/122/?format=api",
                "name": "Sea Launch",
                "featured": false,
                "type": "Commercial",
                "country_code": "RUS",
                "abbrev": "SL",
                "description": null,
                "administrator": null,
                "founding_year": null,
                "launchers": "",
                "spacecraft": "",
                "launch_library_url": null,
                "total_launch_count": 43,
                "consecutive_successful_launches": 3,
                "successful_launches": 40,
                "failed_launches": 3,
                "pending_launches": 0,
                "consecutive_successful_landings": 0,
                "successful_landings": 0,
                "failed_landings": 0,
                "attempted_landings": 0,
                "info_url": "http://www.sea-launch.com/",
                "wiki_url": "http://en.wikipedia.org/wiki/Sea_Launch",
                "logo_url": null,
                "image_url": null,
                "nation_url": null
            },
            "program": [],
            "variant": "3SL",
            "alias": "",
            "min_stage": 1,
            "max_stage": 1,
            "length": 4.6,
            "diameter": 0.42,
            "maiden_flight": "1999-03-28",
            "launch_cost": null,
            "launch_mass": 0,
            "leo_capacity": 0,
            "gto_capacity": 0,
            "to_thrust": 45,
            "apogee": 140,
            "vehicle_range": null,
            "image_url": null,
            "info_url": null,
            "wiki_url": null,
            "total_launch_count": 36,
            "consecutive_successful_launches": 1,
            "successful_launches": 33,
            "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": 5680,
        "name": "XM-4",
        "description": "Geostationary communications satellite built by Hughes Space and Communications International",
        "launch_designator": null,
        "type": "Communications",
        "orbit": {
            "id": 1,
            "name": "Geostationary Orbit",
            "abbrev": "Direct-GEO"
        },
        "agencies": [],
        "info_urls": [],
        "vid_urls": []
    },
    "pad": {
        "id": 13,
        "url": "https://ll.thespacedevs.com/2.2.0/pad/13/?format=api",
        "agency_id": 80,
        "name": "Launch Platform Odyssey",
        "description": "",
        "info_url": null,
        "wiki_url": "https://en.wikipedia.org/wiki/Odyssey_(launch_platform)",
        "map_url": "https://www.google.com/maps?q=0.0,-154",
        "latitude": "0.0",
        "longitude": "-154.0",
        "location": {
            "id": 3,
            "url": "https://ll.thespacedevs.com/2.2.0/location/3/?format=api",
            "name": "Sea Launch",
            "country_code": "???",
            "description": "",
            "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/location_3_20200803142448.jpg",
            "timezone_name": "",
            "total_launch_count": 49,
            "total_landing_count": 0
        },
        "country_code": "",
        "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/pad_13_20200803143257.jpg",
        "total_launch_count": 36,
        "orbital_launch_attempt_count": 36
    },
    "infoURLs": [],
    "vidURLs": [],
    "webcast_live": false,
    "timeline": [],
    "image": null,
    "infographic": null,
    "program": [],
    "orbital_launch_attempt_count": 4793,
    "location_launch_attempt_count": 26,
    "pad_launch_attempt_count": 23,
    "agency_launch_attempt_count": 23,
    "orbital_launch_attempt_count_year": 53,
    "location_launch_attempt_count_year": 6,
    "pad_launch_attempt_count_year": 5,
    "agency_launch_attempt_count_year": 5,
    "pad_turnaround": "P69DT20H21M58S",
    "mission_patches": [],
    "type": "detailed"
}