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

{
  "count": 52,
  "next": null,
  "previous": "https://ll.thespacedevs.com/2.0.0/location/?format=api&limit=10&offset=40",
  "results": [
    {
      "id": 146,
      "url": "https://ll.thespacedevs.com/2.0.0/location/146/?format=api",
      "name": "Svobodny Cosmodrome, Russian Federation",
      "country_code": "RUS",
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/location_146_20200803142450.jpg",
      "total_launch_count": 5,
      "total_landing_count": 0
    },
    {
      "id": 181,
      "url": "https://ll.thespacedevs.com/2.0.0/location/181/?format=api",
      "name": "Bowen Orbital Spaceport",
      "country_code": "AUS",
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/location_bowen_orbital_spaceport_20250227073649.jpg",
      "total_launch_count": 1,
      "total_landing_count": 0
    }
  ]
}