Event segmentation
Changed onReturn metrics for one or two events over a date range, optionally segmented and grouped. URL-encode special characters in event types and property names.
Request
- Base URLhttps://amplitude.com
- AuthHTTP basic
Query parameters
Event definition as a JSON object with event_type and optional filters and group_by. Use _active for any active event, _all for any event, and prefix custom events with ce:.
Second event definition, same shape as e.
First date included in the data series, formatted YYYYMMDD.
Last date included in the data series, formatted YYYYMMDD.
Metric to return. Non-property metrics: uniques, totals, pct_dau, average. Property metrics: histogram, sums, value_avg.
Interval: 1 for daily, 7 for weekly, 30 for monthly. Use -300000, -3600000 for realtime intervals.
Segment definitions, as a JSON array of filter condition objects. Repeat the parameter for multiple segments.
Property to group by, for example platform. Available only with a single segment. Limit: two.
Number of group-by values returned. Max 1000.
Response
Series data with labels and per-series values.
Changes
- info
added the media type
*/*for the response with the status - info
added the media type
*/*for the response with the status - info
added the media type
*/*for the response with the status
- info