Skip to main content

Events Analysis model API

Last updated 10/03/2026

For how to call the API, see the calling method described in the Open API document.

To learn about use cases, read Events Analysis in the user guide.

1. Events Analysis query​

Endpoint URL

/open/event-analyze?token=xxx

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key

Request body parameters​

{
"eventView": {
"comparedByTime": true,
"comparedStartTime": "2021-12-14 00:00:00",
"comparedEndTime": "2021-12-20 23:59:59",
"comparedRecentDay": "8-14",
"startTime": "2021-12-21 00:00:00",
"endTime": "2021-12-27 23:59:59",
"recentDay": "1-7",
"timeParticleSize": "day",
"eventSplit": {
"event": {
"eventDesc": "Login",
"eventName": "login"
},
"groupByProp": {
"columnDesc": "Browser",
"columnName": "browser",
"propertyRange": "",
"tableType": "event"
}
},
"groupBy": [{
"columnDesc": "Brand",
"columnName": "brand",
"propertyRange": "",
"specifiedClusterDate": "2021-12-28",
"tableType": "event"
}],
"relation": "and",
"filts": [{
"columnDesc": "Brand",
"columnName": "brand",
"comparator": "equal",
"filterType": "SIMPLE",
"ftv": ["Apple", "Xiaomi"],
"specifiedClusterDate": "2021-12-28",
"tableType": "event",
"timeUnit": ""
}],
"queryFeature": {
"approximateOn": true,
"globalQueryOn": false
}
},
"events": [{
"analysis": "TOTAL_TIMES",
"analysisParams": "",
"eventName": "login",
"eventNameDisplay": "Total count of Login",
"eventSplitIndexes": [0],
"eventUuid": "7FonAy-G",
"filts": [],
"quota": "",
"relation": "and",
"type": "normal"
}, {
"analysis": "TRIG_USER_NUM",
"analysisParams": "",
"eventName": "activity_attend",
"eventNameDisplay": "Uniques of Attend Activity",
"eventUuid": "K9A5NDAz",
"filts": [{
"columnDesc": "App Version",
"columnName": "app_version",
"comparator": "notNull",
"filterType": "SIMPLE",
"ftv": [],
"specifiedClusterDate": "2021-12-28",
"tableType": "event",
"timeUnit": ""
}],
"quota": "",
"quotaEntities": [{
"index": 0,
"taIdMeasure": {
"columnDesc": "User Unique ID",
"columnName": "#user_id",
"tableType": "event"
}
}],
"relation": "and",
"type": "normal"
}, {
"customEvent": "logout.PER_CAPITA_TIMES",
"customFilters": [],
"eventName": "Custom Metric",
"eventNameDisplay": "",
"eventSplitIndexes": [],
"eventUuid": "gxqT19xz",
"filts": [],
"format": "float",
"quota": "",
"quotaEntities": [{
"index": 0,
"taIdMeasure": {
"columnDesc": "Email",
"columnName": "email",
"tableType": "user"
}
}],
"quotaTimeRanges": [{
"index": 0,
"params": ["1"],
"type": "THIS_WEEK"
}],
"relation": "and",
"type": "customized"
}],
"projectId": 377,
"useSameResultKey": false,
"useCache": true,
"limit": 1000,
"timeoutSeconds": 10,
"zoneOffset": 10
}
tip

The input parameters consist of several parts: the basic parameters are required; the time comparison, event breakdown, group-by, global filter, and query configuration parameters are optional; and you use either normal analysis metrics or custom analysis metrics.

Request parameters​

$$Parameter nameExample valueParameter typeRequiredDescription
eventView-ObjectYesCommon properties of the metrics
eventView.comparedByTimetrueBooleanNoWhether to compare time. TRUE: yes, FALSE: no

eventView.comparedStartTime

2021-12-14 00:00:00String

No

Start time of the comparison period (format: yyyy-MM-dd HH:mm:ss). Takes effect when the relative comparison time is empty
eventView.comparedEndTime2021-12-20 23:59:59StringNoEnd time of the comparison period (format: yyyy-MM-dd HH:mm:ss). Takes effect when the relative comparison time is empty
eventView.comparedRecentDay8-14StringNoRelative comparison time (when comparedByTime is TRUE, this item, the comparison start time, and the comparison end time can't all be empty)
eventView.startTime2021-12-21 00:00:00StringNoStart time (format: yyyy-MM-dd HH:mm:ss). Takes effect when the relative time is empty
eventView.endTime2021-12-27 23:59:59StringNoEnd time (format: yyyy-MM-dd HH:mm:ss). Takes effect when the relative time is empty
eventView.recentDay1-7StringNoRelative time (this item, the start time, and the end time can't all be empty)
eventView.relationandStringNoLogical relation. and: logical AND, or: logical OR
eventView.timeParticleSizedayStringYes

Time unit of the analysis

  • minute: every 1 minute
  • minute5: every 5 minutes (supported since v3.5)
  • minute10: every 10 minutes (supported since v3.5)
  • hour: hourly
  • day: daily
  • week: weekly
  • month: monthly
  • total: total
eventView.eventSplit-ObjectNoEvent breakdown information
eventView.eventSplit.event-ObjectYesEvent information of the event breakdown
eventView.eventSplit.event.eventDescLoginStringNoDisplay name of the event breakdown metric
eventView.eventSplit.event.eventNameloginStringYesEvent name of the event breakdown metric
eventView.eventSplit.groupByProp-ObjectYesGroup information of the event breakdown metric
eventView.eventSplit.groupByProp.columnDescBrowserStringNoDisplay name of the event breakdown group field
eventView.eventSplit.groupByProp.columnNamebrowserStringYesField name of the event breakdown group field
eventView.eventSplit.groupByProp.propertyRangeStringNoProperty range of the event breakdown group
eventView.eventSplit.groupByProp.tableTypeeventStringYesTable type enum values
eventView.groupBy-ListNoGroup-by properties. There can be zero or more
eventView.groupBy.columnNamebrandStringYesField name
eventView.groupBy.columnDescBrandStringNoField display name
eventView.groupBy.propertyRangeStringNoCustom property range
eventView.groupBy.propertyRangeTypeStringNo

Property range type. When you group by a numeric property, you can use custom bucketing conditions

  • def: default ranges, divided automatically by the system
  • discrete: each value is a separate group
  • user_defined: user-defined. The custom content is set in propertyRange
eventView.groupBy.specifiedClusterDate2021-12-28StringNoUses the historical version of the tag for the specified date
eventView.groupBy.tableTypeeventStringYesTable type enum values
eventView.filts-ListNoGlobal filters
eventView.filts.columnDescBrandStringNoField display name
eventView.filts.columnNamebrandStringYesField name
eventView.filts.comparatorequalStringYesSee Filter expressions in the Query API
eventView.filts.filterTypeSIMPLEStringNoFilter mode. SIMPLE: simple, COMPOUND: compound. Defaults to SIMPLE
eventView.filts.ftv["Apple", "Xiaomi"]ListNoLiteral constants used as boundaries for property comparison
eventView.filts.specifiedClusterDate2021-12-28StringNoUses the historical version of the tag for the specified date
eventView.filts.tableTypeeventStringYesTable type enum values
eventView.filts.timeUnitStringNoUnit of the property comparison value, valid only for relativeEvent*: day, hour, minute
eventView.queryFeature-ObjectNoQuery configuration
eventView.queryFeature.approximateOntrueBooleanNoWhether to enable approximate calculation
events-ListYesList of event metrics
events.analysisTRIG_USER_NUMStringNoAnalysis type (aggregation operation). For details, see Event aggregation type enum values
events.analysisParamsStringNoParameter of the analysis type (can't be empty when analysis is PERCENTILE; value range: 1-100, indicating the percentile)
events.eventNameactivity_attendStringYesEvent name. In particular, you can use anyEvent to represent any event
events.eventNameDisplayUniques of Attend ActivityStringNoEvent display name
events.metricNameretention_rate_1StringNo

The metric to query, which represents a fixed analysis definition.

When you query by metric, events.eventName can be set to Custom Metric

events.eventUuidK9A5NDAzStringNoEvent UUID, used to uniquely identify the event
events.filts-ListNoList of conditions
events.filts.columnDescApp versionStringNoField display name
events.filts.columnNameapp_versionStringYesField name
events.filts.comparatornotNullStringYesSee Filter expressions in the Query API
events.filts.filterTypeSIMPLEStringNoFilter mode. SIMPLE: simple, COMPOUND: compound. Defaults to SIMPLE
events.filts.ftv[]ListNoLiteral constants used as boundaries for property comparison
events.filts.specifiedClusterDate2021-12-28StringNoUses the historical version of the tag for the specified date
events.filts.tableTypeeventStringYesTable type enum values
events.filts.timeUnitStringNoTime unit of the filter
events.quotaStringNoMetric property (used with analysis to specify which analysis type of which property)
events.quotaDescStringNoDisplay name of the metric property
events.quotaEntities-ListList of entities for the analyzed event metric
events.quotaEntities.index0IntegerYesIndex of the entity for the analyzed event metric
events.quotaEntities.taIdMeasure-ObjectID system configuration for the query
events.quotaEntities.taIdMeasure.columnDescUser Unique IDStringNoField display name
events.quotaEntities.taIdMeasure.columnName#user_idStringYesField name
events.quotaEntities.taIdMeasure.tableTypeeventStringYesTable type enum values
events.relationandStringNoLogical relation. and: logical AND, or: logical OR
events.typenormalStringYes

normal: normal analysis

customized: custom formula

events.customEventlogout.PER_CAPITA_TIMESStringNo

Formula expression, made up of analysis items or numeric constants combined by addition, subtraction, multiplication, and division. Analysis items take one of two forms: eventName.columnName.analysis or eventName.analysis.

When the formula contains analysis metrics, use a fixed prefix plus the metric name, for example:

$metric.metricName/eventName.columnName.analysis or

$metric.metricName1/$metric.metricName2

events.customFilters[]ListNoList of filters for the formula expression
events.eventNameCustom MetricStringYesEvent name of the metric. You can use anyEvent to represent any event
events.eventNameDisplayStringNoDisplay name of the custom metric
events.eventSplitIndexes[]ListNoItems included in the event breakdown

events.format

floatStringNo

Data display option

float: two decimal places, float3: three decimal places, float4: four decimal places, percent: percentage

events.quotaStringNoMetric property (used with analysis to specify which analysis type of which property)
events.quotaDescStringNoDisplay name of the metric property
events.quotaEntities-ListNoList of entities for the analyzed event metric
events.quotaEntities.index0IntegerYesIndex of the entity for the analyzed event metric
events.quotaEntities.taIdMeasure-ObjectYesID system configuration for the query
events.quotaEntities.taIdMeasure.columnDescEmailStringNoField display name
events.quotaEntities.taIdMeasure.columnNameemailStringYesField name
events.quotaEntities.taIdMeasure.tableTypeuserStringYesTable type enum values
events.quotaTimeRanges[]ListNoList of metric time period information
events.quotaTimeRanges.index0IntegerYesIndex of the time period
events.quotaTimeRanges.params["1"]ListNoTime period parameters. When events.quotaTimeRanges.type is TIME_RANGE, params is ["-3", "4"], which means from the past 3 days to the next 4 days
events.quotaTimeRanges.type

THIS_WEEK

StringYes

Time period type

LAST_DAYS: past N days, RECENT_DAYS: recent N days, THIS_WEEK: this week, THIS_MONTH: this month, TIME_RANGE: time range

events.relationandStringNoLogical relation. and: logical AND, or: logical OR

events.type

customizedStringYes

normal: normal analysis

customized: custom formula

projectId377IntegerYesProject ID
useSameResultKeyfalseBooleanNo

Whether to use the same event name when event names are identical

true: use the same event name

false: add a numbered prefix when event names are identical

useCachetrueBooleanYestrue means the cache is used
limit1000IntegerNoMaximum number of groups per analysis object. Optional. Defaults to 1000, with a maximum of 10000
timeoutSeconds10IntegerNoRequest timeout. The query task is canceled when it times out
zoneOffset10IntegerNoTime zone

Success response example​

{
"data": {
"result_generate_time": "2021-12-30 11:15:41",
"union_groups": [
[
"Safari",
"Apple"
],
[
"Firefox",
"Xiaomi"
],
[
"WeChat Built-in Browser",
"Apple"
],
[
"Overall",
"Apple"
],
[
"Overall",
"Xiaomi"
]
],
"x": [
"2021-12-23",
"2021-12-24",
"2021-12-25",
"2021-12-26",
"2021-12-27",
"2021-12-28",
"2021-12-29"
],
"x_compared": [
"2021-12-16",
"2021-12-17",
"2021-12-18",
"2021-12-19",
"2021-12-20",
"2021-12-21",
"2021-12-22"
],
"y": [
{
"login.TOTAL_TIMES": [
{
"group_cols": [
"Safari",
"Apple"
],
"group_num": 3,
"values": [
"0",
"0",
"0",
"0",
"0",
"0",
"0"
],
"values_compared": [
"447",
"980",
"1584",
"321",
"285",
"74",
"0"
]
},
{
"group_cols": [
"Firefox",
"Xiaomi"
],
"group_num": 3,
"values": [
"0",
"0",
"0",
"0",
"0",
"0",
"0"
],
"values_compared": [
"291",
"818",
"1128",
"272",
"219",
"58",
"0"
]
},
{
"group_cols": [
"WeChat Built-in Browser",
"Apple"
],
"group_num": 3,
"values": [
"0",
"0",
"0",
"0",
"0",
"0",
"0"
],
"values_compared": [
"231",
"500",
"764",
"214",
"155",
"35",
"0"
]
}
]
},
{
"activity_attend.TRIG_USER_NUM": [
{
"group_cols": [
"Overall",
"Apple"
],
"group_num": 2,
"values": [
"0",
"0",
"0",
"0",
"0",
"0",
"0"
],
"values_compared": [
"640",
"811",
"1251",
"1253",
"720",
"113",
"0"
]
},
{
"group_cols": [
"Overall",
"Xiaomi"
],
"group_num": 2,
"values": [
"0",
"0",
"0",
"0",
"0",
"0",
"0"
],
"values_compared": [
"277",
"439",
"600",
"666",
"364",
"59",
"0"
]
}
]
},
{
"Custom Metric": [
{
"group_cols": [
"Overall",
"Apple"
],
"group_num": 2,
"values": [
"1",
"1",
"1",
"1",
"0",
"0",
"0"
],
"values_compared": [
"1.01",
"1.01",
"1.01",
"1.01",
"1",
"1",
"1"
]
},
{
"group_cols": [
"Overall",
"Xiaomi"
],
"group_num": 2,
"values": [
"1",
"1",
"1",
"1",
"0",
"0",
"0"
],
"values_compared": [
"1.01",
"1.01",
"1.01",
"1.01",
"1",
"1",
"1"
]
}
]
}
]
},
"return_code": 0,
"return_message": "success"
}

Response parameters​

$$Parameter nameExample valueParameter typeDescription
data-ObjectReturned result
data.result_generate_time2021-12-29 12:00:00StringQuery result generation time
data.union_groups["Apple"]ListSet of all groups
data.x["2021-12-23"]ListX-axis time
data.x_compared["2021-12-16"]ListX-axis comparison time
data.y-ListList of Y-axis data
data.y.{metric name}-ListList of Y-axis metric information
data.y.{metric name}.group_cols["Apple"]ListY-axis metric groups
data.y.{metric name}.group_num3IntegerNumber of Y-axis metric groups
data.y.{metric name}.values["0"]ListY-axis metric values
data.y.{metric name}.values_compared["447"]ListY-axis metric values for the comparison period
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -1008,
"return_message": "Parameter (token) is empty"
}
Parameter nameExample valueParameter typeDescription
return_code-1008IntegerReturn code
return_messageParameter (token) is emptyStringReturn message

curl example

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"projectId": 377,"useSameResultKey": false,"useCache": true,"limit": 1000,"eventView": {"comparedByTime": true,"comparedStartTime": "2021-12-14 00:00:00","comparedEndTime": "2021-12-20 23:59:59","comparedRecentDay": "8-14","startTime": "2021-12-21 00:00:00","endTime": "2021-12-27 23:59:59","recentDay": "1-7","relation": "and","timeParticleSize": "day","eventSplit": {"event": {"eventDesc": "Login","eventName": "login"},"groupByProp": {"columnDesc": "Browser","columnName": "browser","propertyRange": "","tableType": "event"}},"groupBy": [{"columnDesc": "Brand","columnName": "brand","propertyRange": "","specifiedClusterDate": "2021-12-28","tableType": "event"}],"filts": [{"columnDesc": "Brand","columnName": "brand","comparator": "equal","filterType": "SIMPLE","ftv": ["Apple", "Xiaomi"],"specifiedClusterDate": "2021-12-28","tableType": "event","timeUnit": ""}],"queryFeature": {"approximateOn": true,"globalQueryOn": false}},"events": [{"analysis": "TOTAL_TIMES","analysisParams": "","eventName": "login","eventNameDisplay": "Total count of Login","eventSplitIndexes": [0],"eventUuid": "7FonAy-G","filts": [],"quota": "","relation": "and","type": "normal"}, {"analysis": "TRIG_USER_NUM","analysisParams": "","eventName": "activity_attend","eventNameDisplay": "Uniques of Attend Activity","eventUuid": "K9A5NDAz","filts": [{"columnDesc": "App Version","columnName": "app_version","comparator": "notNull","filterType": "SIMPLE","ftv": [],"specifiedClusterDate": "2021-12-28","tableType": "event","timeUnit": ""}],"quota": "","quotaEntities": [{"index": 0,"taIdMeasure": {"columnDesc": "User Unique ID","columnName": "#user_id","tableType": "event"}}],"relation": "and","type": "normal"}, {"customEvent": "logout.PER_CAPITA_TIMES","customFilters": [],"eventName": "Custom Metric","eventNameDisplay": "","eventSplitIndexes": [],"eventUuid": "gxqT19xz","filts": [],"format": "float","quota": "","quotaEntities": [{"index": 0,"taIdMeasure": {"columnDesc": "Email","columnName": "email","tableType": "user"}}],"quotaTimeRanges": [{"index": 0,"params": ["1"],"type": "THIS_WEEK"}],"relation": "and","type": "customized"}]}' 'http://ta2:8992/open/event-analyze?token=YOUR_TOKEN'

2. Events Analysis full download​

Endpoint URL

/open/streaming-download/event-analyze?token=xxx

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key

Request body parameters​

{
"eventView": {
"endTime": "2022-03-07 16:32:12",
"filts": [{
"columnDesc": "Level",
"columnName": "level",
"comparator": "greater",
"filterType": "SIMPLE",
"ftv": ["1"],
"specifiedClusterDate": "2022-03-08",
"tableType": "event",
"timeUnit": ""
}],
"groupBy": [{
"columnDesc": "channel",
"columnName": "channel",
"propertyRange": "",
"specifiedClusterDate": "2022-03-08",
"tableType": "event"
}],
"recentDay": "1-7",
"relation": "and",
"startTime": "2022-03-01 16:32:12",
"timeParticleSize": "day"
},
"events": [{
"analysis": "TOTAL_TIMES",
"analysisParams": "",
"eventName": "LogOut",
"eventNameDisplay": "Total count of LogOut",
"eventUuid": "QgfCSkCw",
"filts": [],
"quota": "",
"relation": "and",
"type": "normal"
}],
"projectId": 319,
"zoneOffset": 10
}

Request parameters​

$$Parameter nameExample valueParameter typeRequiredDescription
projectId0StringYesDescription
eventView-ObjectYesSame as the parameters of the Events Analysis query API
eventsListYesSame as the parameters of the Events Analysis query API
zoneOffset10IntegerNoTime zone
tip

You can export the request parameters directly from the Events Analysis page in AE

Response​

Same as the Events Analysis full download in AE

3. Events Analysis user list​

Endpoint URL

/open/event-user-list?token=xxx

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key

Request body parameters​

{
"projectId": 0,
"eventView": {
"startTime": "2019-11-24 00:00:00",
"endTime": "2019-11-26 00:00:00",
"recentDay": "1-3",
"timeParticleSize": "day",
"groupBy": [
{
"columnName": "#city",
"tableType": "event"
}
]
},
"events": [
{
"analysis": "TRIG_USER_NUM",
"eventName": "consume_item",
"quota": "#vp@dailyTask",
"relation": "and",
"type": "normal",
"filts": [
{
"columnName": "user_level",
"comparator": "equal",
"ftv": [
"5"
],
"tableType": "user"
}
],
}
],
"sliceDate": "2019-11-26",
"eventIndex": 0,
"sliceGroupVal": [
"Beijing"
],
"timeoutSeconds": 10,
"zoneOffset": 10
}

Request parameters​

$$Parameter nameExample valueParameter typeRequiredDescription
projectId0StringYesDescription
eventView-ObjectYesSame as the parameters of the Events Analysis query API
eventsListYesSame as the parameters of the Events Analysis query API
sliceDate"2019-11-26"StringNoDate to drill down into
sliceGroupVal["Beijing"]ListYesGroup to drill down into
eventIndex0intYesIndex of the metric to drill down into, starting from 0
timeoutSeconds10IntegerNoRequest timeout. The query task is canceled when it times out
zoneOffset10IntegerNoTime zone

Success response example​

{
"data": {
"datalist": [
{
"#account_id": "e78107482",
"#distinct_id": "e145056682",
"user_level": 5,
"register_time": "2019-11-26 14:36:13",
"diamond_num": 1006,
"latest_login_time": "2019-11-26 15:45:16",
"channel": "app store",
"#user_id": 33474682
},
{
"#account_id": "d7819213",
"#distinct_id": "d14521393",
"user_level": 5,
"register_time": "2019-11-26 23:25:14",
"diamond_num": 858,
"first_recharge_time": "2019-11-26 23:29:56",
"latest_login_time": "2019-11-26 23:32:48",
"channel": "app store",
"#user_id": 3351093
}
],
"columMeta": {
"#account_id": "Account ID",
"#distinct_id": "Distinct ID",
"user_level": "User Level",
"register_time": "Registration Time",
"diamond_num": "Current Diamonds",
"first_recharge_time": "First Top-up Time",
"latest_login_time": "Last Login Time",
"channel": "Channel"
}
},
"return_code": 0,
"return_message": "success"
}

Response parameters​

$$Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message
data-ObjectReturned result
data.datalist-List<Map>User information
data.columMeta-MapMapping of field meanings

Error response example

{
"return_code": -1008,
"return_message": "Parameter (token) is empty"
}
Parameter nameExample valueParameter typeDescription
return_code-1008IntegerReturn code
return_messageParameter (token) is emptyStringReturn message

4. Events Analysis user list download​

Endpoint URL

/open/streaming-download/event-user-list?token=xxx

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key

Request body parameters​

{
"eventView": {
"comparedByTime": false,
"comparedRecentDay": "",
"endTime": "2022-03-07 16:32:12",
"filts": [
{
"columnDesc": "Level",
"columnName": "level",
"comparator": "greater",
"filterType": "SIMPLE",
"ftv": [
"1"
],
"specifiedClusterDate": "2022-03-08",
"tableType": "event",
"timeUnit": ""
}
],
"groupBy": [
{
"columnDesc": "channel",
"columnName": "channel",
"propertyRange": "",
"specifiedClusterDate": "2022-03-08",
"tableType": "event"
}
],
"recentDay": "1-7",
"relation": "and",
"startTime": "2022-03-01 16:32:12",
"timeParticleSize": "day"
},
"events": [
{
"analysis": "TRIG_USER_NUM",
"analysisParams": "",
"eventName": "LogOut",
"eventNameDisplay": "Uniques of LogOut",
"eventUuid": "QgfCSkCw",
"filts": [],
"quota": "",
"quotaEntities": [
{
"index": 0,
"taIdMeasure": {
"columnDesc": "User Unique ID",
"columnName": "#user_id",
"tableType": "event"
}
}
],
"relation": "and",
"type": "normal"
}
],
"projectId": 319,
"sliceDate": "2022-03-01",
"eventIndex": 0,
"sliceGroupVal": [
"AppStore"
],
"selectedColumns": [
"#account_id",
"#distinct_id",
"accountid"
],
"zoneOffset": 10
}

Request parameters​

$$Parameter nameExample valueParameter typeRequiredDescription
projectId0StringYesDescription
eventView-ObjectYesSame as the parameters of the Events Analysis query API
eventsListYesSame as the parameters of the Events Analysis query API
sliceDate"2019-11-26"StringNoDate to drill down into
sliceGroupVal["Beijing"]ListYesGroup to drill down into
eventIndex0intYesIndex of the metric to drill down into, starting from 0
selectedColumns["#account_id"]ListYesColumns to download
zoneOffset10IntegerNoTime zone
tip

You can export the main structure of the request parameters directly from the Events Analysis page in AE, and then add the sliceDate, eventIndex, eventDate, sliceGroupVal, and selectedColumns parameters. You can capture the specific parameter values from the page's API requests.

Response​

Same as the Events Analysis user list download in AE

Events Analysis common enums​

Event aggregation type enum values​

ValueDescriptionRequires property
TOTAL_TIMESEvent totalNo
TRIG_USER_NUMUniquesNo
PER_CAPITA_TIMESTimes per userNo
SUMSumYes
AVGAverageYes
PER_CAPITA_NUMPer UserYes
MAXMaximumYes
MINMinimumYes
DISTINCTDeduplicationYes
TRUETrue totalsYes
FALSEFalse totalsYes
IS_NOT_EMPTYNot null totalsYes
IS_EMPTYNull totalsYes
ARRAY_DISTINCTDeduplication of arrayYes
ARRAY_SET_DISTINCTDeduplication of setYes
ARRAY_ITEM_DISTINCTDeduplication of elementYes
MEDIANMedianYes
PERCENTILEPercentileYes
Was this page helpful?