最近很火的短剧接口
https://pic.callyulu.cn/i/2026/0e909848eb45b460ae0fc24eb8d72516.jpghttps://pic.callyulu.cn/i/2026/71253b18a8f05cdb41446e8d761477ff.jpg
https://pic.callyulu.cn/i/2026/287f343a9b76fc02986f4b0f024da07e.jpg
https://pic.callyulu.cn/i/2026/0875029b21eea88b5290af2373bd7958.jpg
最近发现短剧需求挺大,搭建了短剧站并且抓到了接口,大家可以自行调成想要的返回格式
[*]<?php
header("Access-Control-Allow-Origin: *"); // 允许跨域请求
if(isset($_GET['act'])) {
$act = $_GET['act'];
if($act == 'yingshilist') {
$url = 'http://www.v60s.top/tvapi?act=yingshilist';
} elseif($act == 'search') {
if(isset($_GET['name'])) {
$name = urlencode($_GET['name']);
$url = 'http://www.v60s.top/tvapi?act=search&name=' . $name;
} else {
echo 'Error: Missing parameter "name"';
exit();
}
} elseif($act == 'Daily') {
$url = 'http://www.v60s.top/tvapi?act=Daily';
} else {
echo 'Error: Invalid action';
exit();
}
// 使用cURL库发送GET请求
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
// 输出获取到的数据
echo $data;
} else {
echo '请检查字段"';
}
?>
复制代码
https://pic.callyulu.cn/i/2026/0e909848eb45b460ae0fc24eb8d72516.jpg
https://pic.callyulu.cn/i/2026/71253b18a8f05cdb41446e8d761477ff.jpg
https://pic.callyulu.cn/i/2026/287f343a9b76fc02986f4b0f024da07e.jpg
https://pic.callyulu.cn/i/2026/0875029b21eea88b5290af2373bd7958.jpg
https://pic.callyulu.cn/i/2026/0e909848eb45b460ae0fc24eb8d72516.jpg
https://pic.callyulu.cn/i/2026/71253b18a8f05cdb41446e8d761477ff.jpg
https://pic.callyulu.cn/i/2026/287f343a9b76fc02986f4b0f024da07e.jpg
https://pic.callyulu.cn/i/2026/0875029b21eea88b5290af2373bd7958.jpg
跨域头直接给 * 这点挺对我胃口,省得自己再折腾代/里,调起来顺手。不过那个 v60s.top 的上游是真稳还是过两天就挂,你跑下来有谱吗?短剧这行资源方换域名比翻书还快,接口今天通明天 404 的事我遇过不止一回。另外 search 那个分支里 name 只做了 urlencode,返回格式还得自己转,要是能顺手加个 json 开关就更省事了。
{:5_238:}
页:
[1]