抖音主页解析
正常抖音主页解析
接口详情
请求地址
https://gy.owyun.cn/api/dyzy/
示例地址
https://gy.owyun.cn/api/dyzy/?apikey=你的api密钥&url=用户主页链接&count=18
请求方式
GET
返回格式
application/json
请求参数说明
| 参数名 | 必填 | 类型 | 说明 | 示例值 |
|---|---|---|---|---|
| apikey | 必填 | string | 用户密钥 | |
| url | 可选 | string | 用户主页链接,和id二选一即可 | https://www.douyin.com/user/MS4wLjABAAAADL57toZ9V_hJJGOdUAQFXo-PpAE5oLDNLU_N-_hQ2SAmFjr8i3kbAvHCkDx1j9Yd?from_tab_name=main&is_search=0&list_name=follow&nt=0 |
| id | 可选 | string | 用户主页id,和url二选一即可 | MS4wLjABAAAADL57toZ9V_hJJGOdUAQFXo-PpAE5oLDNLU_N-_hQ2SAmFjr8i3kbAvHCkDx1j9Yd |
| count | 必填 | string | 获取作品数量,不填默认获取18个 | 10 |
示例代码
<?php
$url = 'https://gy.owyun.cn/api/dyzy/';
$params = [
'apikey' => 'YOUR_VALUE',
'url' => 'YOUR_VALUE',
'id' => 'YOUR_VALUE',
'count' => 'YOUR_VALUE',
];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = "https://gy.owyun.cn/api/dyzy/"
params = {
"apikey": "YOUR_VALUE",
"url": "YOUR_VALUE",
"id": "YOUR_VALUE",
"count": "YOUR_VALUE",
}
response = requests.get(url, params=params)
print(response.text)
const url = new URL("https://gy.owyun.cn/api/dyzy/");
const params = {
"apikey": "YOUR_VALUE",
"url": "YOUR_VALUE",
"id": "YOUR_VALUE",
"count": "YOUR_VALUE",
};
Object.keys(params).forEach((key) => url.searchParams.append(key, params[key]));
fetch(url)
.then((response) => response.text())
.then((data) => console.log(data))
.catch((error) => console.error("Error:", error));
返回示例
暂无返回示例,可在“在线调试”中查看实时返回结果。
在线调试
此处将显示接口返回结果...