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/178/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
  "id": 178,
  "name": "Esrange Space Center",
  "country_code": "SWE",
  "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/location_esrange_space_center_20241208021356.jpg",
  "total_launch_count": 0,
  "total_landing_count": 0,
  "pads": [
    {
      "id": 239,
      "url": "https://ll.thespacedevs.com/2.0.0/pad/239/?format=api",
      "agency_id": 1044,
      "name": "Launch Complex 3B",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Esrange#Reusable_Rocket_Testing",
      "map_url": "https://www.google.com/maps?q=67.877368,21.165001",
      "latitude": 67.877368,
      "longitude": 21.165001,
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_launch_complex_3b_20250916091141.jpg",
      "total_launch_count": 0
    },
    {
      "id": 236,
      "url": "https://ll.thespacedevs.com/2.0.0/pad/236/?format=api",
      "agency_id": 265,
      "name": "Launch Complex 3C",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Esrange#Satellite_launch_capability",
      "map_url": "https://www.google.com/maps?q=67.876724,21.166866",
      "latitude": 67.876724,
      "longitude": 21.166866,
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_launch_complex_3c_20241208021831.jpg",
      "total_launch_count": 0
    }
  ]
}