Get event stats
org:read
Path parameters
The ID or slug of the organization.
Query parameters
The metric to plot on the Y axis. Accepts any aggregation function. Defaults to
count(). Repeat to request multiple series: yAxis=count()&yAxis=p95(transaction.duration).A Sentry search query to filter the events included in the stats. Uses the same syntax as the events query endpoint.
Filter by project ID. Repeat for multiple projects.
Filter by environment name.
A relative time window. Examples:
1h, 24h, 7d, 14d, 30d. Cannot be combined with start/end.ISO 8601 start of the absolute time range. Requires
end.ISO 8601 end of the absolute time range. Requires
start.The time bucket size for each data point. Examples:
1m, 5m, 1h, 1d. Sentry may adjust this to ensure a reasonable number of data points.When set, Sentry groups results by the top N unique values of the
field parameter, returning one time series per group. Maximum is 10.When using
topEvents, the field to group by (e.g. transaction, error.type).An optional string identifying the caller for query attribution.
Example request
Example response (single series)
data is a [unix_timestamp, [{"count": value}]] pair.
Example response (multiple yAxis)
When you request multipleyAxis values, the response contains a top-level key for each metric:
Response fields
An array of
[timestamp, [{count: value}]] data points. Each timestamp is a Unix epoch integer.Unix timestamp of the start of the time range.
Unix timestamp of the end of the time range.