Modes

Levels of detail in the response - normal, detailed

Example - /locations/?mode=detailed

Filters

Parameters - active, country_code, id, name, name__contains, total_landing_count, total_landing_count__gt, total_landing_count__gte, total_landing_count__lt, total_landing_count__lte, total_launch_count, total_launch_count__gt, total_launch_count__gte, total_launch_count__lt, total_launch_count__lte

Example - /locations/?country_code=NZL

Fields searched - country__alpha_3_code, name

Example - /locations/?search=Cape Canaveral

Ordering

Fields - total_landing_count, total_launch_count

Example - /locations/?ordering=-total_launch_count

Number of results

Use limit to control the number of objects in the response (max 100)

Example - /locations/?limit=2

Format

Switch to JSON output - /locations/?format=json

Help

Find all the FAQs and support links on the documentation homepage - lldev.thespacedevs.com/docs

GET /2.3.0/locations/25/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "response_mode": "detailed",
    "id": 25,
    "url": "https://lldev.thespacedevs.com/2.3.0/locations/25/?format=api",
    "name": "Pacific Spaceport Complex, Alaska, USA",
    "celestial_body": {
        "response_mode": "normal",
        "id": 1,
        "name": "Earth",
        "type": {
            "id": 1,
            "name": "Planet"
        },
        "diameter": 12742000.0,
        "mass": 5.972168e+24,
        "gravity": 9.80655,
        "length_of_day": "1 00:00:00",
        "atmosphere": true,
        "image": {
            "id": 2040,
            "name": "Earth (Apollo 17)",
            "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/earth_2528apol_image_20240402194304.jpeg",
            "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/earth_2528apol_image_thumbnail_20240402194305.jpeg",
            "credit": "NASA",
            "license": {
                "id": 4,
                "name": "NASA Image and Media Guidelines",
                "priority": 0,
                "link": "https://www.nasa.gov/nasa-brand-center/images-and-media/"
            },
            "single_use": true,
            "variants": []
        },
        "description": "Earth is the third planet from the Sun and the only astronomical object known to harbor life.",
        "wiki_url": "https://en.wikipedia.org/wiki/Earth",
        "total_attempted_launches": 7129,
        "successful_launches": 6587,
        "failed_launches": 542,
        "total_attempted_landings": 1089,
        "successful_landings": 1046,
        "failed_landings": 43
    },
    "active": true,
    "country": {
        "id": 2,
        "name": "United States of America",
        "alpha_2_code": "US",
        "alpha_3_code": "USA",
        "nationality_name": "American",
        "nationality_name_composed": "Americano"
    },
    "description": "The Pacific Spaceport Complex – Alaska (PSCA), formerly known as the Kodiak Launch Complex (KLC), is a dual-use commercial and military spaceport for sub-orbital and orbital launch vehicles. The facility is owned and operated by the Alaska Aerospace Corporation, a corporation owned by the Government of Alaska, and is located on Kodiak Island in Alaska.",
    "image": {
        "id": 1817,
        "name": "RS1 on the pad (Flight 2)",
        "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/rs1_on_the_pad__image_20240325094914.jpeg",
        "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/rs1_on_the_pad__image_thumbnail_20240325094914.jpeg",
        "credit": "ABL Space Systems",
        "license": {
            "id": 1,
            "name": "Unknown",
            "priority": 9,
            "link": null
        },
        "single_use": true,
        "variants": []
    },
    "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/location_25_20200803142500.jpg",
    "longitude": -152.34,
    "latitude": 57.435278,
    "timezone_name": "America/Anchorage",
    "total_launch_count": 9,
    "total_landing_count": 0,
    "pads": [
        {
            "id": 114,
            "url": "https://lldev.thespacedevs.com/2.3.0/pads/114/?format=api",
            "active": true,
            "agencies": [],
            "name": "Launch Pad 3B",
            "image": {
                "id": 1539,
                "name": "Astra Rocket 3 on pad 3B (Spaceflight Astra-1)",
                "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/astra2520rocke_image_20220314155209.jpeg",
                "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305193102.jpeg",
                "credit": "Astra/Brady Kenniston",
                "license": {
                    "id": 1,
                    "name": "Unknown",
                    "priority": 9,
                    "link": null
                },
                "single_use": false,
                "variants": []
            },
            "description": "",
            "info_url": null,
            "wiki_url": "https://en.wikipedia.org/wiki/Pacific_Spaceport_Complex_%E2%80%93_Alaska",
            "map_url": "https://www.google.com/maps?q=57.430673,-152.353077",
            "latitude": 57.430673,
            "longitude": -152.353077,
            "country": {
                "id": 2,
                "name": "United States of America",
                "alpha_2_code": "US",
                "alpha_3_code": "USA",
                "nationality_name": "American",
                "nationality_name_composed": "Americano"
            },
            "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_114_20200803145248.jpg",
            "total_launch_count": 5,
            "orbital_launch_attempt_count": 5,
            "fastest_turnaround": "P83DT7H41M"
        },
        {
            "id": 57,
            "url": "https://lldev.thespacedevs.com/2.3.0/pads/57/?format=api",
            "active": true,
            "agencies": [],
            "name": "Launch Pad 1",
            "image": null,
            "description": null,
            "info_url": null,
            "wiki_url": "https://en.wikipedia.org/wiki/Pacific_Spaceport_Complex_%E2%80%93_Alaska",
            "map_url": "https://www.google.com/maps?q=57.435833,-152.337778",
            "latitude": 57.435833,
            "longitude": -152.337778,
            "country": {
                "id": 2,
                "name": "United States of America",
                "alpha_2_code": "US",
                "alpha_3_code": "USA",
                "nationality_name": "American",
                "nationality_name_composed": "Americano"
            },
            "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_57_20200803143509.jpg",
            "total_launch_count": 3,
            "orbital_launch_attempt_count": 3,
            "fastest_turnaround": "P311DT14H24M"
        },
        {
            "id": 199,
            "url": "https://lldev.thespacedevs.com/2.3.0/pads/199/?format=api",
            "active": true,
            "agencies": [],
            "name": "Launch Pad 3C",
            "image": {
                "id": 1455,
                "name": "RS1 liftoff from pad 3C (Flight 1)",
                "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/rs12520257c2_image_20231227135638.jpeg",
                "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/255bauto255d__image_thumbnail_20240305192822.jpeg",
                "credit": "ABL Space Systems",
                "license": {
                    "id": 1,
                    "name": "Unknown",
                    "priority": 9,
                    "link": null
                },
                "single_use": false,
                "variants": []
            },
            "description": "",
            "info_url": null,
            "wiki_url": "https://en.wikipedia.org/wiki/Pacific_Spaceport_Complex_%E2%80%93_Alaska",
            "map_url": "https://www.google.com/maps?q=57.431239,-152.350749",
            "latitude": 57.431239,
            "longitude": -152.350749,
            "country": {
                "id": 2,
                "name": "United States of America",
                "alpha_2_code": "US",
                "alpha_3_code": "USA",
                "nationality_name": "American",
                "nationality_name_composed": "Americano"
            },
            "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_199_20220904142623.jpg",
            "total_launch_count": 1,
            "orbital_launch_attempt_count": 1,
            "fastest_turnaround": null
        }
    ]
}