全部
在线测试

1688 关键词卡首屏普通版 API


接口地址: http://api.vv-tool.com/tool/accounts/albbkspp


接口介绍: 通过该接口生成链接下单,1688 后台显示搜索词指定搜索词下单 点击查看详情


请求方式: POST


传参格式: form-data


返回格式: JSON


接口收费: 查询 1 次,计 1 次调用


频率限制: 10 次/秒


请求头参数

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

请求参数

参数 类型 必选 描述
keyword string 商品搜索词 如:眼影
url string 商品链接/商品 id 如:600804559767

请求示例

keyword:迷你湿巾
url:694183826280

请求代码示例

cURL请求代码示例

curl --location --request POST 'http://api.vv-tool.com/tool/accounts/albbkspp' \
--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=694183826280'

PHP请求代码示例

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "http://api.vv-tool.com/tool/accounts/albbkspp",
  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' => '694183826280'),
  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", "694183826280")
  .build();
Request request = new Request.Builder()
  .url("http://api.vv-tool.com/tool/accounts/albbkspp")
  .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": 2523,
    "time": 1671085778,
    "data": {
        "link": "https://m.1688.com/offer_search/-6D7033.html?sortType=pop&keywords=%E5%90%89%E5%98%89%E7%89%8C609%E5%A4%9A%E5%8A%9F%E8%83%BD%E7%BA%AF%E9%93%9C%E7%BA%BF%E6%8F%92%E5%BA%A7%E5%8E%82%E5%AE%B6%E6%89%B9%E5%8F%91%E7%BB%8F%E5%85%B8%E6%AC%BE%E6%96%B0%E5%9B%BD%E6%A0%87%E5%B8%A6%E5%AE%89%E5%85%A8%E9%97%A8%E6%8E%A5%E7%BA%BF%E6%9D%BF&priceStart=4.00&priceEnd=17.04&city=%E4%B8%B4%E6%B2%82&categoryId=1036071"
    }
}

错误码 点击查看详情:查看