接口使用场景等说明:【特别公告】
抖音精选联盟官方平台于3月13日关闭,请参考 https://www.veapi.cn/gonggao/detail_84.html
做为平替,将由穿山甲接口替代,佣金直接在本站会员中心结算。
详情见穿山甲API说明 https://www.veapi.cn/apidoc/douyindouke/369
该接口用于分销活动页口令获取活动页信息,可用于解析已经转链过的活动页抖口令。
活动分销页在哪?您可以在“抖客后台——抖客工具——活动页分销”中找到。
本接口仅供达人专用,需获取达人授权。
环境 | http 地址 | https 地址 |
---|---|---|
正式环境 | http://api.veapi.cn/douke/activity_ShareCommandParse | 暂无 |
参数名称 | 参数类型 | 必填 | 示例值 | 描述 |
---|---|---|---|---|
vekey | String | 是 | V123M56 | 公共参数,接口秘钥,请在会员中心获取 |
share_command | String | 是 | 5:/ 复制此链接,打开抖音,等待你。##a## | 活动页分享口令 |
access_token | String | 否 | 13f74da5-7423-4fc9-9d47-895251f6a3e2 | 达人授权token值 |
GET/POST http://api.veapi.cn/douke/activity_ShareCommandParse?vekey=xxx&share_command=8%3A%2F+复制此链接,打开抖音,有惊喜等待你。%23%232gLwLiBrG36B8%23%23&access_token=e3f74da5-7423-4fc9-9d47-895251f6a3e2
$api="http://api.veapi.cn/douke/activity_ShareCommandParse?vekey=xxx&share_command=8%3A%2F+复制此链接,打开抖音,有惊喜等待你。%23%232gLwLiBrG36B8%23%23&access_token=e3f74da5-7423-4fc9-9d47-895251f6a3e2"; $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/activity_ShareCommandParse?vekey=xxx&share_command=8%3A%2F+复制此链接,打开抖音,有惊喜等待你。%23%232gLwLiBrG36B8%23%23&access_token=e3f74da5-7423-4fc9-9d47-895251f6a3e2"; // 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/activity_ShareCommandParse?vekey=xxx&share_command=8%3A%2F+复制此链接,打开抖音,有惊喜等待你。%23%232gLwLiBrG36B8%23%23&access_token=e3f74da5-7423-4fc9-9d47-895251f6a3e2" # 发送请求 response = requests.get(target_url) # 获取页面内容 if response.status_code == 200: print response.text
参数名称 | 参数类型 | 示例值 | 描述 |
---|---|---|---|
activity_id | Int64 | 1 | 1:百亿补贴2:秒杀活动3:自建活 动页 |
mix_activity_id | String | 7113838489157763358 | 可推广的运营自建活动页活动 id;activity_id为3时,返回该项 |
activity_url | String | sslocal://webcast_webview?url= | 支持h5和schema两种形式; activity_id为3时,返回该项 |
{ "error": "0", "msg": "查询成功!", "data": { "activity_id": 3, "activity_url": "sslocal://webcast_webview?disable_host_jsb_method=1&disable_thread_spread=1&hide_nav_bar=1&should_full_screen=1&trans_status_bar=1&url=https%3A%2F%2Fmix.jinritemai.com%2Ffalcon%2Fmix_page%2Findex.html%3F__live_platform__%3Dwebcast%26__pia_manifest__%3D%257B%2522page_name%2522%253A%2522index%2522%252C%2522worker%2522%253Atrue%252C%2522public_path%2522%253A%2522https%253A%252F%252Flf1-fe.ecombdstatic.com%252Fobj%252Fecom-cdn-default%252Fmix_page%252F%2522%257D%26allowMediaAutoPlay%3D1%26enter_from%3Dguangfushi%26hide_nav_bar%3D1%26hide_system_video_poster%3D1%26id%3D7208106463238029629%26origin_type%3Dguangfushi%26pass_enter_from%3D1%26pia_mixrender%3D1%26should_full_screen%3D1%26trans_status_bar%3D1%26ttwebview_extension_mixrender%3D1%26web_bg_color%3D%2523FF88A4%26entrance_info%3D%257B%2522ecom_scene_id%2522%253A%25221031%252C1359%2522%257D&use_pia=1&use_wk_falcon=1&web_bg_color=%23ffFF88A4", "mix_activity_id": "7208106463238029629" }, "request_id": "jPsT3ZN" }