接口地址: http://api.vv-tool.com/tool/erps/get-shop-info
接口介绍: 获取店铺信息 id 等相关信息字段 点击查看详情
请求方式: GET
返回格式: JSON
接口收费: 扣账户余额
频率限制: 10 次/秒
请求头参数
Authorization | string | 是 | 授权 access_token | Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx |
请求参数
url | string | 是 | 商品链接 |
type | string | 否 | 类型(0-淘宝,1-天猫,2-拼多多) |
vvtype | int | 否 | 普通版 1,不传默认 1,增强版 2,增强版的需要传参 2 |
请求示例
url:https://item.taobao.com/item.htm?id=635407677503
type:1
请求代码示例
cURL请求代码示例
curl --location --request GET 'http://api.vv-tool.com/tool/erps/get-shop-info?url=https://item.taobao.com/item.htm?id=635407677503&type=1' \ --header 'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx' \ --header 'Cookie: __yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331'
PHP请求代码示例
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'http://api.vv-tool.com/tool/erps/get-shop-info?url=https://item.taobao.com/item.htm?id=635407677503&type=1', 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_HTTPHEADER => array( 'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx', 'Cookie: __yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331' ), )); $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/erps/get-shop-info?url=https://item.taobao.com/item.htm?id=635407677503&type=1") .method("GET", null) .addHeader("Authorization", "Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx") .addHeader("Cookie", "__yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331") .build(); Response response = client.newCall(request).execute();
响应参数
code | int | 错误码 0 为成功 |
msg | string | 返回码描述 |
msec | int | 接口执行时间 |
time | int | 接口返回时间 |
shop_Id | int | 第三方卖家店铺 id |
shopName | string | 第三方卖家店铺名字 |
shopUrl | string | 店铺地址,天猫/C 店 |
taoShopUrl | string | 淘宝店铺地址 |
shopIcon | string | 第三方卖家店铺图标 |
showShopLinkIcon | string | showShopLinkIcon |
shopCard | string | 店铺卡片 |
shopType | string | 店铺类型 |
simpleShopDOStatus | string | simpleShopDOStatus |
shopVersion | string | 店铺版本 |
shopTextColor | string | 店铺文本颜色 |
withholding_money | int | 该接口扣费金额(点券) |
返回数据
{ "code": 0, "msg": "成功", "msec": 1193, "time": 1612416107, "data": { "withholding_money": 1 "shop_Id":63634326 , "shopName": "ToM潮", "shopUrl": "shop.m.taobao.com/shop/shop_index.htm?user_id=618895543&item_id=635407677503", "taoShopUrl": "//shop.m.taobao.com/shop/shop_index.htm?user_id=618895543&item_id=635407677503", "shopIcon": "http://img.alicdn.com/imgextra//3e/3e/TB1HNXJdmslXu8jSZFuSutg7FXa.jpg", "showShopLinkIcon": "false", "shopCard": "本店共383件宝贝在热卖", "shopType": "C", "simpleShopDOStatus": "C", "shopVersion": "", "shopTextColor": "#111111" } }
响应代码
0 | 成功 | |
100 | 请求参数错误 | 检查您的请求参数是否正确 |
101 | 请求超时,请重试 | 检查您的网络情况或者联系客服解决 |
103 | 旺旺账号不存在 | 检查您输入的旺旺号是否正确 |
200 | 系统错误,请联系客服 | 检查您的接口地址填写是否正确,其他问题联系客服解决 |
202 | 系统错误,请稍后再试 | 稍后重试,或者联系对接群 |
203 | 暂不支持当前接口 | |
204 | 请求异常:无该接口权限,请前往官网开通正式接口。 | 前往官网开通该接口权限 |
204 | 请求异常:API 调用次数不足,请前往网站兑换次数。 | 前往官网充值该接口调用次数 |
401 | 身份凭证无效 | 在请求头中添加 access_token,重新更新 token |
404 | 请求路径或请求方式错误 | 请更换请求方式或者检查路径是否正确 |
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!