首页 > 其他分享 >淘宝天猫整店店铺商品API,店铺商品分类接口代码教程

淘宝天猫整店店铺商品API,店铺商品分类接口代码教程

时间:2023-08-01 17:32:21浏览次数:40  
标签:2209411885160 shop url 整店 price id item 天猫 店铺


淘宝店铺商品接口用于查询店铺的所有商品,通常用于深度展示店铺,代码教程如下:

1.公共参数

名称

类型

必须

描述(接口代码教程wx19970108018)

key

String


调用key(必须以GET方式拼接在URL中,点击获取请求key和secret)

secret

String


调用密钥

api_name

String


API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]

cache

String


[yes,no]默认yes,将调用缓存的数据,速度比较快

result_type

String


[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读

lang

String


[cn,en,ru]翻译语言,默认cn简体中文

version

String


API版本

2.请求参数

参数说明(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参数查询指定分类商品,一般一个店铺查一次分类列表即可。

 备注:支持高并发请求接口,实时数据接口。

3.请求示例(CURL、PHP 、PHPsdk 、Java 、C# 、Python…) 

<?php

// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.onebound.cn/help/demo/sdk/demo-sign.php
$method = "GET";
$url = "https://wx19970108018/taobao/item_search_shop/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&shop_id=433655136&page=1&sort=";
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, "gzip");
var_dump(curl_exec($curl));
?>

 4.响应示例

{
	"items": {
		"shop_id": "433655136",
		"page": "1",
		"has_next_page": "true",
		"real_total_results": "87",
		"total_results": "87",
		"page_size": 16,
		"page_count": 5,
		"_ddf": "ti",
		"item": [
			{
				"num_iid": "674342109993",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01x2oAnJ1nzKSRWjJMF_!!2209411885160.jpg",
				"title": "IFIK Bootcut Jeans #1969 50粒铆钉复古高腰微喇重洗水牛仔裤",
				"promotion_price": "400.00",
				"price": "400.00",
				"sales": 957,
				"quantity": "164",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=674342109993"
			},
			{
				"num_iid": "674677242275",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01SlWToI1nzKSvsvDo2_!!2209411885160.jpg",
				"title": "IFIK Denim Mini Skort 白鹿同款 '辣妹教条'牛仔低腰复古短裙裤",
				"promotion_price": "350.00",
				"price": "350.00",
				"sales": 1101,
				"quantity": "195",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=674677242275"
			},
			{
				"num_iid": "675006395148",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01aUT9ek1nzKTEwLfVw_!!2209411885160.jpg",
				"title": "IFIK Leather Jacket 'Hunter复古水洗牛仔拼皮夹克 短款垫肩外套",
				"promotion_price": "580.00",
				"price": "580.00",
				"sales": 669,
				"quantity": "77",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=675006395148"
			},
			{
				"num_iid": "674677778191",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01c1wYun1nzKSibRX4Y_!!2209411885160.jpg",
				"title": "IFIK Pink Blazer90s多位重洗水粉色Y2K辣妹牛仔西服垫肩西装外套",
				"promotion_price": "630.00",
				"price": "630.00",
				"sales": 431,
				"quantity": "42",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=674677778191"
			},
			{
				"num_iid": "659434926903",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01u9VnMw1nzKQ3U2gVp_!!2209411885160.jpg",
				"title": "IFIK Black Zip Jeans超模同款长腿两侧口袋拉链式超高腰喇叭裤",
				"promotion_price": "450.00",
				"price": "450.00",
				"sales": 449,
				"quantity": "202",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=659434926903"
			},
			{
				"num_iid": "681333373728",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN017GBwh41nzKTStwFlS_!!2209411885160.jpg",
				"title": "IFIK 2021老花针织拼牛仔超短款垫肩夹克+针织喇叭长裤【复活】",
				"promotion_price": "389.00",
				"price": "389.00",
				"sales": 111,
				"quantity": "2863",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=681333373728"
			},
			{
				"num_iid": "653891158457",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01Ns7j5W1nzKT6Pc0GM_!!2209411885160.jpg",
				"title": "IFIK Tribute to Justin Blazer 90年代经典Y2K牛仔西服西装外套",
				"promotion_price": "629.00",
				"price": "629.00",
				"sales": 1582,
				"quantity": "1230",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=653891158457"
			},
			{
				"num_iid": "674358013064",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01rftHTN1nzKStEYuhe_!!2209411885160.jpg",
				"title": "IFIK Denim Sweatpants轻松复古 垂坠感重度洗水直筒牛仔运动卫裤",
				"promotion_price": "350.00",
				"price": "350.00",
				"sales": 243,
				"quantity": "1755",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=674358013064"
			},
			{
				"num_iid": "647240758820",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01Y3P5gp1nzKNxN6FbG_!!2209411885160.jpg",
				"title": "IFIK \"Cowgirl\" Print 2-Use Bandana 整一个西部风情的方巾/抹胸",
				"promotion_price": "99.00",
				"price": "99.00",
				"sales": 648,
				"quantity": "203",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=647240758820"
			},
			{
				"num_iid": "668871730997",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01oTX8pT1nzKRJAF4kU_!!2209411885160.jpg",
				"title": "IFIK Cargo Pants「工装裤工艺天花板」阔腿口袋洗水牛仔长裤2色",
				"promotion_price": "450.00",
				"price": "450.00",
				"sales": 968,
				"quantity": "223",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=668871730997"
			},
			{
				"num_iid": "671047562893",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01GojMeK1nzKRjZ6atG_!!2209411885160.jpg",
				"title": "IFIK Body Chain 于文文同款 金属与牛仔的碰撞Chocker身体链腰链",
				"promotion_price": "180.00",
				"price": "180.00",
				"sales": 447,
				"quantity": "454",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=671047562893"
			},
			{
				"num_iid": "675795776472",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01ruw81g1nzKSeTf8fV_!!2209411885160.jpg",
				"title": "IFIK Paneled Skirt Set 70S明媚 牛仔拼接针织背心+包臀短裙套装",
				"promotion_price": "270.00",
				"price": "270.00",
				"sales": 149,
				"quantity": "5781",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=675795776472"
			},
			{
				"num_iid": "673015183063",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01knXItb1nzKRs1bd9l_!!2209411885160.jpg",
				"title": "IFIK Denim Tote 百搭实用 经典款纯色LOGO压印牛仔帆布袋托特包",
				"promotion_price": "100.00",
				"price": "100.00",
				"sales": 452,
				"quantity": "1370",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=673015183063"
			},
			{
				"num_iid": "670696261652",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01eWda891nzKSWUN4pA_!!2209411885160.jpg",
				"title": "IFIK Baggy Jeans#1997复古水洗U形口袋涂鸦低腰拖地阔腿牛仔长裤",
				"promotion_price": "460.00",
				"price": "460.00",
				"sales": 255,
				"quantity": "62",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=670696261652"
			},
			{
				"num_iid": "675000171233",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01QtJOkv1nzKSOTzIsW_!!2209411885160.jpg",
				"title": "IFIK Voile Dress 'Y2K Vibe' 粉牛仔夹克印花辣妹修身网纱连衣裙",
				"promotion_price": "220.00",
				"price": "220.00",
				"sales": 124,
				"quantity": "58",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=675000171233"
			},
			{
				"num_iid": "641715436154",
				"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01W9hDjx1nzKN9QPI0H_!!2209411885160.jpg",
				"title": "IFIK Blue Bicolor Logo Jacket “拼出一片天”短款牛仔夹克外套",
				"promotion_price": "449.00",
				"price": "449.00",
				"sales": 1557,
				"quantity": "97",
				"seller_nick": "ifiker",
				"seller_id": "2209411885160",
				"shop_id": "433655136",
				"shop_title": "IFIK",
				"is_tmall": "false",
				"detail_url": "https://item.taobao.com/item.htm?id=641715436154"
			}
		]
	},
	"error_code": "0000",
	"reason": "ok",
	"secache": "5177b6f4db5be7bfce9032529452fd88",
	"secache_time": 1662083177,
	"secache_date": "2022-09-02 09:46:17",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"error": "",
	"cache": 0,
	"api_info": "today:20 max:10100 all[61=20+26+15];expires:2030-12-31",
	"execution_time": "0.921",
	"server_time": "Beijing/2022-09-02 09:46:17",
	"client_ip": "106.6.35.69",
	"call_args": {
		"seller_nick": "433655136",
		"start_price": "1"
	},
	"api_type": "taobao",
	"translate_language": "zh-CN",
	"translate_engine": "google_new",
	"server_memory": "5.99MB",
	"request_id": "1.6311606858e8e",
	"last_id": "1190066727"
}

标签:2209411885160,shop,url,整店,price,id,item,天猫,店铺
From: https://blog.51cto.com/u_16175140/6925375

相关文章

  • Json根据商品ID获取天猫商品详情数据API
    l 接口名称 :Taobao.item_getl 功能说明:通过api接口,输入单个商品id,得到所有相关商品的全部信息l 应用级输入参数:商品ID,复制Taobaoapi2014拿到请求key和secretl 请求方式:HTTPPOSTGET;演示地址.l 请求示例:importjava.io.BufferedReader;importjava.io.IOExcept......
  • 淘宝/天猫获取sku详细信息API接口
    一、淘宝/天猫获取sku详细信息API接口参数如下:1.公共参数:名称类型必须描述keyString是调用key(必须以GET方式拼接在URL中)secretString是调用密钥(点击获取key和secret)api_nameString是API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]cacheString否[yes,no]......
  • 该怎么用接口来获得淘宝,天猫,京东,拼多多店铺的所有商品详情
    item_search_shop-获得店铺的所有商品 前往注册开通测试onebound.taobao.item_search_shop公共参数名称类型必须描述keyString是调用key(必须以GET方式拼接在URL中)secretString是调用密钥api_nameString是API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]c......
  • 如何获取阿里巴巴店铺的所有商品数据
      前往注册开通测试onebound.1688.item_search_shop公共参数名称类型必须描述keyString是调用key(必须以GET方式拼接在URL中)secretString是调用密钥api_nameString是API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]cacheString否[yes,no]默认yes,将调用缓存......
  • alibaba获得店铺的所有商品 API
    为了进行电商平台的API开发,首先我们需要做下面几件事情。1)开发者注册一个账号2)然后为每个alibaba应用注册一个应用程序键(AppKey)。3)下载alibabaAPI的SDK并掌握基本的API基础知识和调用4)利用SDK接口和对象,传入AppKey或者必要的时候获取并传入SessionKey来进行程序开发。5)利用ali......
  • 高效 API 接口对接淘宝天猫 1688 拼多多京东商品详情数据(H5 端,PC 端)
    api接口详解大全?优秀的设计是产品变得卓越的原因设计API意味着提供有效的接口,可以帮助API使用者更好地了解、使用和集成,同时帮助人们有效地维护它每个产品都需要使用手册,API也不例外在API领域,可以将设计视为服务器和客户端之间的协议进行建模API协议可以帮助内部和外部......
  • R语言基于逐步多元回归模型的天猫商品流行度预测
    全文链接:https://tecdat.cn/?p=33212原文出处:拓端数据部落公众号本文通过利用回归模型对天猫商品流行度进行了研究,确定了决定天猫商品流行度的重要因素。并讲述、论证了预测天猫商品流行度是天猫商品交易的至关重要的环节。通过对天猫商品流行度预测技术的发展和探讨,深度剖析了......
  • 获取淘宝、天猫商品信息(禁止商用)(无账号)(无风控)
    一、可直接使用exe插件,适用于windows系统  二、导入模板信息  三、导出模板信息  四、导出信息包含:1、基础信息:商品id、标题、主图、详情图、发货地、类目信息、商品属性2、sku信息:sku库存、价格、组合id、单个id五、支持根据商品id、平台类型直接扫描淘系商......
  • api接口接入淘宝/天猫平台采集添加到购物车数据调用演示案例
    ​淘宝添加到购物车API接口的作用是向淘宝购物车中添加指定的商品,实现用户将商品加入购物车的功能。通过该API接口,用户可以将商品加入购物车,方便后续进行结算和购买。使用淘宝添加到购物车API接口,可以帮助开发者和商家进行以下操作:购物车管理:允许用户将商品添加到购物车并进行......
  • api接口接入淘宝/天猫平台获取商品销量详情调用演示案例
    ​淘宝商品销量详情接口的作用是获取淘宝平台上某一商品的销售情况信息,包括商品的总销量、近期销量、销售趋势等。通过该接口,可以获取到商品销量的原始数据,用于分析商品的受欢迎程度和市场需求。使用淘宝商品销量详情接口,可以帮助商家和开发者进行以下操作:市场分析:通过获取商......