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 {base64-encoded-key-here}
HTTP/1.1 200 OK
Content-Length: 517
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, 
    561
  ], 
  [
    1537376400.0, 
    639
  ], 
  [
    1537380000.0, 
    845
  ], 
  [
    1537383600.0, 
    780
  ], 
  [
    1537387200.0, 
    1339
  ], 
  [
    1537390800.0, 
    382
  ], 
  [
    1537394400.0, 
    876
  ], 
  [
    1537398000.0, 
    1010
  ], 
  [
    1537401600.0, 
    1616
  ], 
  [
    1537405200.0, 
    1848
  ], 
  [
    1537408800.0, 
    940
  ], 
  [
    1537412400.0, 
    1128
  ], 
  [
    1537416000.0, 
    1404
  ], 
  [
    1537419600.0, 
    609
  ], 
  [
    1537423200.0, 
    535
  ], 
  [
    1537426800.0, 
    732
  ], 
  [
    1537430400.0, 
    1784
  ], 
  [
    1537434000.0, 
    655
  ], 
  [
    1537437600.0, 
    1294
  ], 
  [
    1537441200.0, 
    1042
  ], 
  [
    1537444800.0, 
    1751
  ], 
  [
    1537448400.0, 
    1358
  ], 
  [
    1537452000.0, 
    1136
  ], 
  [
    1537455600.0, 
    2405
  ]
]