Location Instance
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
Search
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/27/?format=api
https://lldev.thespacedevs.com/2.3.0/locations/27/?format=api", "name": "Kennedy Space Center, FL, 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 John F. Kennedy Space Center, located on Merritt Island, Florida, is one of NASA's ten field centers. Since 1968, KSC has been NASA's primary launch center of American spaceflight, research, and technology. Launch operations for the Apollo, Skylab and Space Shuttle programs were carried out from Kennedy Space Center Launch Complex 39 and managed by KSC. Located on the east coast of Florida, KSC is adjacent to Cape Canaveral Space Force Station (CCSFS).", "image": { "id": 2200, "name": "Cape Canaveral & KSC seen from orbit (STS-43)", "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/cape_canaveral__image_20240918151615.jpg", "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/cape_canaveral__image_thumbnail_20240918151616.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": [] }, "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/location_27_20200803142447.jpg", "longitude": -80.650833, "latitude": 28.524167, "timezone_name": "America/New_York", "total_launch_count": 261, "total_landing_count": 0, "pads": [ { "id": 4, "url": "https://lldev.thespacedevs.com/2.3.0/pads/4/?format=api", "active": true, "agencies": [ { "response_mode": "list", "id": 44, "url": "https://lldev.thespacedevs.com/2.3.0/agencies/44/?format=api", "name": "National Aeronautics and Space Administration", "abbrev": "NASA", "type": { "id": 1, "name": "Government" } } ], "name": "Launch Complex 39B", "image": null, "description": null, "info_url": null, "wiki_url": "https://en.wikipedia.org/wiki/Kennedy_Space_Center_Launch_Complex_39#Launch_Pad_39B", "map_url": "https://www.google.com/maps?q=28.62711233,-80.62101503", "latitude": 28.62711233, "longitude": -80.62101503, "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_4_20200803143518.jpg", "total_launch_count": 58, "orbital_launch_attempt_count": 57, "fastest_turnaround": "P28DT11H55M4S" }, { "id": 87, "url": "https://lldev.thespacedevs.com/2.3.0/pads/87/?format=api", "active": true, "agencies": [ { "response_mode": "list", "id": 121, "url": "https://lldev.thespacedevs.com/2.3.0/agencies/121/?format=api", "name": "SpaceX", "abbrev": "SpX", "type": { "id": 3, "name": "Commercial" } } ], "name": "Launch Complex 39A", "image": { "id": 2119, "name": "FH liftoff from LC-39A (GOES-U)", "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/fh_liftoff_from_image_20240626200232.jpeg", "thumbnail_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/fh_liftoff_from_image_thumbnail_20240626200233.jpeg", "credit": "SpaceX", "license": { "id": 5, "name": "CC BY-NC 2.0", "priority": 1, "link": "https://creativecommons.org/licenses/by-nc/2.0/" }, "single_use": true, "variants": [] }, "description": "", "info_url": null, "wiki_url": "https://en.wikipedia.org/wiki/Kennedy_Space_Center_Launch_Complex_39#Launch_Pad_39A", "map_url": "https://www.google.com/maps?q=28.60822681,-80.60428186", "latitude": 28.60822681, "longitude": -80.60428186, "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_87_20200803143537.jpg", "total_launch_count": 203, "orbital_launch_attempt_count": 202, "fastest_turnaround": "P5DT7H9M30S" }, { "id": 30, "url": "https://lldev.thespacedevs.com/2.3.0/pads/30/?format=api", "active": true, "agencies": [], "name": "Launch Complex 48", "image": null, "description": null, "info_url": null, "wiki_url": "https://en.wikipedia.org/wiki/Kennedy_Space_Center_Launch_Complex_48", "map_url": "https://www.google.com/maps?q=28.5990626125553,-80.60428186", "latitude": 28.5990626125553, "longitude": -80.60428186, "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_30_20200803143320.jpg", "total_launch_count": 0, "orbital_launch_attempt_count": 0, "fastest_turnaround": null }, { "id": 203, "url": "https://lldev.thespacedevs.com/2.3.0/pads/203/?format=api", "active": false, "agencies": [ { "response_mode": "list", "id": 121, "url": "https://lldev.thespacedevs.com/2.3.0/agencies/121/?format=api", "name": "SpaceX", "abbrev": "SpX", "type": { "id": 3, "name": "Commercial" } } ], "name": "Launch Complex 39A Starship Pad", "image": null, "description": "", "info_url": null, "wiki_url": "https://en.wikipedia.org/wiki/Kennedy_Space_Center_Launch_Complex_39A", "map_url": "https://www.google.com/maps?q=28.60822681,-80.60428186", "latitude": 28.60822681, "longitude": -80.60428186, "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_launch_complex_39a_20220818090654.jpg", "total_launch_count": 0, "orbital_launch_attempt_count": 0, "fastest_turnaround": null } ] }{ "response_mode": "detailed", "id": 27, "url": "