Aggregates custom events
Changed onCounts custom events on a project, within the requested date range. Results are either aggregated or broken down over time. Results can additionally be broken down by one dimension, and filtered by multiple dimensions.
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v1/query/web-analytics/events/aggregate
- Auth: HTTP bearer
Query parameters
The project identifier or the project name
[ "day", "eventName" ]
Number of distinct results, default to 10. Other results are grouped into "Others" group.
OData-compliant filter. Encode the value when sending it in a URL.
Allows filtering on one or multiple dimensions. By default, filters for production environment only.
Supported dimensions: country, deviceType, environment, requestPath, referrerHostname, osName, browserName, route, utmSource, utmMedium, utmCampaign, utmContent, utmTerm, eventName.
JSON dimensions filtered by key: flags/<name>, eventData/<property>, for example eventData/plan eq 'pro'. Wrap keys containing characters other than letters, digits, and underscores in single quotes, for example flags/'my-flag' eq 'true'.
Supported operations include eq, ne, in, and logical operators and, or, not with parentheses. Functions such as startswith are supported by the OData parser.
The Team identifier to perform the request on behalf of.
The Team slug to perform the request on behalf of.
Response
Changes
- breaking
added
subschema #1subschema #2to theresponse propertyoneOflist for the response status - info
removed
subschema #1subschema #2from theresponse propertyoneOflist for the response status
- breaking
- warning
for the
queryrequest parameterfilter, the maxLength was set to2048
- warning