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

{
  "id": 187,
  "name": "Kulasekarapattinam Spaceport, India",
  "country_code": "IND",
  "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/location_kulasekarapattinam_spaceport252c_india_20260920052623.jpg",
  "total_launch_count": 0,
  "total_landing_count": 0,
  "pads": [
    {
      "id": 258,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/258/?format=api",
      "agency_id": 31,
      "name": "SSLV Launch Complex",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/SSLV_Launch_Complex",
      "map_url": "https://www.google.com/maps?q=8.3588887,78.0182402",
      "latitude": 8.3588887,
      "longitude": 78.0182402,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_sslv_launch_complex_20260920052940.jpg",
      "total_launch_count": 0
    }
  ]
}