{
    "openapi": "3.0.0",
    "info": {
        "title": "网页转API - API文档",
        "version": "1.0.0",
        "description": "本接口用于使用网页转API功能后，获取采集到的数据。urlid为必填参数，参数值为你在转换列表中对应的ID。如需获得全文内容，请使用<a href=\"\/apiview\/66\" target=\"_blank\">获取网页全文<\/a>接口。可参考使用的urlid数据，外汇新闻=133、原油资讯=134、股指资讯=135、期货新闻=136、黄金资讯=137。如公开使用数据，请与发布方联系获取授权。（本功能已下线）（MCP 服务由 分类新闻 接口统一提供）"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/usermake\/index": {
            "get": {
                "summary": "查询数据列表",
                "tags": [
                    "网页转API"
                ],
                "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": "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": "检索关键词"
                        }
                    },
                    {
                        "name": "urlid",
                        "in": "query",
                        "description": "网页转API对应的ID",
                        "required": true,
                        "schema": {
                            "type": "int",
                            "example": 133,
                            "description": "网页转API对应的ID"
                        }
                    },
                    {
                        "name": "linkid",
                        "in": "query",
                        "description": "文章ID",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 3207,
                            "description": "文章ID"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "example": "6010bdf651a5a4ae04511014f2c4bcd6",
                                            "description": "新闻唯一ID"
                                        },
                                        "url": {
                                            "type": "string",
                                            "example": "http:\/\/news.ifeng.com\/a\/20181230\/60218807_0.shtml",
                                            "description": "文章地址"
                                        },
                                        "ctime": {
                                            "type": "string",
                                            "example": "2018-12-30 00:00",
                                            "description": "发布时间"
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "外交部发言人陆慷就中美建交40周年发表谈话",
                                            "description": "标题"
                                        },
                                        "allnum": {
                                            "type": "int",
                                            "example": 625,
                                            "description": "结果数"
                                        },
                                        "picUrl": {
                                            "type": "string",
                                            "example": "http:\/\/d.ifengimg.com\/e0.ifengimg.com\/h430.png",
                                            "description": "封面图片"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "凤凰新闻",
                                            "description": "新闻来源"
                                        },
                                        "curpage": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "当前页"
                                        },
                                        "description": {
                                            "type": "string",
                                            "example": "2019年，中美将迎来建交40周年...",
                                            "description": "新闻描述"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "id": "cd12cc0e49660b5859fb1384cfe73de2",
                                                "url": "http:\/\/news.ifeng.com\/a\/20181230\/60218807_0.shtml",
                                                "ctime": "2018-12-30 00:00",
                                                "title": "外交部发言人陆慷就中美建交40周年发表谈话",
                                                "picUrl": "http:\/\/d.ifengimg.com\/e0.ifengimg.com\/h430.png",
                                                "source": "凤凰新闻",
                                                "description": "2019年，中美将迎来建交40周年。40年来，中美关系历经风雨，砥砺前行。中美交流与合作取得了历史性的发展。40年前，中美人员往来每年仅几千人次，2017年双方人员往来已超过530万人次。"
                                            },
                                            {
                                                "id": "768103e955cd03c1b3ce8f69e8ce042c",
                                                "url": "http:\/\/news.ifeng.com\/a\/20181230\/60218912_0.shtml",
                                                "ctime": "2018-12-30 00:00",
                                                "title": "农业农村部：明年全国粮食产量要稳定在1.2万亿斤以上",
                                                "picUrl": "http:\/\/d.ifengimg.com\/e0.ifengimg.com\/h450.png",
                                                "source": "凤凰新闻",
                                                "description": "中央农办主任、农业农村部部长韩长赋30日提出，2019年全国粮食播种面积要稳定在16.5亿亩、粮食产量要稳定在1.2万亿斤以上。"
                                            },
                                            {
                                                "id": "768103e955cd03c1b3ce8f69e8ce042c",
                                                "url": "http:\/\/news.ifeng.com\/a\/20181230\/60219149_0.shtml",
                                                "ctime": "2018-12-30 00:00",
                                                "title": "各地各部门保障元旦小长假出行畅通",
                                                "picUrl": "http:\/\/d.ifengimg.com\/e0.ifengimg.com\/h460.png",
                                                "source": "凤凰新闻",
                                                "description": "新华社北京12月30日电（记者齐中熙）30日进入元旦小长假，各地各部门保障元旦小长假出行畅通。"
                                            }
                                        ],
                                        "allnum": 3860,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "查询数据列表",
                "tags": [
                    "网页转API"
                ],
                "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"
                                    },
                                    "page": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "翻页"
                                    },
                                    "rand": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "随机获取"
                                    },
                                    "word": {
                                        "type": "string",
                                        "example": "天行数据",
                                        "description": "检索关键词"
                                    },
                                    "urlid": {
                                        "type": "int",
                                        "example": 133,
                                        "description": "网页转API对应的ID"
                                    },
                                    "linkid": {
                                        "type": "int",
                                        "example": 3207,
                                        "description": "文章ID"
                                    }
                                },
                                "required": [
                                    "key",
                                    "num",
                                    "urlid"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "example": "6010bdf651a5a4ae04511014f2c4bcd6",
                                            "description": "新闻唯一ID"
                                        },
                                        "url": {
                                            "type": "string",
                                            "example": "http:\/\/news.ifeng.com\/a\/20181230\/60218807_0.shtml",
                                            "description": "文章地址"
                                        },
                                        "ctime": {
                                            "type": "string",
                                            "example": "2018-12-30 00:00",
                                            "description": "发布时间"
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "外交部发言人陆慷就中美建交40周年发表谈话",
                                            "description": "标题"
                                        },
                                        "allnum": {
                                            "type": "int",
                                            "example": 625,
                                            "description": "结果数"
                                        },
                                        "picUrl": {
                                            "type": "string",
                                            "example": "http:\/\/d.ifengimg.com\/e0.ifengimg.com\/h430.png",
                                            "description": "封面图片"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "凤凰新闻",
                                            "description": "新闻来源"
                                        },
                                        "curpage": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "当前页"
                                        },
                                        "description": {
                                            "type": "string",
                                            "example": "2019年，中美将迎来建交40周年...",
                                            "description": "新闻描述"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "id": "cd12cc0e49660b5859fb1384cfe73de2",
                                                "url": "http:\/\/news.ifeng.com\/a\/20181230\/60218807_0.shtml",
                                                "ctime": "2018-12-30 00:00",
                                                "title": "外交部发言人陆慷就中美建交40周年发表谈话",
                                                "picUrl": "http:\/\/d.ifengimg.com\/e0.ifengimg.com\/h430.png",
                                                "source": "凤凰新闻",
                                                "description": "2019年，中美将迎来建交40周年。40年来，中美关系历经风雨，砥砺前行。中美交流与合作取得了历史性的发展。40年前，中美人员往来每年仅几千人次，2017年双方人员往来已超过530万人次。"
                                            },
                                            {
                                                "id": "768103e955cd03c1b3ce8f69e8ce042c",
                                                "url": "http:\/\/news.ifeng.com\/a\/20181230\/60218912_0.shtml",
                                                "ctime": "2018-12-30 00:00",
                                                "title": "农业农村部：明年全国粮食产量要稳定在1.2万亿斤以上",
                                                "picUrl": "http:\/\/d.ifengimg.com\/e0.ifengimg.com\/h450.png",
                                                "source": "凤凰新闻",
                                                "description": "中央农办主任、农业农村部部长韩长赋30日提出，2019年全国粮食播种面积要稳定在16.5亿亩、粮食产量要稳定在1.2万亿斤以上。"
                                            },
                                            {
                                                "id": "768103e955cd03c1b3ce8f69e8ce042c",
                                                "url": "http:\/\/news.ifeng.com\/a\/20181230\/60219149_0.shtml",
                                                "ctime": "2018-12-30 00:00",
                                                "title": "各地各部门保障元旦小长假出行畅通",
                                                "picUrl": "http:\/\/d.ifengimg.com\/e0.ifengimg.com\/h460.png",
                                                "source": "凤凰新闻",
                                                "description": "新华社北京12月30日电（记者齐中熙）30日进入元旦小长假，各地各部门保障元旦小长假出行畅通。"
                                            }
                                        ],
                                        "allnum": 3860,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}