{
    "openapi": "3.0.0",
    "info": {
        "title": "NBA新闻 - API文档",
        "version": "1.0.0",
        "description": "美国职业篮篮球赛新闻资讯，NBA明星动态等。新闻类接口功能扩展，混合全频道数据使用<a href=\"\/apiview\/87\" target=\"_blank\">综合新闻<\/a>接口、按频道分类输出使用<a href=\"\/apiview\/51\" target=\"_blank\">分类新闻<\/a>接口。本接口仅限用于内部数据分析和机器学习，不得用于终端展示。（MCP 服务由 分类新闻 接口统一提供）"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/nba\/index": {
            "get": {
                "summary": "查询新闻列表",
                "tags": [
                    "NBA新闻"
                ],
                "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": "4cb9646a7510a95a0bf3c279f67e8c77",
                                                "url": "https:\/\/www.baizhan.net\/tiyu\/lanqiu\/20210202\/60852.html",
                                                "ctime": "2021-02-02 00:00",
                                                "title": "戈登左脚严重扭伤，魔术多名核心球员遭遇伤病",
                                                "picUrl": "https:\/\/img.baizhan.net\/d\/file\/20210202\/98ae2eba0af4a9edc7bf0a535f3a1b79.png",
                                                "source": "百战NBA",
                                                "description": "在昨天结束的猛龙对阵魔术的比赛中，戈登后场运球到中场时不慎受伤。根据核磁共振检查的结果，他的左脚踝严重扭伤，所幸无骨折以及断裂伤势，预计因..."
                                            },
                                            {
                                                "id": "5b81806a26d006bf6adcb586429db871",
                                                "url": "https:\/\/www.baizhan.net\/tiyu\/lanqiu\/20210201\/60822.html",
                                                "ctime": "2021-02-01 00:00",
                                                "title": "威少绝杀篮网，奇才最后12秒完成惊天逆转",
                                                "picUrl": "https:\/\/img.baizhan.net\/d\/file\/20210201\/5f4a4c1248142499602515ba14195ba2.png",
                                                "source": "百战NBA",
                                                "description": "北京时间2月1日，NBA常规赛篮网迎战目前倒数第一的奇才。原本不被看好的奇才在本场比赛爆冷，在最后的12秒时间内完成了惊天的逆转，威少最后的一..."
                                            },
                                            {
                                                "id": "a4346beefc42af8b28b89f63aceb32f2",
                                                "url": "https:\/\/www.baizhan.net\/tiyu\/lanqiu\/20210128\/60678.html",
                                                "ctime": "2021-01-28 00:00",
                                                "title": "詹姆斯恶意犯规致恩比德重摔在地，湖人10连胜被76人终结",
                                                "picUrl": "https:\/\/img.baizhan.net\/d\/file\/20210128\/0cd563832a11a8c8ae4a4ecda71a8b32.png",
                                                "source": "百战NBA",
                                                "description": "北京时间1月28日，NBA常规赛继续进行，东西部两支最强的球队湖人与费城76人展开交锋。詹姆斯在本次比赛中的表现依旧出色，不过在第三节时他被吹一..."
                                            }
                                        ],
                                        "allnum": 500,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "查询新闻列表",
                "tags": [
                    "NBA新闻"
                ],
                "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": "4cb9646a7510a95a0bf3c279f67e8c77",
                                                "url": "https:\/\/www.baizhan.net\/tiyu\/lanqiu\/20210202\/60852.html",
                                                "ctime": "2021-02-02 00:00",
                                                "title": "戈登左脚严重扭伤，魔术多名核心球员遭遇伤病",
                                                "picUrl": "https:\/\/img.baizhan.net\/d\/file\/20210202\/98ae2eba0af4a9edc7bf0a535f3a1b79.png",
                                                "source": "百战NBA",
                                                "description": "在昨天结束的猛龙对阵魔术的比赛中，戈登后场运球到中场时不慎受伤。根据核磁共振检查的结果，他的左脚踝严重扭伤，所幸无骨折以及断裂伤势，预计因..."
                                            },
                                            {
                                                "id": "5b81806a26d006bf6adcb586429db871",
                                                "url": "https:\/\/www.baizhan.net\/tiyu\/lanqiu\/20210201\/60822.html",
                                                "ctime": "2021-02-01 00:00",
                                                "title": "威少绝杀篮网，奇才最后12秒完成惊天逆转",
                                                "picUrl": "https:\/\/img.baizhan.net\/d\/file\/20210201\/5f4a4c1248142499602515ba14195ba2.png",
                                                "source": "百战NBA",
                                                "description": "北京时间2月1日，NBA常规赛篮网迎战目前倒数第一的奇才。原本不被看好的奇才在本场比赛爆冷，在最后的12秒时间内完成了惊天的逆转，威少最后的一..."
                                            },
                                            {
                                                "id": "a4346beefc42af8b28b89f63aceb32f2",
                                                "url": "https:\/\/www.baizhan.net\/tiyu\/lanqiu\/20210128\/60678.html",
                                                "ctime": "2021-01-28 00:00",
                                                "title": "詹姆斯恶意犯规致恩比德重摔在地，湖人10连胜被76人终结",
                                                "picUrl": "https:\/\/img.baizhan.net\/d\/file\/20210128\/0cd563832a11a8c8ae4a4ecda71a8b32.png",
                                                "source": "百战NBA",
                                                "description": "北京时间1月28日，NBA常规赛继续进行，东西部两支最强的球队湖人与费城76人展开交锋。詹姆斯在本次比赛中的表现依旧出色，不过在第三节时他被吹一..."
                                            }
                                        ],
                                        "allnum": 500,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}