其他分享
首页 > 其他分享> > 淘宝联盟接口——淘宝/天猫单品详情接口介绍

淘宝联盟接口——淘宝/天猫单品详情接口介绍

作者:互联网

在您的APP、公众号等应用中,如果有产品详情,无疑会大幅提升用户体验!但基本所有开发者都会被没有淘宝商品详情页接口而困扰!大淘客开放平台淘宝/天猫单品详情页接口,为解决这个问题而生,完美打造您的APP商品详情显示!
接口地址:http://www.dataoke.com/kfpt/api-d.html?id=8
接口亮点:返回商品字段全网最全(细分类目榜,视频,详情图…),接口稳定,响应迅速
接口说明:通过大淘客商品id或淘宝商品id查询商品详细信息
应用场景:用于查看某个具体商品的详细信息,帮助用户购买决策。可构建单品详情页

一、接口接入步骤:
1、注册大淘客开放平台并获取APPKEY
2、授权大淘客PID
3、接口调用

二、接口调用示例:

String url = "https://openapi.dataoke.com/api/goods/get-goods-details";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.2.3");
paraMap.put("appKey", appKey);
paraMap.put("id", "25985896");
String data = ApiClient.sendReq(url, appSecret, paraMap);

三、接口返回示例:

{
	status: 200,
	data: {
		requestId: "45d54f5f8fdaa7ac3773c8030a28d36e",
		time: 1608685484000,
		code: 0,
		msg: "成功",
		data: {
			id: 31227470,
			goodsId: "618271344990",
			title: "【主播力荐】咔啰卡曼日式法芙饼干网红零食蛋黄煎饼儿童营养代餐",
			dtitle: "【拍5发6包 】咔啰卡曼日式法芙饼",
			originalPrice: 22.9,
			actualPrice: 12.9,
			shopType: 1,
			goldSellers: 0,
			monthSales: 68348,
			twoHoursSales: 6,
			dailySales: 23,
			commissionType: 3,
			desc: "【拍5件到手6袋】咔啰卡曼网红法芙饼,华夫饼,双面烘烤,蛋香味浓郁,松脆味美,特别解馋!健康美味,小朋友超爱的零食,吃货宝宝千万不能错过哦~",
			couponReceiveNum: 10,
			couponLink: "https://uland.taobao.com/quan/detail?sellerId=2206903000361&activityId=f6443ce6754543ff9e27f6ac28f5875d",
			couponEndTime: "2020-12-25 23:59:59",
			couponStartTime: "2020-12-23 00:00:00",
			couponPrice: 10,
			couponConditions: "27",
			activityType: 1,
			createTime: "2020-12-22 19:24:08",
			mainPic: "//img.alicdn.com/imgextra/i3/2206903000361/O1CN01ktv7DZ1EXNZewua5k_!!2206903000361.jpg",
			marketingMainPic: "https://sr.ffquan.cn/dtk_user_fd/20201210/bv8uhmaulrgf6phupue00.jpg",
			sellerId: "2206903000361",
			brandWenan: "",
			cid: 6,
			discounts: 0.56,
			commissionRate: 40.03,
			couponTotalNum: 100000,
			haitao: 0,
			activityStartTime: "",
			activityEndTime: "",
			shopName: "咔啰卡曼食品旗舰店",
			shopLevel: 15,
			descScore: 4.8,
			brand: 0,
			brandId: 2631338729,
			brandName: "",
			hotPush: 0,
			teamName: "超级飞侠_速推客",
			itemLink: "https://detail.tmall.com/item.htm?id=618271344990",
			tchaoshi: 0,
			dsrScore: 4.83,
			dsrPercent: 0.82,
			shipScore: 4.86,
			shipPercent: 8.68,
			serviceScore: 4.85,
			servicePercent: 7.48,
			subcid: [
				90318
			],
			imgs: "http://img.alicdn.com/imgextra/i3/2206903000361/O1CN01DvzQdR1EXNcQT2dDD_!!2206903000361-0-lubanu-s.jpg,http://img.alicdn.com/imgextra/i3/2206903000361/O1CN01ktv7DZ1EXNZewua5k_!!2206903000361.jpg,http://img.alicdn.com/imgextra/i2/2206903000361/O1CN012ADI6f1EXNZbHovbG_!!2206903000361.jpg,http://img.alicdn.com/imgextra/i4/2206903000361/O1CN01IgQQej1EXNZeHkT0I_!!2206903000361.jpg,http://img.alicdn.com/imgextra/i1/2206903000361/O1CN0188fe7A1EXNcGEq5mv_!!2206903000361-0-lubanu-s.jpg",
			reimgs: "",
			quanMLink: 0,
			hzQuanOver: 0,
			yunfeixian: 1,
			estimateAmount: 0,
			shopLogo: "https://img.alicdn.com/imgextra//a1/a0/TB1p14FseH2gK0jSZJnSuuT1FXa.jpg",
			specialText: [
				"拍5件到手6袋"
			],
			freeshipRemoteDistrict: 0,
			video: "https://cloud.video.taobao.com/play/u/2206903000361/p/2/e/6/t/1/264844940154.mp4?appKey=38829",
			detailPics: "[{"
			img ":"\ / \/img.alicdn.com\/imgextra\/i2\/2206903000361\/O1CN010cHgLf1EXNcJDGYyt_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"1010"},{"img":"\/\/img.alicdn.com\/imgextra\/i1\/2206903000361\/O1CN01QaK5VG1EXNcETuxai_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"828"},{"img":"\/\/img.alicdn.com\/imgextra\/i2\/2206903000361\/O1CN01VfRO7U1EXNcGpCndj_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"713"},{"img":"\/\/img.alicdn.com\/imgextra\/i1\/2206903000361\/O1CN01Es0Rks1EXNcETugxi_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"946"},{"img":"\/\/img.alicdn.com\/imgextra\/i3\/2206903000361\/O1CN01PXbruj1EXNcA8g2k4_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"990"},{"img":"\/\/img.alicdn.com\/imgextra\/i3\/2206903000361\/O1CN01b5VVhq1EXNc5SUd4u_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"900"},{"img":"\/\/img.alicdn.com\/imgextra\/i1\/2206903000361\/O1CN01zfANEm1EXNcBIxwCk_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"721"},{"img":"\/\/img.alicdn.com\/imgextra\/i2\/2206903000361\/O1CN0181xXrt1EXNcJbw9k5_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"1043"},{"img":"\/\/img.alicdn.com\/imgextra\/i3\/2206903000361\/O1CN01dsJrgj1EXNcDtknop_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"619"},{"img":"\/\/img.alicdn.com\/imgextra\/i4\/2206903000361\/O1CN01c1HRmb1EXNcHiQzTh_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"913"},{"img":"\/\/img.alicdn.com\/imgextra\/i1\/2206903000361\/O1CN01EunQyN1EXNcBm1lEE_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"1079"},{"img":"\/\/img.alicdn.com\/imgextra\/i3\/2206903000361\/O1CN01iaJU9I1EXNcBm36N8_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"605"},{"img":"\/\/img.alicdn.com\/imgextra\/i1\/2206903000361\/O1CN01Uh9ZOl1EXNcFlU8c1_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"900"},{"img":"\/\/img.alicdn.com\/imgextra\/i3\/2206903000361\/O1CN01X1Ls9c1EXNcFlWov8_!!2206903000361.jpg","hotAreaList":[],"width":"750","height":"921"}]",
			isSubdivision: 0,
			subdivisionId: 0,
			subdivisionName: "",
			subdivisionRank: 0,
			directCommissionType: 3,
			directCommission: 50,
			directCommissionLink: "http://pub.alimama.com/myunion.htm#!/promo/self/campaign?campaignId=116274636&shopkeeperId=797940195&userNumberId=2206903000361",
			tbcid: 124306001
		}
	},
	msg: "请求成功"
}

接口文档地址:http://www.dataoke.com/kfpt/api-d.html?id=8

标签:2206903000361,img,imgextra,接口,天猫,alicdn,jpg,淘宝,com
来源: https://blog.csdn.net/pl04530/article/details/114976632