{
    "openapi": "3.0.0",
    "info": {
        "title": "奇闻异事 - API文档",
        "version": "1.0.0",
        "description": "人人都好好奇心，民间趣事、灵异事件等。版权问题请联系发布方获取。（MCP 服务由 分类新闻 接口统一提供）"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/qiwen\/index": {
            "get": {
                "summary": "奇闻异事",
                "tags": [
                    "奇闻异事"
                ],
                "description": "默认返回10条最新资讯支持翻页和关键词搜索",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "num",
                        "in": "query",
                        "description": "返回数量",
                        "required": true,
                        "schema": {
                            "type": "int",
                            "example": 10,
                            "description": "返回数量"
                        }
                    },
                    {
                        "name": "form",
                        "in": "query",
                        "description": "兼容历史问题，建议传1",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 0,
                            "description": "兼容历史问题，建议传1"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "翻页",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "翻页"
                        }
                    },
                    {
                        "name": "rand",
                        "in": "query",
                        "description": "随机获取",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "随机获取"
                        }
                    },
                    {
                        "name": "word",
                        "in": "query",
                        "description": "检索关键词",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "天行数据",
                            "description": "检索关键词"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "example": "62ac899e8fcf654a74479b4239b4651f",
                                            "description": "新闻唯一ID"
                                        },
                                        "url": {
                                            "type": "string",
                                            "example": "https:\/\/www.tianapi.com\/article\/154",
                                            "description": "文章地址"
                                        },
                                        "ctime": {
                                            "type": "Date",
                                            "example": "2015-07-17",
                                            "description": "发布时间"
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "文章的标题",
                                            "description": "文章标题"
                                        },
                                        "picUrl": {
                                            "type": "string",
                                            "example": "https:\/\/www.tianapi.com\/static\/img\/logo.png",
                                            "description": "封面图片"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "文章来源",
                                            "description": "文章来源"
                                        },
                                        "description": {
                                            "type": "string",
                                            "example": "文章的描述",
                                            "description": "文章描述"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "newslist": [
                                            {
                                                "id": "449ea6c705650ed08c7017de8265770c",
                                                "url": "http:\/\/www.lingyi.org\/show\/282003.html",
                                                "ctime": "2021-02-01 10:00",
                                                "title": "灵异事件；古曼童养小鬼",
                                                "picUrl": "http:\/\/www.lingyi.org\/wp-content\/uploads\/2020\/10\/9.jpg",
                                                "source": "奇闻异事",
                                                "description": "我有个表哥，姓周。亲表哥，是我母亲的大姐的儿子，比我年长十来岁。表哥小时候学习成绩很好，那个时候的农村都是木板..."
                                            },
                                            {
                                                "id": "b76fa390a4c960719edd8c84da63149d",
                                                "url": "http:\/\/www.lingyi.org\/show\/281601.html",
                                                "ctime": "2021-01-28 14:00",
                                                "title": "无缘无故的打枪",
                                                "picUrl": "http:\/\/www.lingyi.org\/wp-content\/uploads\/2020\/10\/1-1.jpg",
                                                "source": "奇闻异事",
                                                "description": "只不过后来听说一共进去了十来个人，有一大半的人并没有找到。..."
                                            },
                                            {
                                                "id": "753e84e9780c21a4ece36f4bea2e1621",
                                                "url": "http:\/\/www.lingyi.org\/show\/281600.html",
                                                "ctime": "2021-01-28 13:00",
                                                "title": "丢东西之后找不到小偷",
                                                "picUrl": "http:\/\/www.lingyi.org\/wp-content\/uploads\/2020\/10\/6.jpg",
                                                "source": "奇闻异事",
                                                "description": "说个新鲜点的吧，最近我们一直在小区卡点值岗。..."
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "奇闻异事",
                "tags": [
                    "奇闻异事"
                ],
                "description": "默认返回10条最新资讯支持翻页和关键词搜索",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "num": {
                                        "type": "int",
                                        "example": 10,
                                        "description": "返回数量"
                                    },
                                    "form": {
                                        "type": "int",
                                        "example": 0,
                                        "description": "兼容历史问题，建议传1"
                                    },
                                    "page": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "翻页"
                                    },
                                    "rand": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "随机获取"
                                    },
                                    "word": {
                                        "type": "string",
                                        "example": "天行数据",
                                        "description": "检索关键词"
                                    }
                                },
                                "required": [
                                    "key",
                                    "num"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "example": "62ac899e8fcf654a74479b4239b4651f",
                                            "description": "新闻唯一ID"
                                        },
                                        "url": {
                                            "type": "string",
                                            "example": "https:\/\/www.tianapi.com\/article\/154",
                                            "description": "文章地址"
                                        },
                                        "ctime": {
                                            "type": "Date",
                                            "example": "2015-07-17",
                                            "description": "发布时间"
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "文章的标题",
                                            "description": "文章标题"
                                        },
                                        "picUrl": {
                                            "type": "string",
                                            "example": "https:\/\/www.tianapi.com\/static\/img\/logo.png",
                                            "description": "封面图片"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "文章来源",
                                            "description": "文章来源"
                                        },
                                        "description": {
                                            "type": "string",
                                            "example": "文章的描述",
                                            "description": "文章描述"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "newslist": [
                                            {
                                                "id": "449ea6c705650ed08c7017de8265770c",
                                                "url": "http:\/\/www.lingyi.org\/show\/282003.html",
                                                "ctime": "2021-02-01 10:00",
                                                "title": "灵异事件；古曼童养小鬼",
                                                "picUrl": "http:\/\/www.lingyi.org\/wp-content\/uploads\/2020\/10\/9.jpg",
                                                "source": "奇闻异事",
                                                "description": "我有个表哥，姓周。亲表哥，是我母亲的大姐的儿子，比我年长十来岁。表哥小时候学习成绩很好，那个时候的农村都是木板..."
                                            },
                                            {
                                                "id": "b76fa390a4c960719edd8c84da63149d",
                                                "url": "http:\/\/www.lingyi.org\/show\/281601.html",
                                                "ctime": "2021-01-28 14:00",
                                                "title": "无缘无故的打枪",
                                                "picUrl": "http:\/\/www.lingyi.org\/wp-content\/uploads\/2020\/10\/1-1.jpg",
                                                "source": "奇闻异事",
                                                "description": "只不过后来听说一共进去了十来个人，有一大半的人并没有找到。..."
                                            },
                                            {
                                                "id": "753e84e9780c21a4ece36f4bea2e1621",
                                                "url": "http:\/\/www.lingyi.org\/show\/281600.html",
                                                "ctime": "2021-01-28 13:00",
                                                "title": "丢东西之后找不到小偷",
                                                "picUrl": "http:\/\/www.lingyi.org\/wp-content\/uploads\/2020\/10\/6.jpg",
                                                "source": "奇闻异事",
                                                "description": "说个新鲜点的吧，最近我们一直在小区卡点值岗。..."
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}