---
title: "List an Organization's Selectors"
url: https://docs.sentry.io/api/replays/list-an-organizations-selectors/
---

# List an Organization's Selectors | Sentry Docs

GET /api/0/organizations/{organization\_id\_or\_slug}/replay-selectors/

Return a list of selectors for a given organization.

### Path Parameters

* `organization_id_or_slug` *(string)*

  REQUIRED

  The ID or slug of the organization the resource belongs to.

### Query Parameters:

* `environment` *(array(string))*

  The environment to filter by.

* `statsPeriod` *(string)*

  This defines the range of the time series, relative to now. The range is given in a `<number><unit>` format. For example `1d` for a one day range. Possible units are `m` for minutes, `h` for hours, `d` for days and `w` for weeks.You must either provide a `statsPeriod`, or a `start` and `end`.

* `start` *(string)*

  This defines the start of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds.Use along with `end` instead of `statsPeriod`.

* `end` *(string)*

  This defines the inclusive end of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds.Use along with `start` instead of `statsPeriod`.

* `project` *(array(undefined))*

  A list of project IDs or slugs to filter by.

* `projectSlug` *(array(string))*

  A list of project slugs to filter your results by.

* `sort` *(string)*

  The field to sort the output by.

* `sortBy` *(string)*

  The field to sort the output by.

* `orderBy` *(string)*

  The field to sort the output by.

* `cursor` *(string)*

  A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.

* `per_page` *(integer)*

  Limit the number of rows to return in the result. Default and maximum allowed is 100.

* `query` *(string)*

  Filters results by using [query syntax](https://docs.sentry.io/product/sentry-basics/search.md).

  Example: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)`

### Scopes

You need to [authenticate via bearer auth token.](https://docs.sentry.io/api/auth.md)

`<auth_token>` requires one of the following scopes:

* `org:admin`
* `org:read`
* `org:write`

```
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/replay-selectors/ \
 -H 'Authorization: Bearer <auth_token>'
```

RESPONSESCHEMA

```
Copied
{
  "data": [
    {
      "count_dead_clicks": 2,
      "count_rage_clicks": 1,
      "dom_element": "div#myid.class1.class2",
      "element": {
        "alt": "",
        "aria_label": "",
        "class": [
          "class1",
          "class2"
        ],
        "component_name": "",
        "id": "myid",
        "role": "",
        "tag": "div",
        "testid": "",
        "title": ""
      },
      "project_id": "1"
    }
  ]
}
```

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
