# 呆错故事大全API描述
* 故事大全共包括三个接口,分别为故事大全栏目分类API、故事大全数据列表API、故事大全内容详情API。
* 故事大全返回情感故事,童话故事,感人故事,爱情故事,哲理故事,鬼故事,寓言故事,名人故事,成语故事,情感口述,亲情故事,友情故事,termId可以指定故事类型。
* 故事大全通过呆错API的网关服务对外免费提供数据接口服务,如有需要请先免费申请TOKEN即可使用。
## 呆错故事大全栏目分类API接口
* 请求协议:http/https
* 请求方式:get/post
* 返回类型:json
* 请求接口:https://api.daicuo.cc/gushi/category
* 请求示例:https://api.daicuo.cc/gushi/category?token=6fc79c072a4500b749b5b11b9f969c8c
**请求参数**
| 参数名 | 描述 |
| --- | --- |
| token | API令牌可免费申请|
**响应示例**
```
{
"code": 200,
"msg": "成功",
"time": "1673701076",
"data": [{
"term_id": 135,
"term_name": "情感故事",
"term_slug": "qinggangushi"
}, {
"term_id": 136,
"term_name": "童话故事",
"term_slug": "tonghuagushi"
}, {
"term_id": 137,
"term_name": "感人故事",
"term_slug": "ganrengushi"
}, {
"term_id": 138,
"term_name": "爱情故事",
"term_slug": "aiqinggushi"
}, {
"term_id": 139,
"term_name": "哲理故事",
"term_slug": "zheligushi"
}, {
"term_id": 140,
"term_name": "鬼故事",
"term_slug": "guigushi"
}, {
"term_id": 141,
"term_name": "寓言故事",
"term_slug": "yuyangushi"
}, {
"term_id": 142,
"term_name": "名人故事",
"term_slug": "mingrengushi"
}, {
"term_id": 143,
"term_name": "成语故事",
"term_slug": "chengyugushi"
}, {
"term_id": 144,
"term_name": "情感口述",
"term_slug": "qinggankoushu"
}, {
"term_id": 145,
"term_name": "亲情故事",
"term_slug": "qinqinggushi"
}, {
"term_id": 146,
"term_name": "友情故事",
"term_slug": "youqinggushi"
}]
}
```
## 呆错故事大全数据列表API接口
* 请求协议:http/https
* 请求方式:get/post
* 返回类型:json
* 请求接口:https://api.daicuo.cc/gushi/item
* 请求示例:https://api.daicuo.cc/gushi/item?token=6fc79c072a4500b749b5b11b9f969c8c&termId=135&pageStart=22668
**请求参数**
| 参数名 | 描述 |
| --- | --- |
| token | API令牌可免费申请|
| pageStart | 起始ID,上一页返回的start_id|
| sortOrder | 排序方式(asc|desc)|
| termId | 栏目分类ID|
**响应示例**
```
{
"code": 200,
"msg": "成功",
"time": "1673702646",
"data": {
"per_page": 10,
"has_more": true,
"start_id": 115919,
"list": [{
"info_name": "最得意的爱情",
"info_slug": "zdydaq",
"info_excerpt": "那年春节,他决定带她回老家。他们在北京打工,他是拉货司机,她在私企做文员,两人已经三个年头没有回家了。儿子的相片一张一张从老家寄过来,一次一个样儿,她看着照片,眼泪“哗哗”地往下掉。每到这个时候,他就安慰她说,今年春节一定回去。临行前,他给她买了身新衣裳,大红的羽绒...",
"info_update_time": "2023-01-07 08:29:49",
"info_type": "index",
"info_views": 0,
"info_hits": 0,
"info_id": 22711,
"cms_referer": "fd6cd8fd1248870caef6a5493f1e0f1d"
}, {
"info_name": "十八岁,我爱你,你却爱着她",
"info_slug": "sbswannqazt",
"info_excerpt": "才几天的功夫,我们就从老家搬到了新家,带着对一切新鲜事物的好奇,我们又一次踏进了梦想的学校,学校离家很近,几分钟就到,正好是星期天同学们放假,只好等到星期一的时候再去报道,邻居家的女孩跟我们是一个班的,极度热情的跟我们喧闹,从此成了我们的好朋友之一。是好奇、是惊喜、是兴奋、不...",
"info_update_time": "2023-01-07 08:29:50",
"info_type": "index",
"info_views": 0,
"info_hits": 0,
"info_id": 22714,
"cms_referer": "0dd5146787540202359dca8f79388352"
}]
}
}
```
## 呆错故事大全内容详情API接口
* 请求协议:http/https
* 请求方式:get/post
* 返回类型:json
* 请求接口:https://api.daicuo.cc/gushi/index
* 请求示例:https://api.daicuo.cc/gushi/index?token=6fc79c072a4500b749b5b11b9f969c8c&id=22668
**请求参数**
| 参数名 | 描述 |
| --- | --- |
| token | API令牌可免费申请|
| id| 内容ID |
**响应示例**
```
{
"code": 200,
"msg": "成功",
"time": "1673700832",
"data": {
"info_id": 22670,
"info_name": "别留下我一个人",
"info_slug": "blxwygr",
"info_excerpt": "他们在这一天约定什么都不要想,变着花样的把这一天过完,因为过段时间她就要嫁人了,不是她不爱了,只是迫于现实的无奈,她要尽孝道,亲人需要一笔数额很大的救命钱,一整天他们什么话都没有说,尽情的玩着,吃了他们曾经最爱的东西,看了曾经一起看过的电影,唱了只属于他们的歌,唱到高兴处他们...",
"info_create_time": "2023-01-07 08:29:39",
"info_update_time": "2023-01-07 08:29:39",
"info_order": 0,
"info_type": "index",
"info_views": 3,
"info_hits": 0,
"cms_down": "0",
"cms_fast": "0",
"cms_head": "0",
"cms_letter": "b",
"cms_recommend": "0",
"cms_referer": "60143d55ddd866aecf444b4d86c65650",
"cms_top": "0",
"cms_up": "0",
"category_id": [135],
"category_name": ["情感故事"]
}
}
```