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 {base64-encoded-key-here}
HTTP/1.1 200 OK
Content-Length: 529
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

[
  [
    1537372800.0, 
    8169
  ], 
  [
    1537376400.0, 
    6465
  ], 
  [
    1537380000.0, 
    6768
  ], 
  [
    1537383600.0, 
    7098
  ], 
  [
    1537387200.0, 
    6564
  ], 
  [
    1537390800.0, 
    5267
  ], 
  [
    1537394400.0, 
    7445
  ], 
  [
    1537398000.0, 
    7222
  ], 
  [
    1537401600.0, 
    7150
  ], 
  [
    1537405200.0, 
    7188
  ], 
  [
    1537408800.0, 
    8555
  ], 
  [
    1537412400.0, 
    6345
  ], 
  [
    1537416000.0, 
    8037
  ], 
  [
    1537419600.0, 
    8262
  ], 
  [
    1537423200.0, 
    6639
  ], 
  [
    1537426800.0, 
    7635
  ], 
  [
    1537430400.0, 
    7085
  ], 
  [
    1537434000.0, 
    5867
  ], 
  [
    1537437600.0, 
    7561
  ], 
  [
    1537441200.0, 
    8639
  ], 
  [
    1537444800.0, 
    7306
  ], 
  [
    1537448400.0, 
    7366
  ], 
  [
    1537452000.0, 
    8104
  ], 
  [
    1537455600.0, 
    12952
  ]
]