大淘客,让选品更简单! |

{{item.type_name}}:

API 市场 / 唯品会商品列表
 

唯品会商品列表
吐槽建议
应用场景:
将唯品会所有商品拉取入库,再根据自身流量属性来打造更有针对性的栏目或者专题
接口说明:
获取联盟在推商品列表,支持指定排序字段,支持频道输出和组货输出两种模式
使用人数: 10+
唯品会商品列表 接口测试 建议使用通用GET方法调用
  • 接口说明
  • 更新日志
  • 接口版本号:v1.0.0

请求地址:https://openapi.dataoke.com/api/vip/goods-list-v2-with-oauth 复制

请求方式:GET

公共参数:
请求参数:

注:请求参数须区分大小写

返回数据:
调用示例:
$data = [
        'appKey' => "xxxxxxxxxxxx",
        'version' => "v1.2.1",
        ...
    ];
    $host = "https://openapi.dataoke.com/open-api/vip/goods-list-v2-with-oauth";
    $url = $host . '?' . http_build_query($data);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    $output = curl_exec($ch);
    $a = curl_error($ch);
    if(!empty($a)){
        return json_encode(array('code'=>10003, 'msg'=>$a));
    }
    curl_close($ch);
    return $output;

    SDK调用示例
    $client = new GoodsListV2WithOauth();
    $client->setAppKey("xxxxxxxxx");
    $client->setAppSecret("xxxxxxxxxxxxxxxxxxxxxxxxx");
    $client->setVersion("v1.2.1");

    $res = $client->setParams([])->request();
 //唯品会商品列表
    $data = [
        'appKey' => "xxxxxxxxxxxx",
        'version' => "v1.0.0",
        ...
    ];
    $host = "https://openapi.dataoke.com/open-api/vip/goods-list-v2-with-oauth";
    $url = $host . '?' . http_build_query($data);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    $output = curl_exec($ch);
    $a = curl_error($ch);
    if(!empty($a)){
        return json_encode(array('code'=>10003, 'msg'=>$a));
    }
    curl_close($ch);
    return $output;

    SDK调用示例
    $client = new GoodsListV2WithOauth();
    $client->setAppKey("xxxxxxxxx");
    $client->setAppSecret("xxxxxxxxxxxxxxxxxxxxxxxxx");
    $client->setVersion("v1.0.0");

    $res = $client->setParams([])->request();

返回示例:
{
    "cache": false,
    "code": 0,
    "data": {
        "goodsInfoList": [
            {
                "brandId": 3662181,
                "brandLogoFull": "http://a.vpimg3.com/upload/brandcool/0/LOGO/16486354873430a49d/primary.png",
                "brandName": "三只松鼠",
                "brandStoreSn": "10012277",
                "cat1stId": 384252,
                "cat1stName": "食品饮料",
                "cat2ndId": 384294,
                "cat2ndName": "休闲零食",
                "categoryId": 384590,
                "categoryName": "肉干肉脯",
                "commentsInfo": {
                    "comments": 377,
                    "goodCommentsShare": "97.00"
                },
                "commission": "2.16",
                "commissionRate": "12",
                "couponInfo": {
                    "activateBeginTime": 1655172000000,
                    "activateEndTime": 1655294400000,
                    "activedAmount": -1,
                    "buy": "10.00",
                    "couponName": "10元宅家日券",
                    "couponNo": "11199726",
                    "couponType": 5,
                    "fav": "10.00",
                    "totalAmount": 10000,
                    "useBeginTime": 1655172000000,
                    "useEndTime": 1655294400000
                },
                "cpsInfo": {
                    "1": "adp%3AC01V4mmj58rhjl1o%3A%3Amig_code%3A1213113%3Aac03164mmj580000p1n7xg06wocezcp9",
                    "2": "pages/productDetail/productDetail?brandId=3662181&goodsId=2164292716&tra_from=adp%3AC01V4mmj58rhjl1o%3A%3Amig_code%3A1213113%3Aac03164mmj580000p1n7xg06wocezcp9&chl_type=wxk"
                },
                "destUrl": "https://m.vip.com/product-3662181-2164292716.html",
                "discount": "0.56",
                "goodsId": "2164292716",
                "goodsMainPicture": "https://a.vpimg3.com/upload/merchandise/pdcpos/1100002418/2020/0709/128/4d5855ba-4dc3-443d-a0b4-26ce64dd3e19.jpg",
                "goodsName": "【去骨凤爪110g】卤味小零食熟食去骨脱骨鸡爪即食",
                "goodsThumbUrl": "https://a.vpimg2.com/upload/merchandise/pdcpos/1100002418/2020/0709/128/4d5855ba-4dc3-443d-a0b4-26ce64dd3e19_750x750_50.jpg",
                "haiTao": 0,
                "isSubsidyActivityGoods": false,
                "marketPrice": "50.00",
                "prepayInfo": {
                    "isPrepay": 0
                },
                "saleStockStatus": 2,
                "schemeEndTime": 1656604799000,
                "schemeStartTime": 1653990609000,
                "sellTimeFrom": 1539677728000,
                "sellTimeTo": 2145888000000,
                "sn": "COLOR均色",
                "sourceType": 1,
                "spuId": "SPU-06CE099C8000028F",
                "status": 1,
                "storeInfo": {
                    "storeId": "ST40413763",
                    "storeName": "三只松鼠官方特卖旗舰店"
                },
                "storeServiceCapability": {
                    "storeRankRate": "11.0000",
                    "storeScore": "86.37"
                },
                "vipPrice": "28.00"
            }
        ],
        "lastPage": false,
        "nextPageOffset": 2164292716
    },
    "msg": "ok",
    "requestId": "6d1a3053c1ffa04030d575b009a81d1d",
    "time": 1655200713727061
}
错误码列表: