网剧搜索
整合多平台网剧,集中化管理搜索。

接口地址: http://myapi.2su.cc/api/wangjusousuo

返回格式: JSON

请求方式: GET

请求示例: http://myapi.2su.cc/api/wangjusousuo?apiKey=用户中心apiKey&act=list&page=1&num=10&name=总裁

请求参数说明:

名称 必填 类型 说明
act string 行为动作:all(全部资源) | hot(热门资源) | today(今日更新) | list(搜索资源)
page int 页码(仅行为动作为list时需要该参数)
num int 每页数量(仅行为动作为list时需要该参数)
name string 关键词(仅行为动作为list时需要该参数)

返回参数说明:

名称 类型 说明
code int 状态码:0 成功
message string 信息
data object 返回结果集
data => {int} => createAt int 上架时间戳
data => {int} => id int 上架ID
data => {int} => link string 资源链接
data => {int} => name string 剧名
data => {int} => updateAt int 更新时间戳

返回示例:

{
  "code": 0,
  "data": {
    "rows": [
      {
        "createAt": 1710135861,
        "id": 1,
        "link": "https://pan.quark.cn/s/8f418807aa1c",
        "name": "230-腹黑总裁的惹火娇妻(79集)",
        "updateAt": 1710406046
      },
      {
        "createAt": 1710135861,
        "id": 17,
        "link": "https://pan.quark.cn/s/13a6cd08e97e",
        "name": "16(1).我的绝色总裁老婆(97集)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 21,
        "link": "https://pan.quark.cn/s/9186849b3e0c",
        "name": "12(1).下山后,美女总裁爱上我(71集)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 28,
        "link": "https://pan.quark.cn/s/99ff08ba3f5b",
        "name": "5(1).总裁,秘书她逃跑了(60集)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 41,
        "link": "https://pan.quark.cn/s/9d2a6b2b7f2d",
        "name": "15(1).美女总裁的战帝保镖(111集)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 46,
        "link": "https://pan.quark.cn/s/5deaa07776d8",
        "name": "11(1).被渣后我成了总裁的心尖宠(75集)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 99,
        "link": "https://pan.quark.cn/s/7a1639e8df61",
        "name": "23(1).闪婚独宠总裁老公太难缠 -合成版",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 121,
        "link": "https://pan.quark.cn/s/d1bc8343c8ea",
        "name": "6(1).总裁爹地人设崩了(82集)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 262,
        "link": "https://pan.quark.cn/s/c302e5ae99b0",
        "name": "月入三千娶总裁(82集)(1)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 286,
        "link": "https://pan.quark.cn/s/c8b506c61760",
        "name": "5(1).亿万萌宝总裁求名分(100集)",
        "updateAt": 1710135861
      }
    ],
    "total": 503
  },
  "message": "Success"
}

请求参数设置:

参数名称 参数值


{
  "code": 0,
  "data": {
    "rows": [
      {
        "createAt": 1710135861,
        "id": 1,
        "link": "https://pan.quark.cn/s/8f418807aa1c",
        "name": "230-腹黑总裁的惹火娇妻(79集)",
        "updateAt": 1710406046
      },
      {
        "createAt": 1710135861,
        "id": 17,
        "link": "https://pan.quark.cn/s/13a6cd08e97e",
        "name": "16(1).我的绝色总裁老婆(97集)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 21,
        "link": "https://pan.quark.cn/s/9186849b3e0c",
        "name": "12(1).下山后,美女总裁爱上我(71集)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 28,
        "link": "https://pan.quark.cn/s/99ff08ba3f5b",
        "name": "5(1).总裁,秘书她逃跑了(60集)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 41,
        "link": "https://pan.quark.cn/s/9d2a6b2b7f2d",
        "name": "15(1).美女总裁的战帝保镖(111集)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 46,
        "link": "https://pan.quark.cn/s/5deaa07776d8",
        "name": "11(1).被渣后我成了总裁的心尖宠(75集)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 99,
        "link": "https://pan.quark.cn/s/7a1639e8df61",
        "name": "23(1).闪婚独宠总裁老公太难缠 -合成版",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 121,
        "link": "https://pan.quark.cn/s/d1bc8343c8ea",
        "name": "6(1).总裁爹地人设崩了(82集)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 262,
        "link": "https://pan.quark.cn/s/c302e5ae99b0",
        "name": "月入三千娶总裁(82集)(1)",
        "updateAt": 1710135861
      },
      {
        "createAt": 1710135861,
        "id": 286,
        "link": "https://pan.quark.cn/s/c8b506c61760",
        "name": "5(1).亿万萌宝总裁求名分(100集)",
        "updateAt": 1710135861
      }
    ],
    "total": 503
  },
  "message": "Success"
}

错误码格式说明:

名称 类型 说明
code int 错误码:1/2

代码示例:

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => 'http://myapi.2su.cc/api/wangjusousuo?apiKey=用户中心apiKey&act=list&page=1&num=10&name=龙王',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Accept: */*',
'Host: myapi.2su.cc',
'Connection: keep-alive'
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;