Retrieve Event Counts for a Project

GET /api/0/projects/{organization_slug}/{project_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", "blacklisted", generated)

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

  • project_slug (string)

    the slug of the project.

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

Example

GET /api/0/projects/the-interstellar-jurisdiction/pump-station/stats/ HTTP/1.1
Host: sentry.io
Authorization: Bearer <token>
HTTP/1.1 200 OK
Content-Length: 521
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, 
    1184
  ], 
  [
    1541458800.0, 
    1410
  ], 
  [
    1541462400.0, 
    1440
  ], 
  [
    1541466000.0, 
    1682
  ], 
  [
    1541469600.0, 
    1203
  ], 
  [
    1541473200.0, 
    497
  ], 
  [
    1541476800.0, 
    661
  ], 
  [
    1541480400.0, 
    1481
  ], 
  [
    1541484000.0, 
    678
  ], 
  [
    1541487600.0, 
    1857
  ], 
  [
    1541491200.0, 
    819
  ], 
  [
    1541494800.0, 
    1013
  ], 
  [
    1541498400.0, 
    1883
  ], 
  [
    1541502000.0, 
    1450
  ], 
  [
    1541505600.0, 
    1102
  ], 
  [
    1541509200.0, 
    1317
  ], 
  [
    1541512800.0, 
    1017
  ], 
  [
    1541516400.0, 
    813
  ], 
  [
    1541520000.0, 
    1189
  ], 
  [
    1541523600.0, 
    496
  ], 
  [
    1541527200.0, 
    1936
  ], 
  [
    1541530800.0, 
    1405
  ], 
  [
    1541534400.0, 
    617
  ], 
  [
    1541538000.0, 
    1533
  ]
]