{
    "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": {
        "\/keji\/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": "98e542967f52c69c940b4339f5b36af6",
                                                "url": "http:\/\/www.xinhuanet.com\/tech\/2020-12\/18\/c_1126875609.htm",
                                                "ctime": "2020-12-18 00:00",
                                                "title": "深圳：2025年5G宏基站站址将达3万余座",
                                                "picUrl": "http:\/\/www.xinhuanet.com\/tech\/titlepic\/112687\/1126875609_1608252073487_title0h.jpg",
                                                "source": "新华科技",
                                                "description": "深圳正发力新基建，超前规划、统筹布局以5G基站、数据中心为核心的信息通信基础设施建设，让城市运转更聪明、更智慧。该规划提出，到2025年，深圳5G宏基站站址达3万余座；到2035年，新增政务数据中心20座；未来全市新建、改扩建道路统一配建多功能智能杆。"
                                            },
                                            {
                                                "id": "7ee216bcce7935e4e2f69fddb07e4b29",
                                                "url": "http:\/\/www.xinhuanet.com\/tech\/2020-12\/18\/c_1126875687.htm",
                                                "ctime": "2020-12-18 00:00",
                                                "title": "深圳家电产品国际国内持续热销",
                                                "picUrl": "http:\/\/www.xinhuanet.com\/tech\/titlepic\/112687\/1126875687_1608252309701_title0h.JPG",
                                                "source": "新华科技",
                                                "description": "记者采访了解到，海外疫情反复，“宅经济”市场需求旺盛，居家防疫、远程办公等刺激家电需求旺盛，推动制造企业订单增加，促进小家电出口增长。深圳海关统计分析处有关负责人表示，自今年4月份起，深圳家电单月出口同比持续增长，6月份起一直保持两位数增长态势。"
                                            },
                                            {
                                                "id": "cf174f27ff5f3cc09fb1fb5e25136c8e",
                                                "url": "http:\/\/www.xinhuanet.com\/tech\/2020-12\/18\/c_1126875783.htm",
                                                "ctime": "2020-12-18 00:00",
                                                "title": "“嫦五”回家续写月宫新传奇",
                                                "picUrl": "http:\/\/www.xinhuanet.com\/tech\/titlepic\/112687\/1126875783_1608252840472_title0h.jpg",
                                                "source": "新华科技",
                                                "description": "12月17日凌晨，嫦娥五号返回器携带月球样品，采用半弹道跳跃方式再入返回，在内蒙古四子王旗预定区域安全着陆。高速进入大气层时，嫦娥五号返回器被大气层摩擦产生剧烈高温、热量急剧提升，同样是回家路上的一大挑战。"
                                            }
                                        ],
                                        "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": "98e542967f52c69c940b4339f5b36af6",
                                                "url": "http:\/\/www.xinhuanet.com\/tech\/2020-12\/18\/c_1126875609.htm",
                                                "ctime": "2020-12-18 00:00",
                                                "title": "深圳：2025年5G宏基站站址将达3万余座",
                                                "picUrl": "http:\/\/www.xinhuanet.com\/tech\/titlepic\/112687\/1126875609_1608252073487_title0h.jpg",
                                                "source": "新华科技",
                                                "description": "深圳正发力新基建，超前规划、统筹布局以5G基站、数据中心为核心的信息通信基础设施建设，让城市运转更聪明、更智慧。该规划提出，到2025年，深圳5G宏基站站址达3万余座；到2035年，新增政务数据中心20座；未来全市新建、改扩建道路统一配建多功能智能杆。"
                                            },
                                            {
                                                "id": "7ee216bcce7935e4e2f69fddb07e4b29",
                                                "url": "http:\/\/www.xinhuanet.com\/tech\/2020-12\/18\/c_1126875687.htm",
                                                "ctime": "2020-12-18 00:00",
                                                "title": "深圳家电产品国际国内持续热销",
                                                "picUrl": "http:\/\/www.xinhuanet.com\/tech\/titlepic\/112687\/1126875687_1608252309701_title0h.JPG",
                                                "source": "新华科技",
                                                "description": "记者采访了解到，海外疫情反复，“宅经济”市场需求旺盛，居家防疫、远程办公等刺激家电需求旺盛，推动制造企业订单增加，促进小家电出口增长。深圳海关统计分析处有关负责人表示，自今年4月份起，深圳家电单月出口同比持续增长，6月份起一直保持两位数增长态势。"
                                            },
                                            {
                                                "id": "cf174f27ff5f3cc09fb1fb5e25136c8e",
                                                "url": "http:\/\/www.xinhuanet.com\/tech\/2020-12\/18\/c_1126875783.htm",
                                                "ctime": "2020-12-18 00:00",
                                                "title": "“嫦五”回家续写月宫新传奇",
                                                "picUrl": "http:\/\/www.xinhuanet.com\/tech\/titlepic\/112687\/1126875783_1608252840472_title0h.jpg",
                                                "source": "新华科技",
                                                "description": "12月17日凌晨，嫦娥五号返回器携带月球样品，采用半弹道跳跃方式再入返回，在内蒙古四子王旗预定区域安全着陆。高速进入大气层时，嫦娥五号返回器被大气层摩擦产生剧烈高温、热量急剧提升，同样是回家路上的一大挑战。"
                                            }
                                        ],
                                        "allnum": 500,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}