Get Data Analysis
GET/openapi/2022-01/data/analysis
Request
Query Parameters
Begin time of analysis data, e.g. 1666512000
End time of analysis data, e.g. 1682323199
Analysis indicator, all dimension can choose from pv uv add_cart_uv begin_checkout_pv begin_checkout_uv orders sales, shop or country dimension can additionally choose from conversion_rate add_cart_qty add_payment_info_uv
Time zone, e.g. 8
Page number
Limit per page, default 20, max 200
Sort, choose from field of indicator
Sort direction, choose from asc desc
Time aggregation granularity, choose dt_by_hour dt_by_day
Analysis dimension, analysis shop dimension when field is empty, analysis country dimension when choose from country_code, analysis utm dimension when choose fromutm_source utm_medium utm_term utm_campaign utm_content
Analysis filters, e.g. utm_source=google country_code=CN
Responses
- 200
- 422
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- ]
02data object[]
2023-05-16T16:00:00ZshenzhenCN-----00000000000001010.600.5{
"count": 2,
"data": [
{
"date_time": "2023-05-16T16:00:00Z",
"country_abbr": "shenzhen",
"country_code": "CN",
"utm_source": "-",
"utm_medium": "-",
"utm_campaign": "-",
"utm_term": "-",
"utm_content": "-",
"pv": 0,
"uv": 0,
"add_cart_uv": 0,
"add_cart_qty": 0,
"begin_checkout_pv": 0,
"begin_checkout_uv": 0,
"orders": 1,
"sales": 10.6,
"conversion_rate": 0.5
}
]
}
{
"count": 2,
"data": [
{
"date_time": "2023-05-16T16:00:00Z",
"country_abbr":"shenzhen",
"country_code": "CN",
"utm_source": "-",
"utm_medium": "-",
"utm_campaign": "-",
"utm_term": "-",
"utm_content": "-",
"pv": 0,
"uv": 0,
"add_cart_uv": 0,
"add_cart_qty": 0,
"begin_checkout_pv": 0,
"begin_checkout_uv": 0,
"orders": 1,
"sales": 10.6,
"conversion_rate":0.5
},
{
"date_time": "2023-05-24T16:00:00Z",
"country_abbr":"shenzhen",
"country_code": "HK",
"utm_source": "-",
"utm_medium": "-",
"utm_campaign": "-",
"utm_term": "-",
"utm_content": "-",
"pv": 0,
"uv": 0,
"add_cart_uv": 0,
"add_cart_qty": 0,
"begin_checkout_pv": 0,
"begin_checkout_uv": 0,
"orders": 2,
"sales": 24,
"conversion_rate":0.5
}
]
}
422
- application/json
- Schema
- Example
- Result
Schema
{
"errors": [
"BeginTime is required"
]
}
{
"errors": [
"BeginTime is required",
"EndTime is required",
"Indicator is required",
"indicator not support when request is custom dimension ",
"sort_by need choose in the indicator",
"dt_by not support",
"not support dimension or not support use custom together with utm"
]
}