Retrieve Event Counts for an Organization

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

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

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.

Path Parameters:
  • organization_slug (string)

    the slug of the organization for which the stats should be retrieved.

Authentication: required
Method: GET
Path: /api/0/organizations/{organization_slug}/stats/

Example

GET /api/0/organizations/the-interstellar-jurisdiction/stats/ HTTP/1.1
Host: sentry.io
Authorization: Bearer <token>
HTTP/1.1 200 OK
Content-Length: 528
X-XSS-Protection: 1; mode=block
Content-Language: en
X-Content-Type-Options: nosniff
Vary: Accept-Language, Cookie
Allow: GET, HEAD, OPTIONS
X-Frame-Options: deny
Content-Type: application/json

[
  [
    1541455200.0, 
    8264
  ], 
  [
    1541458800.0, 
    6564
  ], 
  [
    1541462400.0, 
    8652
  ], 
  [
    1541466000.0, 
    7436
  ], 
  [
    1541469600.0, 
    8127
  ], 
  [
    1541473200.0, 
    7643
  ], 
  [
    1541476800.0, 
    6518
  ], 
  [
    1541480400.0, 
    6752
  ], 
  [
    1541484000.0, 
    6559
  ], 
  [
    1541487600.0, 
    7039
  ], 
  [
    1541491200.0, 
    7384
  ], 
  [
    1541494800.0, 
    6265
  ], 
  [
    1541498400.0, 
    8390
  ], 
  [
    1541502000.0, 
    6393
  ], 
  [
    1541505600.0, 
    7298
  ], 
  [
    1541509200.0, 
    7422
  ], 
  [
    1541512800.0, 
    5603
  ], 
  [
    1541516400.0, 
    6846
  ], 
  [
    1541520000.0, 
    8886
  ], 
  [
    1541523600.0, 
    6544
  ], 
  [
    1541527200.0, 
    8812
  ], 
  [
    1541530800.0, 
    8172
  ], 
  [
    1541534400.0, 
    5733
  ], 
  [
    1541538000.0, 
    9435
  ]
]