解析各大平台短视频信息
JSON| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
apikey |
string | 必填 | 用户中心获取 |
url |
string | 必填 | 视频链接 |
<?php
$url = 'https://api.starhot.cc/API/jiexi/index.php';
$params = ['apikey' => 'YOUR_VALUE', 'url' => '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://api.starhot.cc/API/jiexi/index.php"
params = {
'apikey': 'YOUR_VALUE',
'url': 'YOUR_VALUE',
}
response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://api.starhot.cc/API/jiexi/index.php');
const params = {
'apikey': 'YOUR_VALUE',
'url': '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));