全部
在线测试
新品卡首屏 API
接口地址: http://api.vv-tool.com/tool/accounts/kxinpin
接口介绍: 通过该接口生成链接下单,生意参谋后台显示手淘搜索(搜索词指定搜索词)下单 点击查看详情
请求方式: POST
传参格式: form-data
返回格式: JSON
接口收费: 生成 1 次,计 1 次调用,联系销售可以拿到低价
频率限制: 10 次/秒
请求头参数
参数 | 类型 | 必选 | 值 | 示例 |
---|---|---|---|---|
Authorization | string | 是 | 授权 access_token | Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx |
请求参数
参数 | 类型 | 必选 | 描述 |
---|---|---|---|
keyword | string | 是 | 商品搜索词 如:眼影 |
url | string | 是 | 商品链接/商品 id 如:600804559767 |
请求示例
keyword:迷你湿巾
url:623917802188
请求代码示例
cURL请求代码示例
curl --location --request POST 'http://api.vv-tool.com/tool/accounts/kxinpin' \
--header 'Authorization: Bearer c2c20409e5f3f34437aece02c69b9a9dxxxxxxxx' \
--header 'Cookie: PHPSESSID=8gk3dcemg4j0o1qbol21pjkits; _csrf=5306f9747cabb278ff1cb08b1c1056537bef9c2a343d77d10336c874eeb4b0eba%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22ThwPd5A0gHmm4Td6MlihizBEcjga8Zsh%22%3B%7D' \
--form 'keyword=湿巾' \
--form 'url=623917802188'
PHP请求代码示例
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://api.vv-tool.com/tool/accounts/kxinpin",
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 => array('keyword' => '湿巾','url' => '623917802188'),
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer c2c20409e5f3f34437aece02c69b9a9dxxxxxxxx",
"Cookie: PHPSESSID=8gk3dcemg4j0o1qbol21pjkits; _csrf=5306f9747cabb278ff1cb08b1c1056537bef9c2a343d77d10336c874eeb4b0eba%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22ThwPd5A0gHmm4Td6MlihizBEcjga8Zsh%22%3B%7D"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
JAVA请求代码示例
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("keyword", "湿巾")
.addFormDataPart("url", "623917802188")
.build();
Request request = new Request.Builder()
.url("http://api.vv-tool.com/tool/accounts/kxinpin")
.method("POST", body)
.addHeader("Authorization", "Bearer c2c20409e5f3f34437aece02c69b9a9dxxxxxxxx")
.addHeader("Cookie", "PHPSESSID=8gk3dcemg4j0o1qbol21pjkits; _csrf=5306f9747cabb278ff1cb08b1c1056537bef9c2a343d77d10336c874eeb4b0eba%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22ThwPd5A0gHmm4Td6MlihizBEcjga8Zsh%22%3B%7D")
.build();
Response response = client.newCall(request).execute();
响应参数
参数 | 类型 | 描述 |
---|---|---|
code | int | 返回状态码 |
msg | string | 返回码描述 |
msec | int | 接口执行时间 |
time | int | 接口返回时间 |
data | string | 新品卡首屏地址 |
返回数据
{
"code": 0,
"msg": "成功",
"msec": 13,
"time": 1576402871,
"data": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
错误码 点击查看详情:查看