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

{
  "id": 150,
  "name": "Alcântara Space Center, Federative Republic of Brazil",
  "country_code": "BRA",
  "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/location_150_20200803142405.jpg",
  "total_launch_count": 4,
  "total_landing_count": 0,
  "pads": [
    {
      "id": 240,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/240/?format=api",
      "agency_id": 1098,
      "name": "HANBIT Pad",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Alc%C3%A2ntara_Space_Center",
      "map_url": "https://www.google.com/maps?q=-2.31698,-44.36873",
      "latitude": -2.31698,
      "longitude": -44.36873,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_hanbit_pad_20251021114902.jpg",
      "total_launch_count": 2
    },
    {
      "id": 146,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/146/?format=api",
      "agency_id": null,
      "name": "VLS Pad",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Alc%C3%A2ntara_Launch_Center",
      "map_url": "https://www.google.com/maps?q=-2.3177,-44.369984",
      "latitude": -2.3177,
      "longitude": -44.369984,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_146_20200803143337.jpg",
      "total_launch_count": 2
    }
  ]
}