{
    "openapi": "3.0.0",
    "info": {
        "title": "电竞资讯 - API文档",
        "version": "1.0.0",
        "description": "电子竞技新闻资讯接口新闻类接口功能扩展，混合全频道数据使用<a href=\"\/apiview\/87\" target=\"_blank\">综合新闻<\/a>接口、按频道分类输出使用<a href=\"\/apiview\/51\" target=\"_blank\">分类新闻<\/a>接口。本接口仅限用于内部数据分析和机器学习，不得用于终端展示。（MCP 服务由 分类新闻 接口统一提供）"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/esports\/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": "返回数量1-50，默认10",
                        "required": true,
                        "schema": {
                            "type": "int",
                            "example": 10,
                            "description": "返回数量1-50，默认10"
                        }
                    },
                    {
                        "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": "文章标题"
                                        },
                                        "allnum": {
                                            "type": "int",
                                            "example": 625,
                                            "description": "结果数"
                                        },
                                        "picUrl": {
                                            "type": "string",
                                            "example": "https:\/\/www.tianapi.com\/static\/img\/logo.png",
                                            "description": "封面图片"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "文章来源",
                                            "description": "文章来源"
                                        },
                                        "curpage": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "当前页"
                                        },
                                        "description": {
                                            "type": "string",
                                            "example": "文章的描述",
                                            "description": "文章描述"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "id": "e0b9638ae82dae48ef286d14dfb6c4d7",
                                                "url": "\/\/dj.sina.com.cn\/article\/kknscsi7936390.shtml",
                                                "ctime": "2021-03-18 16:35",
                                                "title": "《Apex英雄》封禁700多个高段位开挂者隔热板Bug目前正在修复",
                                                "picUrl": "\/\/n.sinaimg.cn\/games\/639\/w400h239\/20210318\/c25b-kmkptxe6554750.jpg",
                                                "source": "新浪电竞",
                                                "description": "在对抗作弊和开挂的永无止境的战争中，重生娱乐采取了又一轮措施，其最新一轮封禁已经奏效。继去年11月419名顶级分段的《Apex英雄》玩..."
                                            },
                                            {
                                                "id": "a8aa36675df83fee7b43c4730515754d",
                                                "url": "\/\/dj.sina.com.cn\/article\/kknscsi7939778.shtml",
                                                "ctime": "2021-03-18 16:35",
                                                "title": "2021LCK春季赛季后赛晋级形势：T1惊险晋级",
                                                "picUrl": "\/\/n.sinaimg.cn\/games\/639\/w400h239\/20210318\/65f4-kmkptxe6613024.jpg",
                                                "source": "新浪电竞",
                                                "description": "2021年LCK春季常规赛的赛程已经进入尾声，对于正在冲击季后赛的队伍来说只剩最后两周的时间。今年LCK赛区完成了联盟化改革，首次将季..."
                                            },
                                            {
                                                "id": "49714f4a573af0de61b94923f29c5302",
                                                "url": "\/\/dj.sina.com.cn\/article\/kknscsi7942016.shtml",
                                                "ctime": "2021-03-18 16:35",
                                                "title": "ENCE、G2锁定出线Vitality需险中求生",
                                                "picUrl": "\/\/n.sinaimg.cn\/games\/639\/w400h239\/20210312\/0d54-kmeeiut0904585.jpg",
                                                "source": "新浪电竞",
                                                "description": "ESLProLeagueS13的小组赛正在如火如荼的进行，目前B组还有最后一轮比赛，比赛将于3月19日的凌晨2点钟开赛三场同开。"
                                            }
                                        ],
                                        "allnum": 500,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "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": "返回数量1-50，默认10"
                                    },
                                    "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": "文章标题"
                                        },
                                        "allnum": {
                                            "type": "int",
                                            "example": 625,
                                            "description": "结果数"
                                        },
                                        "picUrl": {
                                            "type": "string",
                                            "example": "https:\/\/www.tianapi.com\/static\/img\/logo.png",
                                            "description": "封面图片"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "文章来源",
                                            "description": "文章来源"
                                        },
                                        "curpage": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "当前页"
                                        },
                                        "description": {
                                            "type": "string",
                                            "example": "文章的描述",
                                            "description": "文章描述"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "id": "e0b9638ae82dae48ef286d14dfb6c4d7",
                                                "url": "\/\/dj.sina.com.cn\/article\/kknscsi7936390.shtml",
                                                "ctime": "2021-03-18 16:35",
                                                "title": "《Apex英雄》封禁700多个高段位开挂者隔热板Bug目前正在修复",
                                                "picUrl": "\/\/n.sinaimg.cn\/games\/639\/w400h239\/20210318\/c25b-kmkptxe6554750.jpg",
                                                "source": "新浪电竞",
                                                "description": "在对抗作弊和开挂的永无止境的战争中，重生娱乐采取了又一轮措施，其最新一轮封禁已经奏效。继去年11月419名顶级分段的《Apex英雄》玩..."
                                            },
                                            {
                                                "id": "a8aa36675df83fee7b43c4730515754d",
                                                "url": "\/\/dj.sina.com.cn\/article\/kknscsi7939778.shtml",
                                                "ctime": "2021-03-18 16:35",
                                                "title": "2021LCK春季赛季后赛晋级形势：T1惊险晋级",
                                                "picUrl": "\/\/n.sinaimg.cn\/games\/639\/w400h239\/20210318\/65f4-kmkptxe6613024.jpg",
                                                "source": "新浪电竞",
                                                "description": "2021年LCK春季常规赛的赛程已经进入尾声，对于正在冲击季后赛的队伍来说只剩最后两周的时间。今年LCK赛区完成了联盟化改革，首次将季..."
                                            },
                                            {
                                                "id": "49714f4a573af0de61b94923f29c5302",
                                                "url": "\/\/dj.sina.com.cn\/article\/kknscsi7942016.shtml",
                                                "ctime": "2021-03-18 16:35",
                                                "title": "ENCE、G2锁定出线Vitality需险中求生",
                                                "picUrl": "\/\/n.sinaimg.cn\/games\/639\/w400h239\/20210312\/0d54-kmeeiut0904585.jpg",
                                                "source": "新浪电竞",
                                                "description": "ESLProLeagueS13的小组赛正在如火如荼的进行，目前B组还有最后一轮比赛，比赛将于3月19日的凌晨2点钟开赛三场同开。"
                                            }
                                        ],
                                        "allnum": 500,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}