---
title: "List"
method: GET
path: "/locations"
tags: ["Locations"]
---

# List

`GET /locations`

Get a list of your `location` objects in GeoJSON format. To get all locations, use the endpoint without any filters.

## Query parameters

- `filters` union
  - object
    - `name` string, required — Get location by name, this returns only one location at a time
    - `id` string — Get location by id, this returns only one location at a time
  - object
    - `name` string — Get location by name, this returns only one location at a time
    - `id` string, required — Get location by id, this returns only one location at a time
- `per_page` number
- `cursor` string
- `sort` string

## Response `200`

Success - locations fetched

- object
  - `data` object[]
    - `id` string
    - `name` string
    - `aoiSize` number
    - `is_deleted` boolean
  - `links` object[]
    - `description` string
    - `uri` string
  - `pagination` object
    - `cursor` object
      - `self` string
      - `next` string
    - `per_page` number
    - `sort` string

## Other responses

- `400` — Bad request
- `404` — Location not found
- `4XX` — Client-side error

---

[API](https://skmtc.net/skywatch/apis/api-specification.md) · [All operations](https://skmtc.net/skywatch/apis/api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/skywatch/api-specification/revisions/51f7c5a8d15d/schema)
