全部
淘宝客
在线测试

淘宝客-服务商-淘口令解析&转链


接口地址: http://api.vv-tool.com/tool/taobaoke/tbktpwdconvert


接口介绍: 支持通过淘口令解析商品 id,并提供对应的淘客转链接。点击查看详情


必须用户授权 : 需要用户的授权,才能拿到被授权的数据


请求方式: POST


返回格式: JSON


接口收费: 联系运营


频率限制: 10 次/秒


请求头参数

参数 类型 必选 示例
Authorization string 授权 access_token Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx

请求参数

名称 类型 必须 示例值 描述
password_content String true ¥2k12308DjviP ¥ 需要解析的淘口令
adzone_id Number true 12312312 广告位 ID,mm_xx_xx_xx pid 三段式中的第三段
dx String false 1 1 表示商品转通用计划链接,其他值或不传表示优先转营销计划链接
site_id Number true 1 备案的网站 id, mm_xx_xx_xx pid 三段式中的第二段
ucrowd_id Number false 1 会员人群 ID,用于统计人群推广效果
taobao_user_id Int true 123 授权的用户 ID

请求示例

{
    "code": 0,
    "msg": "成功",
    "msec": 466,
    "time": 1659953491,
    "data": {
        "request_id": "15rmhj6kn3l3f",
        "Body": "",
        "data": {
            "num_iid": "548964188912",
            "click_url": "https://s.click.taobao.com/t?e=m%3D2%26s%3D3B2jYXyi%2BNMcQipKwQzePOeEDrYVVa64yK8Cckff7TVRAdhuF14FMc1JsT%2BAWsaLRitN3%2FurF3wcdx%2Flp0YrijcQXfsrgs2GOLte6v6o9dEV7YmD%2FxKWtTBgeWToh8ufKe3%2FbelnU7eOJ4hmg2sGJMYjGr6SHqGcdGaXDANyqnbQjcq6zkVt%2FNYY89nTcJHE8%2Bg%2F7uhyLfnCUztdSUP69q%2Fml1DsEpJvPuUKMILxyTw%3D&union_lens=lensId:TAPI@1659686643@2103d3f1_0c03_1826d0865e1_9ca4@035Z4EmHBfYbqbqCWkHrwIMf",
            "origin_url": "http://s.click.taobao.com/t?xId=1bk7N77dmBNmetQwCt0YSyZQKZmlrjHZMFD0y6YTwpZlg5fXjxhhHEiCvwIVeWARcqNNGrf3LV9iicATwvx1nmcEb6SU4cDigJNNH0tBMpGB&e=m%3D2%26s%3DMzGvqf5706wcQipKwQzePOeEDrYVVa64r4ll3HtqqoxyINtkUhsv0Mb5HE%2F1MzuAxSj%2FdG%2F%2BikJoa7aze8VfzILxoap%2B%2FYz8vcPqO1FKbghk9F7u1u5eifuzV7pzkENNSBaygToy7XnUr8WZJ6OtvrG5hBzwUurRSRc3PgFy2%2BWteK%2Fp%2BjtO4sCY0%2FrGuVtlIYULNg46oBA%3D&pvid=100_11.229.159.208_165032_3031659686643031644&app_pvid=59590_33.3.211.241_864_1659686643027&union_lens=lensId%3ATAPI%401659686643%402103d3f1_0c03_1826d0865e1_9ca4%40023BfqOIMKndy3uYuACOEipV&ptl=floorId:2836;originalFloorId:2836;pvid:100_11.229.159.208_165032_3031659686643031644;app_pvid:59590_33.3.211.241_864_1659686643027&scm=null&un=b0829f951eea32d27e9fbf4444ed5bfe&share_crt_v=1&un_site=0&ut_sk=1.utdid_33909846_1659923129535.TaoPassword-Outside.taoketop&spm=a2159r.13376465.0.0&sp_tk=NERCQzJIZHEwZGg%3D&bxsign=tcd4oCIGdTx-z2S7cXEBbVp9C978tSpT3vNWTymOCAkD--6NTxcgJ2kNyn-0E89-fYqrCPlwSsfLYhbUDRVf2fSYocY1b0de6BzTwnNe_Y1CMo&bc_fl_src=share-497603132843-1-0",
            "origin_pid": "mm_101807570_248750452_70362850341"
        },
        "withholding_money": 0
    }
}

请求代码示例

cURL请求代码示例
curl --location --request POST 'http://api.vv-tool.com/tool/taobaoke/tbktpwdconvert' \
--header 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXX' \
--header 'Content-Type: application/json' \
--header 'Cookie: __yjs_duid=1_631b442499ed9f835d199def5892e4091628487614220; PHPSESSID=23cb193174e4095b141ccd6f6007733f; _csrf=2cd19402adae1c3113d9f645faab88a25cbaa984b70d96822c180b7eb5a081e2a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22yN3ZzOyIK8RcBRyag4P7WS66SlTkGj-Q%22%3B%7D' \
--data-raw '{
"password_content":"¥4DBC2Hdq0dh¥",
"adzone_id":112049150197,
"site_id":2270750496,
"taobao_user_id":2208551696445
}'

PHP请求代码示例

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://api.vv-tool.com/tool/taobaoke/tbktpwdconvert',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
"password_content":"¥4DBC2Hdq0dh¥",
"adzone_id":112049150197,
"site_id":2270750496,
"taobao_user_id":2208551696445
}',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXX',
    'Content-Type: application/json',
    'Cookie: __yjs_duid=1_631b442499ed9f835d199def5892e4091628487614220; PHPSESSID=23cb193174e4095b141ccd6f6007733f; _csrf=2cd19402adae1c3113d9f645faab88a25cbaa984b70d96822c180b7eb5a081e2a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22yN3ZzOyIK8RcBRyag4P7WS66SlTkGj-Q%22%3B%7D'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

JAVA请求代码示例
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n\"password_content\":\"¥4DBC2Hdq0dh¥\",\r\n\"adzone_id\":112049150197,\r\n\"site_id\":2270750496,\r\n\"taobao_user_id\":2208551696445\r\n}");
Request request = new Request.Builder()
  .url("http://api.vv-tool.com/tool/taobaoke/tbktpwdconvert")
  .method("POST", body)
  .addHeader("Authorization", "Bearer XXXXXXXXXXXXXXXXXXXXXX")
  .addHeader("Content-Type", "application/json")
  .addHeader("Cookie", "__yjs_duid=1_631b442499ed9f835d199def5892e4091628487614220; PHPSESSID=23cb193174e4095b141ccd6f6007733f; _csrf=2cd19402adae1c3113d9f645faab88a25cbaa984b70d96822c180b7eb5a081e2a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22yN3ZzOyIK8RcBRyag4P7WS66SlTkGj-Q%22%3B%7D")
  .build();
Response response = client.newCall(request).execute();

响应参数

名称 类型 示例值 描述
data MapData data
num_iid String 12312 商品 Id
click_url String https://s.click.taobao.com/t?e=xxx 商品淘客转链链接
seller_id String 12121 店铺卖家 ID
origin_url String https://s.click.taobao.com/t?e=xxx 入参淘口令对应原始链接
origin_pid String mm_1_1_1 入参淘口令推广链接中的 pid,如果不属于当前调用的推广者则展示“0”
withholding_money INT 11 该接口扣费金额(点券)

返回数据

{
    "code": 0,
    "msg": "成功",
    "msec": 466,
    "time": 1659953491,
    "data": {
        "request_id": "15rmhj6kn3l3f",
        "Body": "",
        "data": {
            "num_iid": "548964188912",
            "click_url": "https://s.click.taobao.com/t?e=m%3D2%26s%3D3B2jYXyi%2BNMcQipKwQzePOeEDrYVVa64yK8Cckff7TVRAdhuF14FMc1JsT%2BAWsaLRitN3%2FurF3wcdx%2Flp0YrijcQXfsrgs2GOLte6v6o9dEV7YmD%2FxKWtTBgeWToh8ufKe3%2FbelnU7eOJ4hmg2sGJMYjGr6SHqGcdGaXDANyqnbQjcq6zkVt%2FNYY89nTcJHE8%2Bg%2F7uhyLfnCUztdSUP69q%2Fml1DsEpJvPuUKMILxyTw%3D&union_lens=lensId:TAPI@1659686643@2103d3f1_0c03_1826d0865e1_9ca4@035Z4EmHBfYbqbqCWkHrwIMf",
            "origin_url": "http://s.click.taobao.com/t?xId=1bk7N77dmBNmetQwCt0YSyZQKZmlrjHZMFD0y6YTwpZlg5fXjxhhHEiCvwIVeWARcqNNGrf3LV9iicATwvx1nmcEb6SU4cDigJNNH0tBMpGB&e=m%3D2%26s%3DMzGvqf5706wcQipKwQzePOeEDrYVVa64r4ll3HtqqoxyINtkUhsv0Mb5HE%2F1MzuAxSj%2FdG%2F%2BikJoa7aze8VfzILxoap%2B%2FYz8vcPqO1FKbghk9F7u1u5eifuzV7pzkENNSBaygToy7XnUr8WZJ6OtvrG5hBzwUurRSRc3PgFy2%2BWteK%2Fp%2BjtO4sCY0%2FrGuVtlIYULNg46oBA%3D&pvid=100_11.229.159.208_165032_3031659686643031644&app_pvid=59590_33.3.211.241_864_1659686643027&union_lens=lensId%3ATAPI%401659686643%402103d3f1_0c03_1826d0865e1_9ca4%40023BfqOIMKndy3uYuACOEipV&ptl=floorId:2836;originalFloorId:2836;pvid:100_11.229.159.208_165032_3031659686643031644;app_pvid:59590_33.3.211.241_864_1659686643027&scm=null&un=b0829f951eea32d27e9fbf4444ed5bfe&share_crt_v=1&un_site=0&ut_sk=1.utdid_33909846_1659923129535.TaoPassword-Outside.taoketop&spm=a2159r.13376465.0.0&sp_tk=NERCQzJIZHEwZGg%3D&bxsign=tcd4oCIGdTx-z2S7cXEBbVp9C978tSpT3vNWTymOCAkD--6NTxcgJ2kNyn-0E89-fYqrCPlwSsfLYhbUDRVf2fSYocY1b0de6BzTwnNe_Y1CMo&bc_fl_src=share-497603132843-1-0",
            "origin_pid": "mm_101807570_248750452_70362850341"
        },
        "withholding_money": 0
    }
}

响应代码

代码 代码描述 解决方案
0 成功
100 请求参数错误 检查您的请求参数是否正确
101 请求超时,请重试 检查您的网络情况或者联系客服解决
103 旺旺账号不存在 检查您输入的旺旺号是否正确
200 系统错误,请联系客服 检查您的接口地址填写是否正确,其他问题联系客服解决
202 系统错误,请稍后再试 稍后重试,或者联系对接群
203 暂不支持当前接口
204 请求异常:无该接口权限,请前往官网开通正式接口。 前往官网开通该接口权限
204 请求异常:API 调用次数不足,请前往网站兑换次数。 前往官网充值该接口调用次数
302 未授权店铺 根据返回链接进行扫码授权
401 身份凭证无效 在请求头中添加 access_token,重新更新 token
404 请求路径或请求方式错误 请更换请求方式或者检查路径是否正确