{
    "openapi": "3.0.0",
    "info": {
        "title": "CBA新闻 - API文档",
        "version": "1.0.0",
        "description": "中国男子职业篮球赛、CBA明星动态资讯等。此为单一新闻类型新用户推荐使用：混合全频道数据使用<a href=\"\/apiview\/87\" target=\"_blank\">综合新闻<\/a>接口、按频道分类查询可使用<a href=\"\/apiview\/51\" target=\"_blank\">分类新闻<\/a>接口。本接口仅限用于内部数据分析和机器学习，不得用于终端展示。版权问题请联系发布方获取。（MCP 服务由 分类新闻 接口统一提供）"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/cba\/index": {
            "get": {
                "summary": "查询新闻列表",
                "tags": [
                    "CBA新闻"
                ],
                "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": "113be304a713ff9059b527ea699d82cd",
                                                "url": "http:\/\/sports.cri.cn\/20200119\/b48eb0b2-ac63-b279-c8be-70d9c098f3a9.html",
                                                "ctime": "2020-01-19 11:01",
                                                "title": "上海男篮宣布李秋平不再担任球队主帅转任总教练",
                                                "picUrl": "\/\/p2.cri.cn\/M00\/AB\/60\/wKgADF4js92AA0qHAAAAAAAAAAA243.440x308.200x140.jpg",
                                                "source": "中广CBA",
                                                "description": "上海男篮宣布李秋平不再担任一线队主教练，转任俱乐部总教练。"
                                            },
                                            {
                                                "id": "a1fd06e292d7f4e0e59b51413e2f635f",
                                                "url": "http:\/\/sports.cri.cn\/20200117\/bd213447-4566-1261-3f14-863179ff5d9b.html",
                                                "ctime": "2020-01-17 10:01",
                                                "title": "CBA综合消息：巴斯、韦伯斯特完成救赎辽宁广厦各自取胜",
                                                "picUrl": "\/\/p2.cri.cn\/M00\/03\/87\/wKgACl4hCIKAM4eBAAAAAAAAAAA197.306x214.200x140.jpg",
                                                "source": "中广CBA",
                                                "description": "2019-2020赛季中国男子职业篮球联赛(CBA)第28轮16日率先展开五场比赛，“救赎”成为当晚关键词。"
                                            },
                                            {
                                                "id": "62aad98b5c05f284e2bcd486bbe3e94a",
                                                "url": "http:\/\/sports.cri.cn\/20200116\/1ab9d7f4-56a3-9d13-1f59-d30c641ad630.html",
                                                "ctime": "2020-01-16 09:00",
                                                "title": "CBA综合消息：北控险胜深圳北京不敌青岛",
                                                "picUrl": "\/\/p2.cri.cn\/M00\/02\/D2\/wKgACl4ftIGALBq7AAAAAAAAAAA565.306x214.200x140.jpg",
                                                "source": "中广CBA",
                                                "description": "中国男篮职业联赛（CBA）15日进行第27轮的最后两场争夺，北京控股队以102:100险胜深圳新世纪队，北京首钢队则以92:115大比分负于青岛国信双星队。"
                                            }
                                        ],
                                        "allnum": 500,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "查询新闻列表",
                "tags": [
                    "CBA新闻"
                ],
                "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": "113be304a713ff9059b527ea699d82cd",
                                                "url": "http:\/\/sports.cri.cn\/20200119\/b48eb0b2-ac63-b279-c8be-70d9c098f3a9.html",
                                                "ctime": "2020-01-19 11:01",
                                                "title": "上海男篮宣布李秋平不再担任球队主帅转任总教练",
                                                "picUrl": "\/\/p2.cri.cn\/M00\/AB\/60\/wKgADF4js92AA0qHAAAAAAAAAAA243.440x308.200x140.jpg",
                                                "source": "中广CBA",
                                                "description": "上海男篮宣布李秋平不再担任一线队主教练，转任俱乐部总教练。"
                                            },
                                            {
                                                "id": "a1fd06e292d7f4e0e59b51413e2f635f",
                                                "url": "http:\/\/sports.cri.cn\/20200117\/bd213447-4566-1261-3f14-863179ff5d9b.html",
                                                "ctime": "2020-01-17 10:01",
                                                "title": "CBA综合消息：巴斯、韦伯斯特完成救赎辽宁广厦各自取胜",
                                                "picUrl": "\/\/p2.cri.cn\/M00\/03\/87\/wKgACl4hCIKAM4eBAAAAAAAAAAA197.306x214.200x140.jpg",
                                                "source": "中广CBA",
                                                "description": "2019-2020赛季中国男子职业篮球联赛(CBA)第28轮16日率先展开五场比赛，“救赎”成为当晚关键词。"
                                            },
                                            {
                                                "id": "62aad98b5c05f284e2bcd486bbe3e94a",
                                                "url": "http:\/\/sports.cri.cn\/20200116\/1ab9d7f4-56a3-9d13-1f59-d30c641ad630.html",
                                                "ctime": "2020-01-16 09:00",
                                                "title": "CBA综合消息：北控险胜深圳北京不敌青岛",
                                                "picUrl": "\/\/p2.cri.cn\/M00\/02\/D2\/wKgACl4ftIGALBq7AAAAAAAAAAA565.306x214.200x140.jpg",
                                                "source": "中广CBA",
                                                "description": "中国男篮职业联赛（CBA）15日进行第27轮的最后两场争夺，北京控股队以102:100险胜深圳新世纪队，北京首钢队则以92:115大比分负于青岛国信双星队。"
                                            }
                                        ],
                                        "allnum": 500,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}