全部
在线测试

淘宝店铺商品查询


接口地址: http://api.vv-tool.com/tool/accounts/itmallitems


接口介绍: 查询到店铺里的全部商品 id 点击查看详情


请求方式: GET


返回格式: JSON


接口收费: 查询 1 次,计 1 次调用


频率限制: 10 次/秒


请求头参数

参数 类型 必选 示例
Authorization string 授权 access_token Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx

请求参数

参数 类型 必选 描述
shopId string 店铺 id
sort int 排序,0: 默认,1:销量,2: 新品,3: 价格升序,4: 价格降序
page string 查询的页码
next_key string 下一页携带参数(上一页查询返回的 next_key,第 2 页查询开始必须,否则可能会出现重复数据)

请求示例

shopId:123
sort:1
page:1

请求代码示例

cURL请求代码示例

curl --location --request GET 'http://api.vv-tool.com/tool/accounts/itmallitems' \
--header 'Authorization: Bearer xxxxxx' \
--header 'Cookie: __yjs_duid=1_631b442499ed9f835d199def5892e4091628487614220; PHPSESSID=c7vk4m9m25tkkka56hnutd3fss; _csrf=ee6bd3f5c0dbdde63289faf5a2f66cd52d70f888f0348c7373f5986bf69bb9f5a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22LGpxTrGoxF_4wMtk2kNKtmbFb6I8tslR%22%3B%7D' \
--form 'shopId="123"' \
--form 'sort="1"' \
--form 'page="1"'

PHP请求代码示例

<?php

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://api.vv-tool.com/tool/accounts/itmallitems',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_POSTFIELDS => array('shopId' => '123','sort' => '1','page' => '1'),
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer xxxxxx',
    'Cookie: __yjs_duid=1_631b442499ed9f835d199def5892e4091628487614220; PHPSESSID=c7vk4m9m25tkkka56hnutd3fss; _csrf=ee6bd3f5c0dbdde63289faf5a2f66cd52d70f888f0348c7373f5986bf69bb9f5a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22LGpxTrGoxF_4wMtk2kNKtmbFb6I8tslR%22%3B%7D'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;


JAVA请求代码示例

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
Request request = new Request.Builder()
  .url("http://api.vv-tool.com/tool/accounts/itmallitems")
  .method("GET", null)
  .addHeader("Authorization", "Bearer xxxxxx")
  .addHeader("Cookie", "__yjs_duid=1_631b442499ed9f835d199def5892e4091628487614220; PHPSESSID=c7vk4m9m25tkkka56hnutd3fss; _csrf=ee6bd3f5c0dbdde63289faf5a2f66cd52d70f888f0348c7373f5986bf69bb9f5a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22LGpxTrGoxF_4wMtk2kNKtmbFb6I8tslR%22%3B%7D")
  .build();
Response response = client.newCall(request).execute();

响应参数

参数 类型 描述
code int 返回状态码
msg string 返回码描述
msec int 接口执行时间
time int 接口返回时间
data object 返回数据信息
item array 商品数组
-item_id string 商品 id
-fastPostFee string 运费
-icons array 活动图标
-isB2c string 是否企业店铺
-isprepay string 是否预定
-pic_path string 主图
-price string 原价
-priceShow object 展示价格
-priceWap string 手机价
-quantity string 库存
-rateSum string 卖家信誉等级
-realSales string 付款人数(模糊化)
-seller_id string sellerid
-seller_type string 店铺类型
-sold string 付款人数
-title string 标题
pager object
-page int 当前查询的页码
-pageSize int 单页返回数
-total int 宝贝总数
-totalPage int 总页数

返回数据


 {
    "code": 0,
    "msg": "成功",
    "msec": 3839,
    "time": 1671008876,
    "data": {
        "item": [
            {
                "fastPostFee": "0.00",
                "icons": [],
                "isB2c": "0",
                "isprepay": "1",
                "item_id": "654602401221",
                "pic_path": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i3/3198262616/O1CN01AMU5Bv1VCAuMwnV1D_!!0-item_pic.jpg",
                "price": "108.00",
                "priceShow": {
                    "preText": "",
                    "price": "89.00",
                    "unit": "¥"
                },
                "priceWap": "89.00",
                "promotions": "8240",
                "quantity": "21399",
                "rateSum": "8",
                "realSales": "21人付款",
                "seller_id": "3198262616",
                "seller_type": "0",
                "sold": "21",
                "title": "女童春秋新款儿童高端礼服优雅自然甜美连衣裙花童公主蓬蓬网纱裙",
                "uprightImg": "http://g.search.alicdn.com/img/bao/uploaded/i4/i3/3198262616/O1CN01WEH5pO1VCAu4aADL8_!!0-item_pic.jpg"
            },
            {
                "fastPostFee": "0.00",
                "icons": [],
                "isB2c": "0",
                "isprepay": "1",
                "item_id": "680226787314",
                "pic_path": "http://g.search.alicdn.com/img/bao/uploaded/i4/i1/3198262616/O1CN01C3jFu51VCAuLaKCxV_!!0-item_pic.jpg",
                "price": "90.00",
                "priceShow": {
                    "preText": "",
                    "price": "89.00",
                    "unit": "¥"
                },
                "priceWap": "89.00",
                "promotions": "9888",
                "quantity": "33528",
                "rateSum": "8",
                "realSales": "19人付款",
                "seller_id": "3198262616",
                "seller_type": "0",
                "sold": "19",
                "title": "2022冬装小女孩加绒连衣裙儿童高端时尚长袖女宝宝爱莎公主裙女童",
                "uprightImg": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i3/3198262616/O1CN01BcbgBI1VCAu7t7M4g_!!0-item_pic.jpg"
            },
            {
                "fastPostFee": "0.00",
                "icons": [],
                "isB2c": "0",
                "isprepay": "1",
                "item_id": "672150793485",
                "pic_path": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i4/3198262616/O1CN01zkkELE1VCAtnxvGVs_!!2-item_pic.png",
                "price": "32.00",
                "priceShow": {
                    "preText": "",
                    "price": "30.00",
                    "unit": "¥"
                },
                "priceWap": "30.00",
                "promotions": "9375",
                "quantity": "50996",
                "rateSum": "8",
                "realSales": "11人付款",
                "seller_id": "3198262616",
                "seller_type": "0",
                "sold": "11",
                "title": "儿童公主礼服配饰欧美皇冠花童婚纱发饰发夹花环女童生日演出头饰"
            },
            {
                "fastPostFee": "0.00",
                "icons": [],
                "isB2c": "0",
                "isprepay": "1",
                "item_id": "694078637056",
                "pic_path": "http://g.search1.alicdn.com/img/bao/uploaded/i4/i2/3198262616/O1CN01T6QtDe1VCAuTBKY5c_!!0-item_pic.jpg",
                "price": "87.00",
                "priceShow": {
                    "preText": "",
                    "price": "86.00",
                    "unit": "¥"
                },
                "priceWap": "86.00",
                "promotions": "9885",
                "quantity": "33588",
                "rateSum": "8",
                "realSales": "9人付款",
                "seller_id": "3198262616",
                "seller_type": "0",
                "sold": "9",
                "title": "2022冬装小女孩加绒连衣裙儿童高端时尚长袖女宝宝爱莎公主裙女童",
                "uprightImg": "http://g.search.alicdn.com/img/bao/uploaded/i4/i3/3198262616/O1CN01SdHcOm1VCAuMWf7fG_!!0-item_pic.jpg"
            },
            {
                "fastPostFee": "0.00",
                "icons": [],
                "isB2c": "0",
                "isprepay": "1",
                "item_id": "682311210054",
                "pic_path": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i1/3198262616/O1CN01x3nJ3w1VCAtux5CWp_!!0-item_pic.jpg",
                "price": "90.00",
                "priceShow": {
                    "preText": "",
                    "price": "89.00",
                    "unit": "¥"
                },
                "priceWap": "89.00",
                "promotions": "9888",
                "quantity": "47134",
                "rateSum": "8",
                "realSales": "4人付款",
                "seller_id": "3198262616",
                "seller_type": "0",
                "sold": "4",
                "title": "2022秋冬新款儿童蓬蓬纱礼服公主裙主持演出服女童加绒保暖连衣裙",
                "uprightImg": "http://g.search.alicdn.com/img/bao/uploaded/i4/i2/3198262616/O1CN01SsVWHf1VCAtnWMUGD_!!0-item_pic.jpg"
            },
            {
                "fastPostFee": "0.00",
                "icons": [],
                "isB2c": "0",
                "isprepay": "1",
                "item_id": "687342096955",
                "pic_path": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i1/3198262616/O1CN01dWHNUq1VCAtmVwXfE_!!0-item_pic.jpg",
                "price": "139.00",
                "priceShow": {
                    "preText": "",
                    "price": "139.00",
                    "unit": "¥"
                },
                "priceWap": "139.00",
                "quantity": "1425",
                "rateSum": "8",
                "realSales": "4人付款",
                "seller_id": "3198262616",
                "seller_type": "0",
                "sold": "4",
                "title": "2022拜年服女童汉服套装古装超仙冬季加绒加厚保暖高端新年装女宝",
                "uprightImg": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i2/3198262616/O1CN01RkmhNW1VCAteRr6LO_!!0-item_pic.jpg"
            },
            {
                "fastPostFee": "0.00",
                "icons": [],
                "isB2c": "0",
                "isprepay": "1",
                "item_id": "687343484643",
                "pic_path": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i2/3198262616/O1CN019NwFRg1VCAtTmAR02_!!3198262616.jpg",
                "price": "97.00",
                "priceShow": {
                    "preText": "",
                    "price": "97.00",
                    "unit": "¥"
                },
                "priceWap": "97.00",
                "quantity": "2299937",
                "rateSum": "8",
                "realSales": "3人付款",
                "seller_id": "3198262616",
                "seller_type": "0",
                "sold": "3",
                "title": "2022亲子装汉服冬季中国风一家三口新年唐装男母子母女表演拜年服",
                "uprightImg": "http://g.search1.alicdn.com/img/bao/uploaded/i4/i3/3198262616/O1CN01zapzSQ1VCAtQzLA2z_!!0-item_pic.jpg"
            },
            {
                "fastPostFee": "0.00",
                "icons": [],
                "isB2c": "0",
                "isprepay": "1",
                "item_id": "668322157990",
                "pic_path": "http://g.search.alicdn.com/img/bao/uploaded/i4/i4/3198262616/O1CN01UmEnPm1VCAr5FLDkI_!!3198262616.jpg",
                "price": "90.00",
                "priceShow": {
                    "preText": "",
                    "price": "89.00",
                    "unit": "¥"
                },
                "priceWap": "89.00",
                "promotions": "9888",
                "quantity": "29938",
                "rateSum": "8",
                "realSales": "3人付款",
                "seller_id": "3198262616",
                "seller_type": "0",
                "sold": "3",
                "title": "女童洛丽塔连衣裙夏小清新公主裙周岁礼服女宝宝儿童主持人演出服",
                "uprightImg": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i2/3198262616/O1CN01tBM56o1VCAsbVRtvn_!!0-item_pic.jpg"
            },
            {
                "fastPostFee": "0.00",
                "icons": [],
                "isB2c": "0",
                "isprepay": "1",
                "item_id": "687968666127",
                "pic_path": "http://g.search.alicdn.com/img/bao/uploaded/i4/i1/3198262616/O1CN015gPEM21VCAuYXC7Td_!!0-item_pic.jpg",
                "price": "139.00",
                "priceShow": {
                    "preText": "",
                    "price": "139.00",
                    "unit": "¥"
                },
                "priceWap": "139.00",
                "quantity": "522",
                "rateSum": "8",
                "realSales": "3人付款",
                "seller_id": "3198262616",
                "seller_type": "0",
                "sold": "3",
                "title": "2022儿童汉服冬装棉套装加绒加厚古装刺绣高端唐装女童红色新年服",
                "uprightImg": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i4/3198262616/O1CN01LYFSmk1VCAtdhJrQI_!!0-item_pic.jpg"
            },
            {
                "fastPostFee": "0.00",
                "icons": [],
                "isB2c": "0",
                "isprepay": "1",
                "item_id": "678057260619",
                "pic_path": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i3/3198262616/O1CN01ZFveLV1VCAsMdj3cq_!!0-item_pic.jpg",
                "price": "36.00",
                "priceShow": {
                    "preText": "",
                    "price": "35.00",
                    "unit": "¥"
                },
                "priceWap": "35.00",
                "promotions": "9722",
                "quantity": "382",
                "rateSum": "8",
                "realSales": "2人付款",
                "seller_id": "3198262616",
                "seller_type": "0",
                "sold": "2",
                "title": "儿童额头链编发链宝宝水钻吊坠盘发链条发饰小女孩公主女童合金链"
            }
        ]
    }
}

错误码 点击查看详情:查看