稳定、快速、免费的 API 接口服务
共收录了 238 个接口
疯狂星期四文案API
接口地址: https://api.suyanw.cn/api/kfcyl.php
返回格式: JSON
请求方式: GET/POST
请求示例: https://api.suyanw.cn/api/kfcyl.php?type=json
请求参数说明:
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| ?type=json | 否 | string | json输出 |
系统级错误:
| 名称 | 说明 |
|---|---|
| 400 | 请求错误! |
| 403 | 请求被服务器拒绝! |
| 405 | 客户端请求的方法被禁止! |
| 408 | 请求时间过长! |
| 500 | 服务器内部出现错误! |
| 501 | 服务器不支持请求的功能,无法完成请求! |
| 503 | 系统维护中! |
返回示例:
暗恋的人突然朋友圈官宣了,哭累了,突然不想活了,听说炸鸡跟酸奶一起吃会中毒,酸奶我有了,有没有朋友给我寄点炸鸡,听说肯德基的炸鸡毒性最强
错误码格式说明:
| 无 |
|---|
调用示例:
<script type="text/javascript" src="https://api.suyanw.cn/api/kfcyl.php?type=js"></script><script>suyan()</script>
代码示例PHP:
<?php
header('Content-type:text/json;charset=utf-8;'); $type = $_GET['type']; $result = file_get_contents('https://api.suyanw.cn/api/kfcyl.php?type=' . $type); echo $result; ?>