4.4 平台Top10接口 - getTop10Platforms

优质
小牛编辑
141浏览
2023-12-01

平台top10数据接口 - GetTop10Platforms

获取某个品类的份额前十平台

Request Parameters

Parameter nameTypeDescriptionRequired
category_idstring品类idYes
platform_idstring平台id,如果为空,则不做过滤No
brand_idstring品牌id,如果为空,则不做过滤No
product_idintSKU单品id,如果为空,则不做过滤No
time_typestring汇总标准: Year,Quarter,Month,Week,如果不提供,默认为MonthNo
start_time查询时间段起始时间,格式为时间字符串或者unix时间戳查询开始时间,如果不提供,则根据结束时间与汇总类型进行计算No
end_time请求串生成时间,格式为时间字符串或者unix时间戳查询截止时间,如果不提供,默认当天No

Response Elements

Parameter nameTypeDescription
actionstring响应动作
platformsarray平台序列,每项参数可见下面 Response Item

Response Item

Parameter nameTypeDescription
platform_idint平台编号
namestring平台名称
valuedouble销售额
percentagedouble市场份额

示例

请求示例

http://open.syntun.cn/api/dq/GetTop10Platforms
&category_id=315
&COMMON_PARAMS

响应示例

{
    "code": 1000,
    "msg": "OK",
    "data": {
        "action": "getTop10Platforms",
        "platforms": [
            {
                "name": "天猫",
                "platform_id": 5,
                "value": 69440698.25,
                "percentage": 32.73
            },
            {
                "name": "国美在线",
                "platform_id": 4,
                "value": 49063077.33,
                "percentage": 23.12
            },
            ...
        ],
        "total_count": 8
    }
}