Loading... ## 概述 短剧搜索前端页面包含后台管理导入,API接口等功能,下面提供有短剧搜索服务API的对接指南,包括API功能、请求参数、返回数据格式及示例。 接口可以对接短剧机器人,短剧搜索服务API提供短剧名称的搜索功能,用户可通过API提交短剧名称关键字,获取相应的短剧信息列表。 ## 下载 <div class="hideContent">此处内容需要评论回复后(审核通过)方可阅读。</div> ## 搭建 1. 上传文件到根目录解压 2. 修改`config.php`内数据库信息 3. 导入`duanju.sql`文件到数据库 4. 修改`admin.php`后台信息 ## 预览 ![界面](https://image.blogbig.cn/2024/04/24/1713964109.png) ## API请求说明 * **请求URL**:`http://<你的服务器地址>/api.php` * **请求方式**:GET * **请求参数**: | 参数名 | 必选 | 类型 | 说明 | | :------- | :----- | :------- | :--------------- | | text | 是 | string | 短剧名称关键字 | ## 返回参数说明 * **返回格式**:JSON * **返回字段**: | 字段名 | 类型 | 说明 | | :----------- | :------- | :--------- | | play\_name | string | 短剧名称 | | play\_url | string | 短剧链接 | ## 请求示例 http ```httpspec GET http://<你的服务器地址>/api.php?text=悲惨世界 ``` ## 返回示例 * **成功返回**: json ```json [ { "play_name": "悲惨世界", "play_url": "http://example.com/lesmiserables" }, // ... 其他匹配的短剧信息 ] ``` * **搜索不到结果时返回**: json ```json { "message": "没有找到剧目" } ``` * **无效请求时返回**: json ```json { "message": "无效请求" } ``` ## 错误码 | 错误码 | 说明 | | :------- | :--------------- | | 200 | 请求成功 | | 400 | 无效请求 | | 500 | 服务器内部错误 | ## 推荐阅读 <div class="preview"> <div class="post-inser post box-shadow-wrap-normal"> <a href="https://www.blogbig.cn/archives/duanjurobot.html" target="_blank" class="post_inser_a no-external-link no-underline-link"> <div class="inner-image bg" style="background-image: url(https://image.blogbig.cn/2024/04/09/1712674086.png);background-size: cover;"></div> <div class="inner-content" > <p class="inser-title">【原创】全网抖音短剧搜索机器人插件</p> <div class="inster-summary text-muted"> 原创全网抖音短剧机器人插件,包括wx端与QQ端均可直接运营 ,纯纯免费分享,插件不带任何广告,插件自带群授权功能... </div> </div> </a> <!-- .inner-content #####--> </div> <!-- .post-inser ####--> </div> 正文到此结束 最后修改:2024 年 04 月 24 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏