Retrieve Event Counts for a Project

GET /api/0/projects/{organization_slug}/{project_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.

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

Path Parameters:
  • organization_slug (string) – the slug of the organization.
  • project_slug (string) – the slug of the project.
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.
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
Authorization: Basic ___ENCODED_API_KEY___
Host: app.getsentry.com
HTTP/1.1 200 OK
Allow: GET, HEAD, OPTIONS
Content-Language: en
Content-Length: 520
Content-Type: application/json
Vary: Accept-Language, Cookie
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block

[
  [
    1519056000.0,
    1399
  ],
  [
    1519059600.0,
    1305
  ],
  [
    1519063200.0,
    1316
  ],
  [
    1519066800.0,
    1646
  ],
  [
    1519070400.0,
    1338
  ],
  [
    1519074000.0,
    1278
  ],
  [
    1519077600.0,
    2088
  ],
  [
    1519081200.0,
    889
  ],
  [
    1519084800.0,
    784
  ],
  [
    1519088400.0,
    859
  ],
  [
    1519092000.0,
    1312
  ],
  [
    1519095600.0,
    424
  ],
  [
    1519099200.0,
    1228
  ],
  [
    1519102800.0,
    1034
  ],
  [
    1519106400.0,
    1142
  ],
  [
    1519110000.0,
    607
  ],
  [
    1519113600.0,
    1771
  ],
  [
    1519117200.0,
    843
  ],
  [
    1519120800.0,
    767
  ],
  [
    1519124400.0,
    1889
  ],
  [
    1519128000.0,
    1594
  ],
  [
    1519131600.0,
    1179
  ],
  [
    1519135200.0,
    916
  ],
  [
    1519138800.0,
    1911
  ]
]