{
    "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": {
        "\/game\/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": "文章标题"
                                        },
                                        "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": "8284aa61399392f2f8668e71279c9da9",
                                                "url": "http:\/\/www.yxdown.com\/news\/202102\/480327.html",
                                                "ctime": "2021-02-04 20:00",
                                                "title": "角川、索尼和CA展开合作加强游戏和动漫业务的发展",
                                                "picUrl": "http:\/\/i-4.yxdown.com\/2021\/2\/4\/b593d407-beac-4e35-bd1c-4425d477dfb0.jpg",
                                                "source": "游戏资讯",
                                                "description": "今天，角川集团发布了2021财年第三季度财报。据财报显示，角川集团已经与CyberAgent和索尼结成资本联盟。据角川集团表示，结成资本联盟后，将共同利用彼此的业务、专业领域等方面的优势..."
                                            },
                                            {
                                                "id": "e35b8e80c867b40dac85c615fe293eef",
                                                "url": "http:\/\/www.yxdown.com\/news\/202102\/480324.html",
                                                "ctime": "2021-02-04 19:00",
                                                "title": "生存冒险《Valheim》2021更新计划Steam特别好评",
                                                "picUrl": "http:\/\/i-4.yxdown.com\/2021\/2\/4\/b1b4b4f4-d95a-4d16-a11f-f26c0f627d0d.png",
                                                "source": "游戏资讯",
                                                "description": "由IronGateAB开发、CoffeeStain发行的维京题材生存冒险游戏《Valheim》于本周在Steam开启抢先体验，截止发稿游戏共收录了1435篇用户评测，其中95%玩家..."
                                            },
                                            {
                                                "id": "ebb653d46ef00e5da1fee9c888e8f641",
                                                "url": "http:\/\/www.yxdown.com\/news\/202102\/480325.html",
                                                "ctime": "2021-02-04 19:00",
                                                "title": "《烟火》X《疑案追声》友情联动开启特别折扣活动",
                                                "picUrl": "http:\/\/i-4.yxdown.com\/2021\/2\/4\/38bb2983-5ace-41b5-8d1c-1ea7374b4afc.png",
                                                "source": "游戏资讯",
                                                "description": "国产悬疑解谜游戏《烟火》正式发售，《疑案追声》宣布开启特别折扣活动，拥有《疑案追声》的玩家，在购买《烟火》时，除了可以享受游戏的首发折扣外，更是可以在2月4日——2月11日期间，获得10..."
                                            }
                                        ],
                                        "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": "返回数量"
                                    },
                                    "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": "8284aa61399392f2f8668e71279c9da9",
                                                "url": "http:\/\/www.yxdown.com\/news\/202102\/480327.html",
                                                "ctime": "2021-02-04 20:00",
                                                "title": "角川、索尼和CA展开合作加强游戏和动漫业务的发展",
                                                "picUrl": "http:\/\/i-4.yxdown.com\/2021\/2\/4\/b593d407-beac-4e35-bd1c-4425d477dfb0.jpg",
                                                "source": "游戏资讯",
                                                "description": "今天，角川集团发布了2021财年第三季度财报。据财报显示，角川集团已经与CyberAgent和索尼结成资本联盟。据角川集团表示，结成资本联盟后，将共同利用彼此的业务、专业领域等方面的优势..."
                                            },
                                            {
                                                "id": "e35b8e80c867b40dac85c615fe293eef",
                                                "url": "http:\/\/www.yxdown.com\/news\/202102\/480324.html",
                                                "ctime": "2021-02-04 19:00",
                                                "title": "生存冒险《Valheim》2021更新计划Steam特别好评",
                                                "picUrl": "http:\/\/i-4.yxdown.com\/2021\/2\/4\/b1b4b4f4-d95a-4d16-a11f-f26c0f627d0d.png",
                                                "source": "游戏资讯",
                                                "description": "由IronGateAB开发、CoffeeStain发行的维京题材生存冒险游戏《Valheim》于本周在Steam开启抢先体验，截止发稿游戏共收录了1435篇用户评测，其中95%玩家..."
                                            },
                                            {
                                                "id": "ebb653d46ef00e5da1fee9c888e8f641",
                                                "url": "http:\/\/www.yxdown.com\/news\/202102\/480325.html",
                                                "ctime": "2021-02-04 19:00",
                                                "title": "《烟火》X《疑案追声》友情联动开启特别折扣活动",
                                                "picUrl": "http:\/\/i-4.yxdown.com\/2021\/2\/4\/38bb2983-5ace-41b5-8d1c-1ea7374b4afc.png",
                                                "source": "游戏资讯",
                                                "description": "国产悬疑解谜游戏《烟火》正式发售，《疑案追声》宣布开启特别折扣活动，拥有《疑案追声》的玩家，在购买《烟火》时，除了可以享受游戏的首发折扣外，更是可以在2月4日——2月11日期间，获得10..."
                                            }
                                        ],
                                        "allnum": 500,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}