Numerically Average
Averages an expression for events per unit time. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
Request
- Base URLhttps://mixpanel.com/api/query
- Auth
- HTTP basic
- or HTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Required if using service account to authenticate request.
The id of the workspace if applicable.
The event that you wish to get data for. Note: this is a single event name, not an array.
The date in yyyy-mm-dd format to begin querying from. This date is inclusive.
The date in yyyy-mm-dd format to query to. This date is inclusive.
The expression to sum per unit time. The result of the expression should be a numeric value. If the expression is not numeric, a value of 0.0 is assumed. See the expressions section below.
This can be "hour" or "day". This determines the buckets into which the property values that you segment on are placed. The default value is "day".
An expression to filter events by. See the expression to segment below.
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.