跳到主要内容
版本:202201

查询数据分析

GET 

/openapi/2022-01/data/analysis

请求

Query参数

    begin_time int32必填

    Begin time of analysis data, e.g. 1666512000

    end_time int32必填

    End time of analysis data, e.g. 1682323199

    indicator string[]必填

    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

    tz float

    Time zone, e.g. 8

    page int32

    Page number

    limit int32

    Limit per page, default 20, max 200

    sort_by string

    Sort, choose from field of indicator

    sort_direction string

    Sort direction, choose from asc desc

    dt_by string

    Time aggregation granularity, choose dt_by_hour dt_by_day

    dimension string[]

    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

    filters string[]

    Analysis filters, e.g. utm_source=google country_code=CN

响应

200

数据结构
    countinteger
    默认值: 0
    示例: 2
    data object[]
  • Array [
  • date_timestring
    示例: 2023-05-16T16:00:00Z
    country_abbrstring
    示例: shenzhen
    country_codestring
    示例: CN
    utm_sourcestring
    示例: -
    utm_mediumstring
    示例: -
    utm_campaignstring
    示例: -
    utm_termstring
    示例: -
    utm_contentstring
    示例: -
    pvinteger
    默认值: 0
    示例: 0
    uvinteger
    默认值: 0
    示例: 0
    add_cart_uvinteger
    默认值: 0
    示例: 0
    add_cart_qtyinteger
    默认值: 0
    示例: 0
    begin_checkout_pvinteger
    默认值: 0
    示例: 0
    begin_checkout_uvinteger
    默认值: 0
    示例: 0
    ordersinteger
    默认值: 0
    示例: 1
    salesnumber
    默认值: 0
    示例: 10.6
    conversion_ratenumber
    默认值: 0
    示例: 0.5
  • ]