Retrieve Event Counts for a Team

GET /api/0/teams/{organization_slug}/{team_slug}/stats/

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

Query ranges are limited to Sentry’s configured time-series resolutions.

Query Parameters:
  • stat (string)

    the name of the stat to query ("received", "rejected")

  • 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.

  • team_slug (string)

    the slug of the team.

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

Example

GET /api/0/teams/the-interstellar-jurisdiction/powerful-abolitionist/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, 
    3302
  ], 
  [
    1541458800.0, 
    3832
  ], 
  [
    1541462400.0, 
    3669
  ], 
  [
    1541466000.0, 
    3533
  ], 
  [
    1541469600.0, 
    3499
  ], 
  [
    1541473200.0, 
    3201
  ], 
  [
    1541476800.0, 
    3769
  ], 
  [
    1541480400.0, 
    2706
  ], 
  [
    1541484000.0, 
    2698
  ], 
  [
    1541487600.0, 
    3747
  ], 
  [
    1541491200.0, 
    3261
  ], 
  [
    1541494800.0, 
    2860
  ], 
  [
    1541498400.0, 
    4350
  ], 
  [
    1541502000.0, 
    2924
  ], 
  [
    1541505600.0, 
    3389
  ], 
  [
    1541509200.0, 
    2931
  ], 
  [
    1541512800.0, 
    3132
  ], 
  [
    1541516400.0, 
    3213
  ], 
  [
    1541520000.0, 
    3650
  ], 
  [
    1541523600.0, 
    3096
  ], 
  [
    1541527200.0, 
    3845
  ], 
  [
    1541530800.0, 
    3545
  ], 
  [
    1541534400.0, 
    2880
  ], 
  [
    1541538000.0, 
    4057
  ]
]