API endpoint that allows Location instances to be viewed.

GET: Return a list of all the existing location instances.

FILTERS: Parameters - 'name', 'country_code', 'id' Example - /2.0.0/location/?country_code=USA

GET /2.0.0/location/143/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
  "id": 143,
  "name": "SpaceX Starbase, TX, USA",
  "country_code": "USA",
  "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/location_143_20200803142438.jpg",
  "total_launch_count": 20,
  "total_landing_count": 13,
  "pads": [
    {
      "id": 111,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/111/?format=api",
      "agency_id": 121,
      "name": "Suborbital Pad A",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/SpaceX_South_Texas_Launch_Site",
      "map_url": "https://www.google.com/maps?q=25.997116,-97.15503099856647",
      "latitude": 25.997116,
      "longitude": -97.15503099856647,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_111_20200803143229.jpg",
      "total_launch_count": 7
    },
    {
      "id": 235,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/235/?format=api",
      "agency_id": 121,
      "name": "Orbital Launch Pad 2",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/SpaceX_Starbase#Launch_site_(Orbital_Launch_Mount_(Pad_1_and_2))",
      "map_url": "https://www.google.com/maps?q=25.996603,-97.158251",
      "latitude": 25.996603,
      "longitude": -97.158251,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_orbital_launch_mount_b_20241126031254.jpg",
      "total_launch_count": 0
    },
    {
      "id": 187,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/187/?format=api",
      "agency_id": 121,
      "name": "Suborbital Pad B",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/SpaceX_South_Texas_Launch_Site",
      "map_url": "https://www.google.com/maps?q=25.997116,-97.15503099856647",
      "latitude": 25.997116,
      "longitude": -97.15503099856647,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_launch_pad_b_20201211004226.jpg",
      "total_launch_count": 2
    },
    {
      "id": 188,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/188/?format=api",
      "agency_id": 121,
      "name": "Orbital Launch Pad 1",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/SpaceX_Starbase#Launch_site_(Orbital_Launch_Mount_(Pad_1_and_2))",
      "map_url": "https://www.google.com/maps?q=25.9962,-97.154423",
      "latitude": 25.9962,
      "longitude": -97.154423,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_orbital_launch_mount_a_20210514061342.jpg",
      "total_launch_count": 11
    }
  ]
}