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: 519
Content-Type: application/json
Vary: Accept-Language, Cookie
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block

[
  [
    1526932800.0,
    1479
  ],
  [
    1526936400.0,
    1148
  ],
  [
    1526940000.0,
    1526
  ],
  [
    1526943600.0,
    985
  ],
  [
    1526947200.0,
    1129
  ],
  [
    1526950800.0,
    1336
  ],
  [
    1526954400.0,
    1403
  ],
  [
    1526958000.0,
    505
  ],
  [
    1526961600.0,
    909
  ],
  [
    1526965200.0,
    752
  ],
  [
    1526968800.0,
    773
  ],
  [
    1526972400.0,
    1283
  ],
  [
    1526976000.0,
    475
  ],
  [
    1526979600.0,
    1162
  ],
  [
    1526983200.0,
    1155
  ],
  [
    1526986800.0,
    1572
  ],
  [
    1526990400.0,
    1099
  ],
  [
    1526994000.0,
    642
  ],
  [
    1526997600.0,
    552
  ],
  [
    1527001200.0,
    1719
  ],
  [
    1527004800.0,
    706
  ],
  [
    1527008400.0,
    1818
  ],
  [
    1527012000.0,
    1564
  ],
  [
    1527015600.0,
    1897
  ]
]