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/31bcb852-0c9f-4f1f-a201-a108c88e77f8/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "id": "31bcb852-0c9f-4f1f-a201-a108c88e77f8",
    "url": "https://ll.thespacedevs.com/2.0.0/launch/31bcb852-0c9f-4f1f-a201-a108c88e77f8/?format=api",
    "launch_library_id": null,
    "slug": "project-pilot-nots-4",
    "name": "Project Pilot | NOTS 4",
    "status": {
        "id": 4,
        "name": "Failure"
    },
    "net": "1958-08-25T00:00:00Z",
    "window_end": "1958-08-25T00:00:00Z",
    "window_start": "1958-08-25T00:00:00Z",
    "inhold": false,
    "tbdtime": false,
    "tbddate": false,
    "probability": null,
    "holdreason": "",
    "failreason": null,
    "hashtag": null,
    "launch_service_provider": {
        "id": 166,
        "url": "https://ll.thespacedevs.com/2.0.0/agencies/166/?format=api",
        "name": "US Navy",
        "featured": false,
        "type": "Government",
        "country_code": "USA",
        "abbrev": "USN",
        "description": "The Navy was competed with the Army to put the first American satellite into orbit. Their first two Vanguard missions failed, with the second being a highly publicized failure, as it exploded on the launchpad. They went on to put 3 satellites into orbit but did not beat the Army to be the first. Their work in space continues today largely on military satellites.",
        "administrator": null,
        "founding_year": "1963",
        "launchers": "",
        "spacecraft": "Vanguard 1-3 | Parker Solar Probe",
        "launch_library_url": null,
        "total_launch_count": 18,
        "consecutive_successful_launches": 0,
        "successful_launches": 3,
        "failed_launches": 15,
        "pending_launches": 0,
        "consecutive_successful_landings": 0,
        "successful_landings": 0,
        "failed_landings": 0,
        "attempted_landings": 0,
        "info_url": "http://www.navy.mil",
        "wiki_url": "http://en.wikipedia.org/wiki/US_Navy",
        "logo_url": null,
        "image_url": null,
        "nation_url": null
    },
    "rocket": {
        "id": 3022,
        "configuration": {
            "id": 344,
            "launch_library_id": null,
            "url": "https://ll.thespacedevs.com/2.0.0/config/launcher/344/?format=api",
            "name": "Project Pilot",
            "description": "The NOTS-EV-1 Pilot, also known as NOTSNIK was an expendable launch system and anti-satellite weapon developed by the United States Navy's United States Naval Ordnance Test Station (NOTS).",
            "family": "",
            "full_name": "Project Pilot",
            "manufacturer": {
                "id": 166,
                "url": "https://ll.thespacedevs.com/2.0.0/agencies/166/?format=api",
                "name": "US Navy",
                "featured": false,
                "type": "Government",
                "country_code": "USA",
                "abbrev": "USN",
                "description": "The Navy was competed with the Army to put the first American satellite into orbit. Their first two Vanguard missions failed, with the second being a highly publicized failure, as it exploded on the launchpad. They went on to put 3 satellites into orbit but did not beat the Army to be the first. Their work in space continues today largely on military satellites.",
                "administrator": null,
                "founding_year": "1963",
                "launchers": "",
                "spacecraft": "Vanguard 1-3 | Parker Solar Probe",
                "launch_library_url": null,
                "total_launch_count": 18,
                "consecutive_successful_launches": 0,
                "successful_launches": 3,
                "failed_launches": 15,
                "pending_launches": 0,
                "consecutive_successful_landings": 0,
                "successful_landings": 0,
                "failed_landings": 0,
                "attempted_landings": 0,
                "info_url": "http://www.navy.mil",
                "wiki_url": "http://en.wikipedia.org/wiki/US_Navy",
                "logo_url": null,
                "image_url": null,
                "nation_url": null
            },
            "program": [],
            "variant": "",
            "alias": "",
            "min_stage": 5,
            "max_stage": 5,
            "length": 4.4,
            "diameter": 0.76,
            "maiden_flight": "1958-07-04",
            "launch_mass": 0,
            "leo_capacity": 1,
            "gto_capacity": null,
            "to_thrust": 125,
            "apogee": null,
            "vehicle_range": null,
            "image_url": null,
            "info_url": "",
            "wiki_url": "https://en.wikipedia.org/wiki/NOTS-EV-1_Pilot",
            "total_launch_count": 6,
            "consecutive_successful_launches": 0,
            "successful_launches": 0,
            "failed_launches": 6,
            "pending_launches": 0
        },
        "launcher_stage": [],
        "spacecraft_stage": null
    },
    "mission": {
        "id": 1444,
        "launch_library_id": null,
        "name": "NOTS 4",
        "description": "The project pilot payloads were small cylindrical satellites. These missions intended to be the first to launch a satellite from an aircraft. They had only a single instrument, a very primitive infrared line scanning device to make IR images of the ground.",
        "launch_designator": null,
        "type": "Government/Top Secret",
        "orbit": {
            "id": 8,
            "name": "Low Earth Orbit",
            "abbrev": "LEO"
        }
    },
    "pad": {
        "id": 145,
        "url": "https://ll.thespacedevs.com/2.0.0/pad/145/?format=api",
        "agency_id": null,
        "name": "Naval Air Weapons Station China Lake",
        "info_url": null,
        "wiki_url": "https://en.wikipedia.org/wiki/Naval_Air_Weapons_Station_China_Lake",
        "map_url": "https://www.google.com/maps?q=35.6855556,-117.6941384",
        "latitude": "35.6855556",
        "longitude": "-117.6941384",
        "location": {
            "id": 144,
            "url": "https://ll.thespacedevs.com/2.0.0/location/144/?format=api",
            "name": "Air launch to Suborbital flight",
            "country_code": "???",
            "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/location_144_20200803142439.jpg",
            "total_launch_count": 85,
            "total_landing_count": 0
        },
        "map_image": "https://spacelaunchnow-prod-east.nyc3.digitaloceanspaces.com/media/launch_images/pad_145_20200803143330.jpg",
        "total_launch_count": 6
    },
    "infoURLs": [],
    "vidURLs": [],
    "webcast_live": false,
    "image": null,
    "infographic": null,
    "program": [],
    "orbital_launch_attempt_count": 20,
    "location_launch_attempt_count": 4,
    "pad_launch_attempt_count": 4,
    "agency_launch_attempt_count": 10,
    "orbital_launch_attempt_count_year": 17,
    "location_launch_attempt_count_year": 4,
    "pad_launch_attempt_count_year": 4,
    "agency_launch_attempt_count_year": 9
}