
接口使用场景等说明:【特别公告】
抖音精选联盟官方平台于3月13日关闭,请参考 https://www.veapi.cn/gonggao/detail_84.html
做为平替,将由穿山甲接口替代,佣金直接在本站会员中心结算。
详情见穿山甲API说明 https://www.veapi.cn/apidoc/douyindouke/369
本接口用于达人活动页转链接口,转链百亿补贴、秒杀活动、自建活动页。
独立抖客请使用 https://www.veapi.cn/apidoc/douyindouke/327 接口转链活动页。
| 环境 | http 地址 | https 地址 |
|---|---|---|
| 正式环境 | http://api.veapi.cn/douke/activityShareConvert | 暂无 |
| 参数名称 | 参数类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| vekey | String | 是 | V123M56 | 公共参数,接口秘钥,请在会员中心获取 |
| activity_id | Int64 | 是 | 1 | 1:百亿补贴 2:秒杀活动 3:自建活动页 |
| pid | String | 否 | dy_1234_4567_7890 | 必须是达人的PID,如果在会员中心有设置PID可不提供本参数。 |
| need_qr_code | Bool | 否 | false | 是否需要二维码(生成二维码会增加接口耗时) |
| external_info | String | 否 | external_info_test | 自定义字段,只允许 数字、字母和_,限制长度为40,本字段用于跟单。 |
| mix_activity_id | String | 否 | 7113838489157763358 | 可推广的运营自建活动页活动id;activity_id为3时,该项是 |
| activity_url | String | 否 | sslocal://webcast_webview?url= | 可推广的运营自建活动页链接,支持 h5 和 schema 两种形式;可不填 |
| platform | Int32 | 否 | 0 | 回流端标识 0:抖音 1:抖音极速版 |
GET/POST http://api.veapi.cn/douke/activityShareConvert?vekey=xxx&extra_params={%22a%22:%221%22}&material_id=7209938690791981369&external_info=a562&pid=dy_107213597798095225100_20865_2675084869
$api="http://api.veapi.cn/douke/activityShareConvert?vekey=xxx&extra_params={%22a%22:%221%22}&material_id=7209938690791981369&external_info=a562&pid=dy_107213597798095225100_20865_2675084869";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api);
//curl_setopt($ch, CURLOPT_POST, true); //POST方式时启用
//curl_setopt($ch, CURLOPT_POSTFIELDS, $postData ); //POST方式时传参
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //如果使用https请启用
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); //如果使用https请启用
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true ); //返回数据流,不直接输出
curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); //使用gzip压缩传输让访问更快
curl_setopt($ch, CURLOPT_TIMEOUT, 6); //允许执行的最长秒数。这里设定6S
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
$result = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);
echo $result; //返回值
import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpRequest;
public class testGetParam {
public static void main(String[] args) {
// API网址
String url = "http://api.veapi.cn/douke/activityShareConvert?vekey=xxx&extra_params={%22a%22:%221%22}&material_id=7209938690791981369&external_info=a562&pid=dy_107213597798095225100_20865_2675084869";
// JDK 8u111版本后,若目标页面为HTTPS协议,请启用proxy用户密码鉴权
//System.setProperty("jdk.http.auth.tunneling.disabledSchemes", "");
// 发送请求
String result = HttpRequest.get(url)
.timeout(10000)//设置超时,毫秒
.execute().body();
System.out.println(result);
}
}
import requests
# 要访问的API网页
target_url = "http://api.veapi.cn/douke/activityShareConvert?vekey=xxx&extra_params={%22a%22:%221%22}&material_id=7209938690791981369&external_info=a562&pid=dy_107213597798095225100_20865_2675084869"
# 发送请求
response = requests.get(target_url)
# 获取页面内容
if response.status_code == 200:
print response.text
| 参数名称 | 参数类型 | 示例值 | 描述 |
|---|---|---|---|
| share_command | String | 6.923405940 | 抖口令 |
| deep_link | String | snssdk://live | Deeplink,允许外部APP直接唤起抖音 |
| qrcode | Struct | - | 二维码 |
| └─ url | String | https://ssddsd.jpg | 图片URL |
| └─ width | Int32 | 200 | 图片宽度 |
| └─ height | Int32 | 200 | 图片高度 |
| z_link | String | https://z.douyin.com/xxxxxxx | Zlink,允许外部APP直接唤起抖音直播间,未安装抖音应用用户,唤起抖音下载页,有效期60天 |
{ "error": "0", "msg": "查询成功!", "data": { "deep_link": "snssdk1128://lynxview?surl=https%3A%2F%2Flf-dy-sourcecdn-tos.bytegecko.com%2Fobj%2Fbyte-gurd-source%2F1325%2Fgecko%2Fresource%2Ffe_lynx_distribution_landing%2Fapp%2Ftemplate.js&hide_nav_bar=1&hide_status_bar=1&token=AP8MtQ2&distribution_ab=1", "share_command": "2.复制此链接,打开抖:/ 音,有惊喜等待你。##B5I20FRaO7B8##", "z_link": "https://z.douyin.com/jUiW1oD" }, "request_id": "NIVXCby" }