This endpoint provides a way to query dashboard analytics without having to access the Branch Dashboard.
Maximum number of results to return in the response. If granularity is set to day, Branch will pull results up to the limit for each day. So if limit is set to 1000 and 5 days worth of data is queried, with granularity=day, then this API will return up to 5000 results.
A pagination parameter indicating the index of the first result to return in the response. Eg, with 100 results returned, setting "after" to 50 would return elements 51-100
Returned as query parameter on the "paging" object nexturl and previous_url. Locks the last event to count for a query, so new events that occur between queries are not added to the results (prevents count change over time)
Query Request Body
The Branch key of the app analytics information is being pulled for.
The Branch secret of the app, used for authentication.
A timestamp representing the oldest date to return data for. Timezone of the timestamp is set in your Branch Dashboard configuration. Please note that start_date cannot be earlier than 2017-10-14.
The last timestamp (exclusive) to return data for. No events that triggered after the enddate will be counted in the query results. Timezone of the timestamp is set in your Branch Dashboard configuration. Please note that end_date cannot be more than 7 days after the startdate
The type of event to query for. The values are valid Branch data sources. Here are the descriptions:
eo_impression
- Real-time User-device level impressions/ad-views triggered via Impression Tracking Ad Links. SAN Ad Partner's impressions not included in this data source.eo_click
- Real-time user-device level Link clicks recorded through User Clicks on the Branch Links. SAN Ad Partner's clicks are not included in this bucket.xx_impression
- Combined Aggregated Data Source containing both Real-Time user-device level impressions and the SAN Ad Partner's Impressions passed to Branch Systems from SAN servers.xx_click
- Combined Aggregated Data source containing both Reat-Time User-device level Clicks and the SAN Ad Partner's Clicks passed to Branch systems from SAN servers.
How to count events towards the final result count. When using unique_count, each event is only counted if an event by that user has not already been seen.
List of event fields to use as splits for the query. Results counts are returned grouped with other events that have matchings values for each key provided in dimensions.
This field related to Result formatting. De-dupe unattributed installs caused by duplicate events from non-opt-in users coming from paid ads.
This field related to Result formatting. Range of time to roll multiple events into a single result count. Eg, with a value of "day" the counts for each day are returned independently, where "all" would return a single count for the entire time range.
Field indicates which key of result to sort results on. Only supports 1 sort key as of now. Possible values are any element of query "dimensions" or the value of "aggregation" in the query
Field indicates the sorting order of the output.
Whether to return result objects where the result count was 0. If set to false, results with count = 0 will be omitted from the response. If result is empty and zerofill=true, fields will be loaded with null/0 to provide a schema.
Status of aggregate export
"\"{\n \"results\": [\n {\n \"result\": {\n \"attributed\": \"true\",\n \"total_count\": 129\n },\n \"timestamp\": \"2023-05-01T00:00:00.000-08:00\"\n },\n {\n \"result\": {\n \"attributed\": \"true\",\n \"total_count\": 125\n },\n \"timestamp\": \"2023-05-04T00:00:00.000-08:00\"\n },\n {\n \"result\": {\n \"attributed\": \"true\",\n \"total_count\": 120\n },\n \"timestamp\": \"2023-05-02T00:00:00.000-08:00\"\n },\n {\n \"result\": {\n \"attributed\": \"false\",\n \"total_count\": 95\n },\n \"timestamp\": \"2023-05-04T00:00:00.000-08:00\"\n },\n {\n \"result\": {\n \"attributed\": \"false\",\n \"total_count\": 79\n },\n \"timestamp\": \"2023-05-06T00:00:00.000-08:00\"\n }\n ],\n \"paging\": {\n \"next_url\": \"/v1/query/analytics?limit=5&after=5\",\n \"total_count\": 14\n }\n }\" \n"
N/A
URL to next result set
Number of total records retrieved against search
Authentication Failed
"{\n \"error\": {\n \"message\": \"Authentication failed !\",\n \"code\": 400\n }\n}"