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

[
  [
    1526925600.0,
    5672
  ],
  [
    1526929200.0,
    6997
  ],
  [
    1526932800.0,
    6452
  ],
  [
    1526936400.0,
    7454
  ],
  [
    1526940000.0,
    9707
  ],
  [
    1526943600.0,
    8709
  ],
  [
    1526947200.0,
    6858
  ],
  [
    1526950800.0,
    7554
  ],
  [
    1526954400.0,
    6944
  ],
  [
    1526958000.0,
    9534
  ],
  [
    1526961600.0,
    5876
  ],
  [
    1526965200.0,
    8644
  ],
  [
    1526968800.0,
    8000
  ],
  [
    1526972400.0,
    6077
  ],
  [
    1526976000.0,
    8349
  ],
  [
    1526979600.0,
    8606
  ],
  [
    1526983200.0,
    9617
  ],
  [
    1526986800.0,
    7103
  ],
  [
    1526990400.0,
    5950
  ],
  [
    1526994000.0,
    7679
  ],
  [
    1526997600.0,
    8876
  ],
  [
    1527001200.0,
    5412
  ],
  [
    1527004800.0,
    6606
  ],
  [
    1527008400.0,
    11590
  ]
]