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)REQUIREDThe slug of the organization.
project_slug
(string)REQUIREDThe slug of the project.
Query Parameters:
stat
(string)- choices:
- received
- rejected
- blacklisted
- generated
The name of the stat to query
("received", "rejected", "blacklisted", "generated")
. since
(string)A timestamp to set the start of the query in seconds since UNIX epoch.
until
(string)A timestamp to set the end of the query in seconds since UNIX epoch.
resolution
(string)- choices:
- 10s
- 1h
- 1d
An explicit resolution to search for (one of
10s
,1h
, and1d
).
Scopes
You need to authenticate via bearer auth token.
<auth_token>
requires one of the following scopes:project:read
curl https://sentry.io/api/0/projects/{organization_slug}/{project_slug}/stats/ \ -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
[
[
1541455200,
1184
],
[
1541458800,
1410
],
[
1541462400,
1440
],
[
1541466000,
1682
],
[
1541469600,
1203
],
[
1541473200,
497
],
[
1541476800,
661
],
[
1541480400,
1481
],
[
1541484000,
678
],
[
1541487600,
1857
],
[
1541491200,
819
],
[
1541494800,
1013
],
[
1541498400,
1883
],
[
1541502000,
1450
],
[
1541505600,
1102
],
[
1541509200,
1317
],
[
1541512800,
1017
],
[
1541516400,
813
],
[
1541520000,
1189
],
[
1541523600,
496
],
[
1541527200,
1936
],
[
1541530800,
1405
],
[
1541534400,
617
],
[
1541538000,
1533
]
]