{
    "openapi": "3.0.0",
    "info": {
        "title": "IT资讯 - API文档",
        "version": "1.0.0",
        "description": "IT行业新闻、舆论、热点、行业动态新闻资讯等。新闻类接口功能扩展，混合全频道数据使用<a href=\"\/apiview\/87\" target=\"_blank\">综合新闻<\/a>接口、按频道分类输出使用<a href=\"\/apiview\/51\" target=\"_blank\">分类新闻<\/a>接口。本接口仅限用于内部数据分析和机器学习，不得用于终端展示。（MCP 服务由 分类新闻 接口统一提供）"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/it\/index": {
            "get": {
                "summary": "查询新闻列表",
                "tags": [
                    "IT资讯"
                ],
                "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": "24323559651ba23ccf74285b0108bba4",
                                                "url": "https:\/\/tech.163.com\/21\/0204\/19\/G21042QO00097U7T.html",
                                                "ctime": "2021-02-04 19:09",
                                                "title": "中芯国际：2020年第四季度净利润为12.52亿元",
                                                "picUrl": "http:\/\/cms-bucket.ws.126.net\/2021\/0204\/babaaf08p00qo04em00bsc0009c0070c.png?imageView&thumbnail=200y140",
                                                "source": "网易IT",
                                                "description": "财联社2月4日讯，中芯国际披露2020年度第四季度业绩快报，公司净利润为12.52亿元，同比增长93.5%。2020年第四季度公司营业收入66.71亿元，同比增长10.3%。公司表示，2020年受益于消费电子、信息通讯等行业需求强劲，芯片用...[阅读更多]"
                                            },
                                            {
                                                "id": "f3f8fae4d1cc5543eca02dcdbd75a4b5",
                                                "url": "https:\/\/tech.163.com\/21\/0204\/19\/G210SCD200097U7T.html",
                                                "ctime": "2021-02-04 19:23",
                                                "title": "蔚来汽车将斥资55亿人民币收购蔚来中国3.305%的",
                                                "picUrl": "http:\/\/cms-bucket.ws.126.net\/2021\/0204\/2d94720fp00qo04y8002yc0009c0070c.png?imageView&thumbnail=200y140",
                                                "source": "网易IT",
                                                "description": "财联社2月4日讯，蔚来汽车（NIO）将斥资55亿人民币收购蔚来中国3.305%的股权。相关阅读：来源：每日经济新闻蔚来合肥再合作欲打造世界级智能电动汽车产业集群每经记者李星每经编辑孙磊2月4日午间，合肥市政府与蔚来汽车签订深化合作协议...[阅读更多]"
                                            },
                                            {
                                                "id": "442cf0bc01f1813db5dfbb65708d4377",
                                                "url": "https:\/\/tech.163.com\/21\/0204\/17\/G20P6GFF00097U7T.html",
                                                "ctime": "2021-02-04 17:08",
                                                "title": "特斯拉上海超级充电桩投产开放标准尚需安全性",
                                                "picUrl": "http:\/\/cms-bucket.ws.126.net\/2021\/0204\/0fea1a8ep00qnzyqg0053c0009c0070c.png?imageView&thumbnail=200y140",
                                                "source": "网易IT",
                                                "description": "在占领了中国电动车市场份额之后，特斯拉又向充电桩基础设施的建设发起总攻。充电设施是促进电动车普及的重要环节。2月3日特斯拉宣布上海超级充电桩工厂建成投产，第三代超级充电桩（V3）正式下线。自2020年8月正式立项到正式投产，特斯拉充电桩项目...[阅读更多]"
                                            }
                                        ],
                                        "allnum": 500,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "查询新闻列表",
                "tags": [
                    "IT资讯"
                ],
                "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": "24323559651ba23ccf74285b0108bba4",
                                                "url": "https:\/\/tech.163.com\/21\/0204\/19\/G21042QO00097U7T.html",
                                                "ctime": "2021-02-04 19:09",
                                                "title": "中芯国际：2020年第四季度净利润为12.52亿元",
                                                "picUrl": "http:\/\/cms-bucket.ws.126.net\/2021\/0204\/babaaf08p00qo04em00bsc0009c0070c.png?imageView&thumbnail=200y140",
                                                "source": "网易IT",
                                                "description": "财联社2月4日讯，中芯国际披露2020年度第四季度业绩快报，公司净利润为12.52亿元，同比增长93.5%。2020年第四季度公司营业收入66.71亿元，同比增长10.3%。公司表示，2020年受益于消费电子、信息通讯等行业需求强劲，芯片用...[阅读更多]"
                                            },
                                            {
                                                "id": "f3f8fae4d1cc5543eca02dcdbd75a4b5",
                                                "url": "https:\/\/tech.163.com\/21\/0204\/19\/G210SCD200097U7T.html",
                                                "ctime": "2021-02-04 19:23",
                                                "title": "蔚来汽车将斥资55亿人民币收购蔚来中国3.305%的",
                                                "picUrl": "http:\/\/cms-bucket.ws.126.net\/2021\/0204\/2d94720fp00qo04y8002yc0009c0070c.png?imageView&thumbnail=200y140",
                                                "source": "网易IT",
                                                "description": "财联社2月4日讯，蔚来汽车（NIO）将斥资55亿人民币收购蔚来中国3.305%的股权。相关阅读：来源：每日经济新闻蔚来合肥再合作欲打造世界级智能电动汽车产业集群每经记者李星每经编辑孙磊2月4日午间，合肥市政府与蔚来汽车签订深化合作协议...[阅读更多]"
                                            },
                                            {
                                                "id": "442cf0bc01f1813db5dfbb65708d4377",
                                                "url": "https:\/\/tech.163.com\/21\/0204\/17\/G20P6GFF00097U7T.html",
                                                "ctime": "2021-02-04 17:08",
                                                "title": "特斯拉上海超级充电桩投产开放标准尚需安全性",
                                                "picUrl": "http:\/\/cms-bucket.ws.126.net\/2021\/0204\/0fea1a8ep00qnzyqg0053c0009c0070c.png?imageView&thumbnail=200y140",
                                                "source": "网易IT",
                                                "description": "在占领了中国电动车市场份额之后，特斯拉又向充电桩基础设施的建设发起总攻。充电设施是促进电动车普及的重要环节。2月3日特斯拉宣布上海超级充电桩工厂建成投产，第三代超级充电桩（V3）正式下线。自2020年8月正式立项到正式投产，特斯拉充电桩项目...[阅读更多]"
                                            }
                                        ],
                                        "allnum": 500,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}