请求地址: https://api-gw.onebound.cn/douyin/item_password
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
key | String | 是 | 调用key(必须以GET方式拼接在URL中) |
secret | String | 是 | 调用密钥 |
api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
version | String | 否 | API版本 |
API测试工具 http://console.open.onebound.cn/console/?i=Dennis
请求参数:word=https://v.douyin.com/FC9YN33/
参数说明:word:短口令
响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
item |
item[] | 0 | 视频详情数据 | |
num_iid |
String | 0 | 7092264344980868359 | 视频ID |
title |
String | 0 | 修以美好,与君相遇#就算无人欣赏也要独自芬芳 | 视频标题 |
nick |
String | 0 | 花草日记 麦麦 | 昵称 |
detail_url |
String | 0 | https://www.iesdouyin.com/share/video/7092264344980868359/?region=&mid=7090863251021515533&u_code=0&did=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&iid=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&with_sec_did=1&titleType=title | 链接 |
signature |
String | 0 | 不谈悲喜、只闻花香\n\n手机随拍、装点生活 | 签名 |
item_imgs |
Mix | 0 | item_imgs[] | 图片 |
video |
Mix | 0 | [] | |
music |
Mix | 0 | [] |
请求示例
&secret=<您自己的apiSecret>&word=https://v.douyin.com/FC9YN33/";
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, "gzip");
var_dump(curl_exec($curl));
?>
API返回结果
Result Object:
---------------------------------------
{
"item": {
"item": {
"num_iid": "7092264344980868359",
"detail_url": "https://www.iesdouyin.com/share/video/7092264344980868359/?region=&mid=7090863251021515533&u_code=0&did=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&iid=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&with_sec_did=1&titleType=title",
"title": "修以美好,与君相遇#就算无人欣赏也要独自芬芳",
"type": "video",
"nick": "花草日记 麦麦",
"signature": "不谈悲喜、只闻花香\n\n手机随拍、装点生活",
"uid": "5698411035",
"short_id": "969898359",
"video": {
"url": "https://aweme.snssdk.com/aweme/v1/playwm/?video_id=v0200fg10000c9mcherc77ufa73socn0&ratio=720p&line=0",
"url_raw": "https://aweme.snssdk.com/aweme/v1/play/?video_id=v0200fg10000c9mcherc77ufa73socn0&ratio=720p&line=0",
"pic_url": "https://p6-sign.douyinpic.com/tos-cn-p-0015/871cb3034d9b4073bd2aa8960bff93fd~c5_300x400.jpeg?x-expires=1666861200&x-signature=Rmij2xsQK5khox6cGgKN1LsomVA%3D&from=3213915784_large&s=PackSourceEnum_DOUYIN_REFLOW&se=false&sc=cover&l=202210131707500102091570384360FC93"
},
"music": {
"title": "@若然若创作的原声一若然若",
"nick": "若然若",
"url": "https://sf3-cdn-tos.douyinstatic.com/obj/ies-music/7090863247943109407.mp3",
"pic_url": "https://p26.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_1e7c8177679e3c9b4743da4968714762.jpeg?from=116350172"
},
"item_imgs": null
},
"data_from": "app"
},
"error": "",
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:90 max:10000 all[219=90+70+59];expires:2030-12-31",
"execution_time": "0.278",
"server_time": "Beijing/2022-10-13 17:07:50",
"client_ip": "106.6.36.148",
"call_args": [],
"api_type": "douyin",
"translate_language": "zh-CN",
"translate_engine": "baidu",
"server_memory": "3.09MB",
"request_id": "gw-1.6347d56664812",
"last_id": "1280807643"
}