百度短剧

百度旗下全部短剧

API 文档

  • 接口地址: https://apicx.asia/api/baidu.duanju
  • 返回格式: JOSN
  • 请求方式: GET
  • 请求示例: https://apicx.asia/api/baidu.duanju?name=总裁&page=1&token=你的token

请求参数说明:

名称 必填 类型 说明
token string 登录获取token
namestring搜索短剧名,请单独传递
pagestring用于翻页,默认1
idstring短剧id,通过搜索获得用于获取集数列表
video_idstring视频id,通过列表获得用于获取视频详情

返回参数说明:

名称 类型 说明
code integer 返回的状态码
data object 返回的数据/数据对象
msg string 返回的消息
time string 请求时间
data[].idstringid
data[].titlestringtitle
data[].totalChapterNumnumbertotalChapterNum
data[].coverstringcover

返回示例:

{
  "code": 200,
  "msg": "搜索成功 - 百度短剧",
  "data": [
    {
      "id": "9981483272694360372",
      "title": "总裁盛宠天价娇妻",
      "totalChapterNum": 71,
      "cover": "https://pic.rmb.bdstatic.com/bjh/video/c017d60fd9858f0bacf8df24c44e41c6.jpeg"
    },
    {
      "id": "9535452984908364584",
      "title": "婚礼发癫后,奶狗总裁追着我宠",
      "totalChapterNum": 80,
      "cover": "https://pic.rmb.bdstatic.com/bjh/video/edb2a47e97ae515e5f7fe6c4c7ad8fde.jpeg"
    },
    {
      "id": "10009500066032050860",
      "title": "失格总裁上门报道",
      "totalChapterNum": 11,
      "cover": "https://pic.rmb.bdstatic.com/baidu-rmb-video-cover-1/2024-02/3qOJeWiltrpFxhnU7yyDOh.jpg"
    },
    {
      "id": "10801855561532345726",
      "title": "总裁男友",
      "totalChapterNum": 7,
      "cover": "http://pics0.baidu.com/feed/8b82b9014a90f6034e7bb241bdf89a16b251ede0.jpeg?token=b4f5ae461c8906e47abed63f3c9b951c"
    },
    {
      "id": "9451731930403648455",
      "title": "暖心总裁",
      "totalChapterNum": 13,
      "cover": "http://pic.rmb.bdstatic.com/bjh/video/3428ea145a99d9dc058c2bf2fac99117.jpeg?for=bg"
    },
    {
      "id": "9086433378229314299",
      "title": "弃少归来撩总裁",
      "totalChapterNum": 79,
      "cover": "https://pic.rmb.bdstatic.com/bjh/240401/playlet/e57ff6feda90f3b89f170b198233dd727384.jpeg"
    },
    {
      "id": "8886186390647763544",
      "title": "女总裁的高手老公",
      "totalChapterNum": 75,
      "cover": "https://pic.rmb.bdstatic.com/bjh/video/ccd1aba136d5b5645f10af096cee3ae2.jpeg"
    },
    {
      "id": "10548756548845308960",
      "title": "报告总裁,夫人婚前要实习",
      "totalChapterNum": 87,
      "cover": "https://pic.rmb.bdstatic.com/bjh/240408/playlet/25266c889a107d023728840e3ca1fd7a6959.jpeg"
    },
    {
      "id": "9760255953924629941",
      "title": "傲娇女总裁的医皇保镖",
      "totalChapterNum": 111,
      "cover": "https://pic.rmb.bdstatic.com/bjh/240404/playlet/9c28e645bbf2209a9ee2ee8d1d63c343740.jpeg"
    },
    {
      "id": "9075754328656387957",
      "title": "一夜荒唐:美女总裁带娃找上门",
      "totalChapterNum": 82,
      "cover": "https://pic.rmb.bdstatic.com/bjh/240822/beautify/163a6607900d8eabf4007b401511895d.jpeg@c_1,w_1080,h_1439,x_0,y_0"
    },
    {
      "id": "9480749988008171002",
      "title": "师娘,我下山找总裁老婆去了",
      "totalChapterNum": 92,
      "cover": "https://pic.rmb.bdstatic.com/bjh/video/c2c040fdaa71df7b95d87f2e8d40672d.jpeg"
    },
    {
      "id": "9355125750697586551",
      "title": "美女总裁的战帝保镖",
      "totalChapterNum": 111,
      "cover": "https://pic.rmb.bdstatic.com/bjh/video/5be02d08f0c3c8ad1d02a08ee40eeff4.jpeg"
    },
    {
      "id": "10514756471118622428",
      "title": "闪婚后总裁身份曝光了",
      "totalChapterNum": 96,
      "cover": "https://pic.rmb.bdstatic.com/bjh/video/afa66a6b7ab45472a32f5386328c0a79.jpeg"
    },
    {
      "id": "10094377252681566874",
      "title": "最强保镖,美女总裁来抢婚",
      "totalChapterNum": 99,
      "cover": "https://pic.rmb.bdstatic.com/bjh/video/8c51f8ea35575b9b2a4f060424c1dfc2.jpeg"
    },
    {
      "id": "9578780039498883527",
      "title": "开局撞上美女总裁",
      "totalChapterNum": 95,
      "cover": "https://pic.rmb.bdstatic.com/bjh/video/6135df6970d793d8ee286096209e2efa.jpeg"
    },
    {
      "id": "9733239037721027368",
      "title": "总裁夫人超凶猛",
      "totalChapterNum": 88,
      "cover": "https://pic.rmb.bdstatic.com/bjh/240305/playlet/09e0054bfc81e24b48a5fcbf796ec4c78691.jpeg"
    },
    {
      "id": "9360297221974986036",
      "title": "超级女总裁之风云人生",
      "totalChapterNum": 141,
      "cover": "https://pic.rmb.bdstatic.com/bjh/video/9ed31acd411be89bcf76ba01f7eedadd.jpeg"
    },
    {
      "id": "10762687637300772165",
      "title": "总裁夫人米粒",
      "totalChapterNum": 12,
      "cover": "https://pic.rmb.bdstatic.com/baidu-rmb-video-cover-1/2024-02/nsIftZiYdX9QAWASVnGR0E.jpg"
    },
    {
      "id": "10666263933675923897",
      "title": "天才萌宝:抢个总裁当爹地",
      "totalChapterNum": 100,
      "cover": "https://pic.rmb.bdstatic.com/bjh/video/64c6c5e440f21252bc4d255e1d1f21fa.jpeg"
    },
    {
      "id": "9686042780346468529",
      "title": "龙凤双宝:总裁爹地追妻忙",
      "totalChapterNum": 98,
      "cover": "https://pic.rmb.bdstatic.com/bjh/video/cf83aa92fab014f177d7dec19cf8f9c4.jpeg"
    }
  ],
  "tips": "获取到对应id,然后用于获取全部视频列表",
  "time": "2025-10-12 10:53:18",
  "cached_time": "2025-10-12 10:53:18"
}

错误码格式说明:

名称 类型 说明
200 string 返回状态码(成功)
500 string 返回的状态码(失败)

代码示例:


<?php
// 初始化cURL会话
$ch = curl_init();
// 设置请求URL,用户中心获取token,自行替换其他参数
curl_setopt($ch, CURLOPT_URL, "https://apicx.asia/api/baidu.duanju?name=总裁&page=1&token=你的token");
// 设置请求头
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Authorization: YOUR_TOKEN'
));
// 返回响应而不是直接输出
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// 执行请求并获取响应
$response = curl_exec($ch);
// 关闭cURL会话
curl_close($ch);
// 将响应解析为JSON格式
$data = json_decode($response, true);
// 输出JSON数据
print_r($data);
?>
            

import requests

# 设置请求URL和头部,用户中心获取token,自行替换其他参数
url = "https://apicx.asia/api/baidu.duanju?name=总裁&page=1&token=你的token"
headers = {
    'Authorization': 'YOUR_TOKEN'
}

# 发送GET请求
response = requests.get(url, headers=headers)
# 将响应解析为JSON格式
data = response.json()
# 输出JSON数据
print(data)
            

// 发送GET请求,用户中心获取token,自行替换其他参数
fetch("https://apicx.asia/api/baidu.duanju?name=总裁&page=1&token=你的token", {
    method: "GET",
    headers: {
        "Authorization": "YOUR_TOKEN"
    }
})
.then(response => response.json()) // 将响应解析为JSON格式
.then(data => console.log(data)) // 输出JSON数据
.catch(error => console.error('Error:', error));
            

import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;

public class Main {
    public static void main(String[] args) throws Exception {
        // 创建URL对象,用户中心获取token,自行替换其他参数
        URL url = new URL("https://apicx.asia/api/baidu.duanju?name=总裁&page=1&token=你的token");
        // 打开连接
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        // 设置请求方法
        conn.setRequestMethod("GET");
        // 设置请求头
        conn.setRequestProperty("Authorization", "YOUR_TOKEN");

        // 读取响应
        BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
        String inputLine;
        StringBuffer content = new StringBuffer();
        while ((inputLine = in.readLine()) != null) {
            content.append(inputLine);
        }
        in.close();
        // 输出JSON数据
        System.out.println(content.toString());
    }
}
            

using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program {
    static async Task Main() {
        using (HttpClient client = new HttpClient()) {
            // 设置请求头
            client.DefaultRequestHeaders.Add("Authorization", "YOUR_TOKEN");
            // 发送GET请求,用户中心获取token,自行替换其他参数
            HttpResponseMessage response = await client.GetAsync("https://apicx.asia/api/baidu.duanju?name=总裁&page=1&token=你的token");
            // 将响应解析为字符串
            string responseBody = await response.Content.ReadAsStringAsync();
            // 输出JSON数据
            Console.WriteLine(responseBody);
        }
    }
}
            

require 'net/http'
require 'uri'

# 创建URI对象,用户中心获取token,自行替换其他参数
uri = URI.parse("https://apicx.asia/api/baidu.duanju?name=总裁&page=1&token=你的token")
# 创建GET请求
request = Net::HTTP::Get.new(uri)
# 设置请求头
request["Authorization"] = "YOUR_TOKEN"

# 发送请求并获取响应
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
  http.request(request)
end

# 输出JSON数据
puts response.body
            

package main

import (
    "fmt"
    "io/ioutil"
    "net/http"
)

func main() {
    client := &http.Client{}
    // 创建GET请求,用户中心获取token,自行替换其他参数
    req, err := http.NewRequest("GET", "https://apicx.asia/api/baidu.duanju?name=总裁&page=1&token=你的token", nil)
    if err != nil {
        panic(err)
    }
    // 设置请求头
    req.Header.Add("Authorization", "YOUR_TOKEN")

    // 发送请求并获取响应
    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    // 读取响应体
    body, err := ioutil.ReadAll(resp.Body)
    if err != nil {
        panic(err)
    }
    // 输出JSON数据
    fmt.Println(string(body))
}