根据 SPU 获取数据分析
POST/openapi/2024-07/data-analysis/spu
通过 SPU、SKU 或专辑维度分析商品,提供详细的销售数据洞察。
请求
- application/json
- 请求体
- 示例
请求体
Analysis mode
- product: Displays sales by spu
- variant: Queries sales by sku
- collection: Album page report
The starting timestamp (in seconds) for retrieving analysis data. Must be a valid Unix timestamp and less than end_time. Logic
The ending timestamp (in seconds) for retrieving analysis data. Must be a valid Unix timestamp and greater than begin_time.
Time zone, e.g. 8
Page number
Limit per page, default 50, max 500
Sort field
Sorting direction: asc (ascending) or desc (descending).
The Collection ID uniquely identifies a group of products within a collection. When the collection id is passed, it is filtered based on the collection ID
When the keyword is not empty, the product is filtered. Keywords will vaguely match these fields of the product: title, id, brief, sku, spu, tags, note
The filtering mode can be base or advanced. The default value is base. If you select advanced, the filters filter takes effect
Conditions for advanced filtering mode
{
"type": "string",
"begin_time": 0,
"end_time": 0,
"tz": 0,
"page": 0,
"limit": 0,
"sort_by": "string",
"sort_direction": "string",
"collection_id": "string",
"keyword": "string",
"search_model": "string",
"filters": "string"
}
响应
- 200
- 400
200
- application/json
- 数据结构
- 示例
- Result
数据结构
- Array [
- ]
200OK03data object[]
free/5d4c48f9e65ffab9e73efbf1fd37a0f3.jpgtest1010102001901000101050025010101000100e2da343c-182c-4908-b009-557cea226829123Collectionx_2022-06-27092022-03-24 19:18:442022-03-24 19:18:442023-08-21 15:43:34truetrue1120.0019.001.000.001150.00%25.00%11100.00%100.00%/products/test1{
"code": "200",
"message": "OK",
"count": 3,
"data": [
{
"utm_source": "",
"utm_medium": "",
"utm_campaign": "",
"utm_term": "",
"utm_content": "",
"image": "free/5d4c48f9e65ffab9e73efbf1fd37a0f3.jpg",
"title": "test1",
"order_count_original": 1,
"sales_count_original": 1,
"sales_total_original": 20,
"net_sales_total_original": 19,
"discount_original": 1,
"tax_original": 0,
"views_count_original": 1,
"add_to_cart_count_original": 1,
"views_rate_original": 50,
"add_to_cart_rate_original": 25,
"view_client_count_original": 1,
"add_cart_client_count_original": 1,
"add_to_cart_conversion_rate_original": 100,
"transform_rate_original": 100,
"product_id": "e2da343c-182c-4908-b009-557cea226829",
"brief": "",
"spu": "123",
"collection": "Collectionx_2022-06-2709",
"created_at": "2022-03-24 19:18:44",
"first_published_at": "",
"published_at": "2022-03-24 19:18:44",
"product_op_updated_at": "2023-08-21 15:43:34",
"published": true,
"order_count": "1",
"sales_count": "1",
"sales_total": "20.00",
"net_sales_total": "19.00",
"discount": "1.00",
"tax": "0.00",
"views_count": "1",
"add_to_cart_count": "1",
"views_rate": "50.00%",
"add_to_cart_rate": "25.00%",
"view_client_count": "1",
"add_cart_client_count": "1",
"add_to_cart_conversion_rate": "100.00%",
"transform_rate": "100.00%",
"seo_url": "/products/test1"
}
]
}
{
"code": "200",
"message": "OK",
"count": 3,
"data": [
{
"utm_source": "",
"utm_medium": "",
"utm_campaign": "",
"utm_term": "",
"utm_content": "",
"image": "free/5d4c48f9e65ffab9e73efbf1fd37a0f3.jpg",
"title": "test1",
"order_count_original": 1,
"sales_count_original": 1,
"sales_total_original": 20,
"net_sales_total_original": 19,
"discount_original": 1,
"tax_original": 0,
"views_count_original": 1,
"add_to_cart_count_original": 1,
"views_rate_original": 50,
"add_to_cart_rate_original": 25,
"view_client_count_original": 1,
"add_cart_client_count_original": 1,
"add_to_cart_conversion_rate_original": 100,
"transform_rate_original": 100,
"product_id": "e2da343c-182c-4908-b009-557cea226829",
"brief": "",
"spu": "123",
"collection": "Collectionx_2022-06-2709",
"created_at": "2022-03-24 19:18:44",
"first_published_at": "",
"published_at": "2022-03-24 19:18:44",
"product_op_updated_at": "2023-08-21 15:43:34",
"published": true,
"order_count": "1",
"sales_count": "1",
"sales_total": "20.00",
"net_sales_total": "19.00",
"discount": "1.00",
"tax": "0.00",
"views_count": "1",
"add_to_cart_count": "1",
"views_rate": "50.00%",
"add_to_cart_rate": "25.00%",
"view_client_count": "1",
"add_cart_client_count": "1",
"add_to_cart_conversion_rate": "100.00%",
"transform_rate": "100.00%",
"seo_url": "/products/test1"
}
]
}
400
- application/json