https://api.cenguigui.cn/api/duanju/hema.php?name=总裁&page=1
GET
JSON
正常启用
以下参数为接口所需调用信息
| 参数 | 是否必填 | 类型 | 说明 | 示例 |
|---|---|---|---|---|
| name | 是 | 是 | 搜索关键词,用于搜索短剧,请单独传递 | |
| book_id | 是 | 是 | 短剧列表id,用于获取视频列表,请单独传递 | |
| video_id | 是 | 是 | 视频id,用于解析视频,请同时传递book_id和video_id | |
| page | 否 | 是 | 用于搜索翻页,默认1 | |
| type | 否 | 是 | 当type为mp4时,直接跳转播放 |
https://api.cenguigui.cn/api/duanju/hema.php?name=总裁&page=1
{
"code": 200,
"msg": "搜索成功 - 河马/繁花/点众 聚合短剧",
"total_page": 30,
"data": [
{
"book_id": "41000104443",
"title": "女总裁",
"author": "黄丛,陈瑶",
"type": [
{
"id": 417,
"name": "逆袭"
},
{
"id": 838,
"name": "情感"
},
{
"id": 472,
"name": "小人物"
},
{
"id": 1129,
"name": "都市"
},
{
"id": 1163,
"name": "女总裁"
}
],
"totalChapterNum": "60",
"followCount": "4.49万",
"cover": "https://seoali.zqkanshu.com/cppartner/4x1/41x0/410x0/41000104443/41000104443.jpg?t=1721897138790&imageView2/0/w/200/h/267",
"intro": "肖风,一个普通的上班族,原本过着平凡的生活,却在一个偶然的机会里,被豪门女总裁楚梦相中,成为了她唯一的男人。楚梦,美丽而强势,是商业界的传奇人物。她一手创立的秦氏集团,在业界有着举足轻重的地位。然而,这位女强人却有着不为人知的秘密,她需要一个强大的男人来保护自己和她的商业帝国。肖风原本对这一切毫无所知,直到他被楚梦亲自选中,成为了她的贴身保镖。"
}
],
"tips": "笒鬼鬼API-获取到对应book_id,然后用于获取全部视频列表",
"time": "2025-04-04 10:44:19"
}
// JavaScript调用示例
fetch("https://api.cenguigui.cn/api/duanju/hema.php?name=总裁&page=1", {
method: "GET",
headers: {
"Content-Type": "application/json"
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
# Python调用示例
import requests
url = "https://api.cenguigui.cn/api/duanju/hema.php?name=总裁&page=1"
response = requests.get(url)
print(response.json())
// Java调用示例
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
public class ApiExample {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newBuilder()
.version(HttpClient.Version.HTTP_2)
.connectTimeout(Duration.ofSeconds(10))
.build();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.cenguigui.cn/api/duanju/hema.php?name=总裁&page=1"))
.build();
client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
.thenApply(HttpResponse::body)
.thenAccept(System.out::println)
.join();
}
}
<?php
// PHP调用示例
$url = "https://api.cenguigui.cn/api/duanju/hema.php?name=总裁&page=1";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);
print_r($result);
?>
// C#调用示例
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
using var client = new HttpClient();
var url = "https://api.cenguigui.cn/api/duanju/hema.php?name=总裁&page=1";
var response = await client.GetAsync(url);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}
// 响应结果将显示在这里