淘宝店铺商品接口用于查询店铺的所有商品,通常用于深度展示店铺。
说明:如果您想要淘宝全网搜索接口,请查看:
http://wsd.591hufu.com/doc/taobaoquanwangsousuo
【权限】店铺商品查询专用卡可用
【接口】
http://api.veapi.cn/tbk/shopitems?vekey=xxx&sellerId=263817957&pageno=1
参数说明(shopId或sellerId必须提供一个):
sellerId : 必选参数,卖家ID,即卖家的userid值。
key:可选参数,搜索商品关键字。
sort:可选参数:默认sale,可选项:global 综合排序, newpro 新品排序,sale销量排序,priceasc价格升序,pricedesc价格降序
pageno:可选,页码,用于翻页。注意没有pagesize参数,一页固定10项产品。
catmap:分类ID,查询该店铺下指定分类的商品,一般当天猫淘宝店铺商品很多时(比如天猫超市7万多商品),建议使用本参数逐一分类查询,分类ID使用下列shopcat参数查询。
shopcat:可选值1或0,查询该店铺的商品分类,本参数须和sellerId参数配合使用,当使用本参数时,key,sort,pageno,catmap等参数均失效。通过本参数获得该店铺所有分类ID,再传给catmap参数查询指定分类商品,一般一个店铺查一次分类列表即可。
【特别说明】对于商品多的店铺,请使用分类参数catmap,分类查询每一类下的商品。不能直接分页查询。否则查询不全。
1、查询淘宝天猫店(以下示例天猫超市)的所有分类:
http://api.veapi.cn/tbk/shopitems?vekey=xxx&sellerId=725677994&shopcat=1
2、查询淘宝店的商品:
例1:查询指定店铺分类1358520162商品:
http://api.veapi.cn/tbk/shopitems?vekey=xxx&sellerId=725677994&pageno=1&catmap=1358520162
例2:查询淘宝店所有商品:
http://api.veapi.cn/tbk/shopitems?vekey=xxx&sellerId=725677994&pageno=1
返回值示例:
{
"error": "0",
"msg": "店铺商品查询成功!",
"data": {
"totalPage": 21,
"totalResults": 201,
"page": 1,
"pageSize": 10,
"items": [ //店铺商品列表
{
"title": "白色t恤女短袖紧身纯棉2021年春季新款半袖修身夏纯色打底衫上衣",
"price": 51,
"priceWap": 18.8,
"itemID": "23883488910",
"sameCount": 0,
"sellerID": "248453492",
"location": "",
"sold": 24435,
"pic_path": "http://g.search1.alicdn.com/img/bao/uploaded/i4/i1/248453492/O1CN01wykctE1bfNf1X74Ff_!!248453492.jpg",
"isB2c": 0,
"shopName": ""
},
{
"title": "黑色T恤女装2021春季新款潮打底衫内搭长袖百搭紧身秋衣纯棉上衣",
"price": 80,
"priceWap": 19.8,
"itemID": "19763187233",
"sameCount": 0,
"sellerID": "248453492",
"location": "",
"sold": 12540,
"pic_path": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i1/248453492/O1CN011xmpn51bfNh3S7YVc_!!248453492.jpg",
"isB2c": 0,
"shopName": ""
},
{
"title": "2021年夏季t桖新款纯白色V领短袖T恤女装修身紧身半袖上衣鸡心领",
"price": 58,
"priceWap": 18.8,
"itemID": "36987071399",
"sameCount": 0,
"sellerID": "248453492",
"location": "",
"sold": 1292,
"pic_path": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i1/248453492/TB2kZjcsrSYBuNjSspfXXcZCpXa_!!248453492.jpg",
"isB2c": 0,
"shopName": ""
},
{
"title": "黑色v领上衣女打底衫长袖T恤显瘦薄款洋气鸡心领春秋百搭内搭纯棉",
"price": 58,
"priceWap": 18.8,
"itemID": "23842888649",
"sameCount": 0,
"sellerID": "248453492",
"location": "",
"sold": 313,
"pic_path": "http://g.search1.alicdn.com/img/bao/uploaded/i4/i3/248453492/O1CN018BnaWo1bfNjUzm8sk_!!248453492.jpg",
"isB2c": 0,
"shopName": ""
},
{
"title": "9.9清仓换季断码春夏短袖T恤女宽松印花打底衫女上衣长袖修身女装",
"price": 30,
"priceWap": 9.9,
"itemID": "557190451041",
"sameCount": 0,
"sellerID": "248453492",
"location": "",
"sold": 309,
"pic_path": "http://g.search.alicdn.com/img/bao/uploaded/i4/i3/248453492/O1CN01LCWRat1bfNjE94jRQ_!!248453492.jpg",
"isB2c": 0,
"shopName": ""
},
{
"title": "纯白色T恤女短袖宽松夏季纯棉2021新款韩版ins潮上衣半袖体恤短款",
"price": 139,
"priceWap": 25.8,
"itemID": "528816140923",
"sameCount": 0,
"sellerID": "248453492",
"location": "",
"sold": 274,
"pic_path": "http://g.search.alicdn.com/img/bao/uploaded/i4/i1/248453492/TB2G.XZkCVmpuFjSZFFXXcZApXa_!!248453492.jpg",
"isB2c": 0,
"shopName": ""
},
{
"title": "白色T恤女短袖体恤纯棉半袖修身上衣2021年新款女夏季t桖短款紧身",
"price": 46,
"priceWap": 28.8,
"itemID": "547734901702",
"sameCount": 0,
"sellerID": "248453492",
"location": "",
"sold": 207,
"pic_path": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i1/248453492/TB26XyPthGYBuNjy0FnXXX5lpXa_!!248453492.jpg",
"isB2c": 0,
"shopName": ""
},
{
"title": "短袖宽松t恤女纯棉白色夏装体恤女装超火cec2021新款上衣服ins潮",
"price": 69,
"priceWap": 25.8,
"itemID": "597404439135",
"sameCount": 0,
"sellerID": "248453492",
"location": "",
"sold": 198,
"pic_path": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i1/248453492/O1CN01brdzp71bfNbFLAMph_!!248453492.jpg",
"isB2c": 0,
"shopName": ""
},
{
"title": "纯棉春秋衣中领打底衫女半短款紧身黑色长袖冬修身T恤小高领洋气",
"price": 77,
"priceWap": 26.8,
"itemID": "540118182304",
"sameCount": 0,
"sellerID": "248453492",
"location": "",
"sold": 184,
"pic_path": "http://g.search2.alicdn.com/img/bao/uploaded/i4/i1/248453492/TB2NbbplaagSKJjy0FaXXb0dpXa_!!248453492.jpg",
"isB2c": 0,
"shopName": ""
},
{
"title": "2021新款纯白色短袖t恤女夏修身显瘦百糖果色搭半袖简约棉质体恤",
"price": 51,
"priceWap": 18.8,
"itemID": "532768693641",
"sameCount": 0,
"sellerID": "248453492",
"location": "",
"sold": 178,
"pic_path": "http://g.search1.alicdn.com/img/bao/uploaded/i4/i1/248453492/TB2x8MbtQOWBuNjSsppXXXPgpXa_!!248453492.jpg",
"isB2c": 0,
"shopName": ""
}
]
}
}