taobao店铺详情 API 返回值说明

135 阅读1分钟

请求参数:nick=lin130021&shop_url=shop63387065.taobao.com/

参数说明:nick:掌柜昵称
shop_url:PC端店铺主页地址

image.png

API测试工具 点击申请试用

响应参数

Version: Date:

名称类型必须示例值描述
shop_idBigint063387065店铺ID
sidBigint063387065
seller_idBigint059531614卖家ID
nickString0lin130021掌柜名字
shop_nameString0外新人 琳琳店铺名
shop_typeString0c店铺类型
shop_urlString0shop63387065.taobao.com/店铺主页
levelMix0{"rank": 5,"type":"cap"}店铺等级
scoreMix0[]店铺评分
telString01891226351电话
data_fromString0

请求示例

<?php

// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.onebound.cn/help/demo/sdk/demo-sign.php
$method = "GET";
$url = "https://api-gw.onebound.cn/taobao/seller_info/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&nick=lin130021&shop_url=https://shop63387065.taobao.com/";
$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));
?>

API 返回结果.

https://api-gw.onebound.cn/taobao/seller_info/?key=&
&nick=lin130021&shop_url=https://shop63387065.taobao.com/&cache=no&&lang=zh-CN&secret=
---------------------------------------
Result Object:
---------------------------------------
{
	"user": {
		"shop_id": "",
		"sid": "",
		"seller_id": "",
		"nick": "",
		"shop_name": "",
		"shop_type": "C",
		"shop_url": "https://shop63387065.taobao.com/",
		"level": {
			"rank": 0,
			"type": ""
		},
		"score": [],
		"tel": "",
		"data_from": "PC"
	},
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"error": "",
	"reason": "",
	"error_code": "0000",
	"cache": 0,
	"api_info": "today:101 max:10100 all[183=101+47+35];expires:2030-12-31",
	"execution_time": "0.116",
	"server_time": "Beijing/2022-09-26 16:43:27",
	"client_ip": "106.6.33.90",
	"call_args": {
		"nick": "lin130021",
		"shop_url": "https://shop63387065.taobao.com/"
	},
	"api_type": "taobao",
	"translate_language": "zh-CN",
	"translate_engine": "google_new",
	"server_memory": "0.84MB",
	"request_id": "gw-4.6331662f1131c",
	"last_id": "1244788860"
}