跳到主要内容
版本:202201

根据 SPU 获取数据分析

POST 

/openapi/2024-07/data-analysis/spu

通过 SPU、SKU 或专辑维度分析商品,提供详细的销售数据洞察。

请求

请求体

    typestring必填

    Analysis mode
    - product: Displays sales by spu
    - variant: Queries sales by sku
    - collection: Album page report

    begin_timeint64必填

    The starting timestamp (in seconds) for retrieving analysis data. Must be a valid Unix timestamp and less than end_time. Logic

    end_timeint64必填

    The ending timestamp (in seconds) for retrieving analysis data. Must be a valid Unix timestamp and greater than begin_time.

    tzfloat必填

    Time zone, e.g. 8

    pageint32

    Page number

    limitint32

    Limit per page, default 50, max 500

    sort_bystring

    Sort field

    sort_directionstring

    Sorting direction: asc (ascending) or desc (descending).

    collection_idstring

    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

    keywordstring

    When the keyword is not empty, the product is filtered. Keywords will vaguely match these fields of the product: title, id, brief, sku, spu, tagsnote

    search_modelstring

    The filtering mode can be base or advanced. The default value is base. If you select advanced, the filters filter takes effect

    filtersjson

    Conditions for advanced filtering mode

响应

200

数据结构
    codestring
    示例: 200
    messagestring
    示例: OK
    countinteger
    默认值: 0
    示例: 3
    data object[]
  • Array [
  • utm_sourcestring
    示例:
    utm_mediumstring
    示例:
    utm_campaignstring
    示例:
    utm_termstring
    示例:
    utm_contentstring
    示例:
    imagestring
    示例: free/5d4c48f9e65ffab9e73efbf1fd37a0f3.jpg
    titlestring
    示例: test1
    order_count_originalinteger
    默认值: 0
    示例: 1
    sales_count_originalinteger
    默认值: 0
    示例: 1
    sales_total_originalinteger
    默认值: 0
    示例: 20
    net_sales_total_originalinteger
    默认值: 0
    示例: 19
    discount_originalinteger
    默认值: 0
    示例: 1
    tax_originalinteger
    默认值: 0
    示例: 0
    views_count_originalinteger
    默认值: 0
    示例: 1
    add_to_cart_count_originalinteger
    默认值: 0
    示例: 1
    views_rate_originalinteger
    默认值: 0
    示例: 50
    add_to_cart_rate_originalinteger
    默认值: 0
    示例: 25
    view_client_count_originalinteger
    默认值: 0
    示例: 1
    add_cart_client_count_originalinteger
    默认值: 0
    示例: 1
    add_to_cart_conversion_rate_originalinteger
    默认值: 0
    示例: 100
    transform_rate_originalinteger
    默认值: 0
    示例: 100
    product_idstring
    示例: e2da343c-182c-4908-b009-557cea226829
    briefstring
    示例:
    spustring
    示例: 123
    collectionstring
    示例: Collectionx_2022-06-2709
    created_atstring
    示例: 2022-03-24 19:18:44
    first_published_atstring
    示例:
    published_atstring
    示例: 2022-03-24 19:18:44
    product_op_updated_atstring
    示例: 2023-08-21 15:43:34
    publishedboolean
    默认值: true
    示例: true
    order_countstring
    示例: 1
    sales_countstring
    示例: 1
    sales_totalstring
    示例: 20.00
    net_sales_totalstring
    示例: 19.00
    discountstring
    示例: 1.00
    taxstring
    示例: 0.00
    views_countstring
    示例: 1
    add_to_cart_countstring
    示例: 1
    views_ratestring
    示例: 50.00%
    add_to_cart_ratestring
    示例: 25.00%
    view_client_countstring
    示例: 1
    add_cart_client_countstring
    示例: 1
    add_to_cart_conversion_ratestring
    示例: 100.00%
    transform_ratestring
    示例: 100.00%
    seo_urlstring
    示例: /products/test1
  • ]