Get data analysis by traffic channel
POST/openapi/2026-01/data-analysis/traffic-channel
Retrieve traffic channel analytics grouped by traffic type and traffic channel, including visiting users, sales, orders and each of their shares of the grand total.
Request
- application/json
- Body
- Example
Bodyrequired
last_referrer_first_show: Traffic type (first-level channel)last_referrer_show: Traffic channel (second-level channel)uv: Number of visiting userssales: Sales amountorders: Number of ordersuv_rate: Share of visiting users against the grand totalsales_rate: Share of sales against the grand totalorders_rate: Share of orders against the grand totalin,not in-> value is an ARRAY, e.g. ["Social"]. A scalar will NOT match, so always send an array for these operators.like,not like-> value is a STRING, e.g. "google"=,>,>=,<,<=-> value is a SCALAR (string or number) Supported keys are the two dimensions:last_referrer_first_showandlast_referrer_show; entries are combined with AND. Unknown keys or unsupported operators are silently ignored, so a filter "not taking effect" usually means a mistyped key/operator. Valid dimension values are the ones returned by the traffic channel options endpoint. e.g. {"last_referrer_first_show": {"operator": "in", "value": ["Social"]}, "last_referrer_show": {"operator": "in", "value": ["Facebook", "TikTok"]}}no_filter_crawler: do not filter; count all traffic (default)official_crawler: exclude known crawlers/bots
Start time, a Unix timestamp in seconds passed as a string, e.g. "1748736000"
End time, a Unix timestamp in seconds passed as a string, e.g. "1781481600". Should be greater than begin_time
Dimensions to group by. Supported values:
Metrics to query. Supported values:
Notice: Values outside the range -12 to 14 might lead to unexpected results in time-based calculations. Time zone offset (in hours) used for analysis. Recommended range: -12 to 14
Cursor for pagination
Page size for pagination
10Field to sort by. Must be one of the requested metrics; uv_rate, sales_rate and
orders_rate sort by their underlying raw values
Sorting direction: asc (ascending) or desc (descending)
Whether to return the summary grand-total row
Dimension filter conditions as a JSON string, keyed by dimension name:
{"<dimension>": {"operator": "<operator>", "value": <value>}}
The value type to send depends on the operator (operators are case-insensitive):
Crawler-filtering policy that controls whether bot/crawler traffic is excluded from the statistics. Values:
{
"begin_time": "string",
"end_time": "string",
"dimensions": [
"string"
],
"metrics": [
"string"
],
"time_zone": 0,
"cursor": "string",
"page_size": 10,
"sort_by": "string",
"sort_direction": "string",
"has_summary": true,
"filters": "string",
"filter_crawler_type": "string"
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
- Array [
- ]
error code
error message
data object
Total number of dimension combinations (pagination total)
Latest statistics update time, e.g. "2026-03-26T00:00:00Z"
Cursor for pagination
Whether there are more records
data object[]
List of traffic channel report rows
Traffic type (first-level channel), e.g. "Social". Returned when
last_referrer_first_show is requested in dimensions
Traffic channel (second-level channel), e.g. "Facebook". Returned when
last_referrer_show is requested in dimensions
Number of visiting users, formatted string with thousands separators, e.g. "1,234"
Number of visiting users, numeric value
Sales amount, formatted string with thousands separators, e.g. "5,678.90"
Sales amount, numeric value
Number of orders, formatted string with thousands separators, e.g. "89"
Number of orders, numeric value
Share of visiting users against the grand total, formatted string, e.g. "45.6%"
Share of visiting users against the grand total, numeric value, e.g. 45.6 (represents 45.6%)
Share of sales against the grand total, formatted string, e.g. "32.1%"
Share of sales against the grand total, numeric value, e.g. 32.1 (represents 32.1%)
Share of orders against the grand total, formatted string, e.g. "28.7%"
Share of orders against the grand total, numeric value, e.g. 28.7 (represents 28.7%)
summary object
Grand-total row, returned when has_summary is true
Traffic type (first-level channel), e.g. "Social". Returned when
last_referrer_first_show is requested in dimensions
Traffic channel (second-level channel), e.g. "Facebook". Returned when
last_referrer_show is requested in dimensions
Number of visiting users, formatted string with thousands separators, e.g. "1,234"
Number of visiting users, numeric value
Sales amount, formatted string with thousands separators, e.g. "5,678.90"
Sales amount, numeric value
Number of orders, formatted string with thousands separators, e.g. "89"
Number of orders, numeric value
Share of visiting users against the grand total, formatted string, e.g. "45.6%"
Share of visiting users against the grand total, numeric value, e.g. 45.6 (represents 45.6%)
Share of sales against the grand total, formatted string, e.g. "32.1%"
Share of sales against the grand total, numeric value, e.g. 32.1 (represents 32.1%)
Share of orders against the grand total, formatted string, e.g. "28.7%"
Share of orders against the grand total, numeric value, e.g. 28.7 (represents 28.7%)
{
"code": "string",
"message": "string",
"data": {
"count": 0,
"last_updated_at": "string",
"cursor": "string",
"has_more": true,
"data": [
{
"last_referrer_first_show": "string",
"last_referrer_show": "string",
"uv": "string",
"uv_original": 0,
"sales": "string",
"sales_original": 0,
"orders": "string",
"orders_original": 0,
"uv_rate": "string",
"uv_rate_original": 0,
"sales_rate": "string",
"sales_rate_original": 0,
"orders_rate": "string",
"orders_rate_original": 0
}
],
"summary": {
"last_referrer_first_show": "string",
"last_referrer_show": "string",
"uv": "string",
"uv_original": 0,
"sales": "string",
"sales_original": 0,
"orders": "string",
"orders_original": 0,
"uv_rate": "string",
"uv_rate_original": 0,
"sales_rate": "string",
"sales_rate_original": 0,
"orders_rate": "string",
"orders_rate_original": 0
}
}
}