{
    "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": {
        "\/dongman\/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": "4e36c0fa52e9a105bed13e735348a5c3",
                                                "url": "https:\/\/acg.gamersky.com\/news\/202102\/1360719.shtml",
                                                "ctime": "2021-02-04 15:10",
                                                "title": "《工作细胞》央视中配版新片段杉木花粉引发大灾难",
                                                "picUrl": "https:\/\/imgs.gamersky.com\/upimg\/new_preview\/2021\/02\/04\/origin_b_202102041510026772.jpg",
                                                "source": "动漫星空",
                                                "description": "《工作细胞》第一季动画将于2月13日在CCTV6播出，今天（2月4日）官方公开了央视中文配音版的新片段，“杉木花粉过敏”预告。"
                                            },
                                            {
                                                "id": "77d9a7959250a115d31a7dbda1aa2483",
                                                "url": "https:\/\/acg.gamersky.com\/otaku\/zb\/202102\/1360576.shtml",
                                                "ctime": "2021-02-04 15:27",
                                                "title": "《EVA新剧场版》绫波丽手办挥舞镰刀悦动感十足",
                                                "picUrl": "https:\/\/imgs.gamersky.com\/upimg\/new_preview\/2021\/02\/04\/origin_b_202102041431132915.jpg",
                                                "source": "动漫星空",
                                                "description": "《EVA新剧场版》绫波丽手办公开详情，手办采用了绫波丽挥舞巨大镰刀向前奔跑的的造型，悦动感十足。绫波丽身穿黑色的紧身战斗服，优美的身体线条展露无遗。"
                                            },
                                            {
                                                "id": "a48b985e6c49178967d0b942f2f86c30",
                                                "url": "https:\/\/acg.gamersky.com\/news\/202102\/1360750.shtml",
                                                "ctime": "2021-02-04 15:41",
                                                "title": "《海贼王》1003话情报：凯多解锁新形态超巨大",
                                                "picUrl": "https:\/\/imgs.gamersky.com\/upimg\/new_preview\/2021\/02\/04\/origin_b_202102041539009212.jpg",
                                                "source": "动漫星空",
                                                "description": "《海贼王》漫画1003话情报公开，路飞开四挡狂揍凯多，索隆等人也分别展开攻击。面对这些强势的新世代，凯多变身成人兽形态，非常巨大。"
                                            }
                                        ],
                                        "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": "4e36c0fa52e9a105bed13e735348a5c3",
                                                "url": "https:\/\/acg.gamersky.com\/news\/202102\/1360719.shtml",
                                                "ctime": "2021-02-04 15:10",
                                                "title": "《工作细胞》央视中配版新片段杉木花粉引发大灾难",
                                                "picUrl": "https:\/\/imgs.gamersky.com\/upimg\/new_preview\/2021\/02\/04\/origin_b_202102041510026772.jpg",
                                                "source": "动漫星空",
                                                "description": "《工作细胞》第一季动画将于2月13日在CCTV6播出，今天（2月4日）官方公开了央视中文配音版的新片段，“杉木花粉过敏”预告。"
                                            },
                                            {
                                                "id": "77d9a7959250a115d31a7dbda1aa2483",
                                                "url": "https:\/\/acg.gamersky.com\/otaku\/zb\/202102\/1360576.shtml",
                                                "ctime": "2021-02-04 15:27",
                                                "title": "《EVA新剧场版》绫波丽手办挥舞镰刀悦动感十足",
                                                "picUrl": "https:\/\/imgs.gamersky.com\/upimg\/new_preview\/2021\/02\/04\/origin_b_202102041431132915.jpg",
                                                "source": "动漫星空",
                                                "description": "《EVA新剧场版》绫波丽手办公开详情，手办采用了绫波丽挥舞巨大镰刀向前奔跑的的造型，悦动感十足。绫波丽身穿黑色的紧身战斗服，优美的身体线条展露无遗。"
                                            },
                                            {
                                                "id": "a48b985e6c49178967d0b942f2f86c30",
                                                "url": "https:\/\/acg.gamersky.com\/news\/202102\/1360750.shtml",
                                                "ctime": "2021-02-04 15:41",
                                                "title": "《海贼王》1003话情报：凯多解锁新形态超巨大",
                                                "picUrl": "https:\/\/imgs.gamersky.com\/upimg\/new_preview\/2021\/02\/04\/origin_b_202102041539009212.jpg",
                                                "source": "动漫星空",
                                                "description": "《海贼王》漫画1003话情报公开，路飞开四挡狂揍凯多，索隆等人也分别展开攻击。面对这些强势的新世代，凯多变身成人兽形态，非常巨大。"
                                            }
                                        ],
                                        "allnum": 500,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}