Retrieve Event Counts for an Organization

GET /api/0/organizations/{organization_slug}/stats/

Caution

This endpoint may change in the future without notice.

Return a set of points representing a normalized timestamp and the number of events seen in the period.

Path Parameters:

organization_slug (string) – the slug of the organization for which the stats should be retrieved.

Query Parameters:
  • stat (string) – the name of the stat to query ("received", "rejected", "blacklisted")
  • since (timestamp) – a timestamp to set the start of the query in seconds since UNIX epoch.
  • until (timestamp) – a timestamp to set the end of the query in seconds since UNIX epoch.
  • resolution (string) – an explicit resolution to search for (eg: 10s). This should not be used unless you are familiar with Sentry’s internals as it’s restricted to pre-defined values.
Authentication:

required

Method:

GET

Path:

/api/0/organizations/{organization_slug}/stats/

Example

GET /api/0/organizations/the-interstellar-jurisdiction/stats/ HTTP/1.1
Authorization: Basic ___ENCODED_API_KEY___
Host: app.getsentry.com
HTTP/1.1 200 OK
Allow: GET, HEAD, OPTIONS
Content-Language: en
Content-Length: 529
Content-Type: application/json
Vary: Accept-Language, Cookie
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block

[
  [
    1519056000.0,
    6066
  ],
  [
    1519059600.0,
    8146
  ],
  [
    1519063200.0,
    7247
  ],
  [
    1519066800.0,
    7689
  ],
  [
    1519070400.0,
    8852
  ],
  [
    1519074000.0,
    6726
  ],
  [
    1519077600.0,
    9312
  ],
  [
    1519081200.0,
    7083
  ],
  [
    1519084800.0,
    7759
  ],
  [
    1519088400.0,
    7859
  ],
  [
    1519092000.0,
    7377
  ],
  [
    1519095600.0,
    5415
  ],
  [
    1519099200.0,
    8638
  ],
  [
    1519102800.0,
    7375
  ],
  [
    1519106400.0,
    8722
  ],
  [
    1519110000.0,
    6716
  ],
  [
    1519113600.0,
    7374
  ],
  [
    1519117200.0,
    5373
  ],
  [
    1519120800.0,
    7437
  ],
  [
    1519124400.0,
    8696
  ],
  [
    1519128000.0,
    8062
  ],
  [
    1519131600.0,
    6915
  ],
  [
    1519135200.0,
    5943
  ],
  [
    1519138800.0,
    10246
  ]
]