{
    "openapi": "3.0.0",
    "info": {
        "title": "微信文章精选 - API文档",
        "version": "1.0.0",
        "description": "微信公众号热门精选文章。注意：本接口已停止更新，可查询旧数据用于测试等。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/wxnew\/index": {
            "get": {
                "summary": "查询文章列表",
                "tags": [
                    "微信文章精选"
                ],
                "description": "查询微信精选文章列表，支持关键词搜索",
                "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": "检索关键词"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "example": "62ac899e8fcf654a74479b4239b4651f",
                                            "description": "文章唯一ID"
                                        },
                                        "url": {
                                            "type": "string",
                                            "example": "http:\/\/mp.weixin.qq.com\/s?__biz=MzA3OTg2NjEwNg==",
                                            "description": "文章地址"
                                        },
                                        "type": {
                                            "type": "string",
                                            "example": "学霸族",
                                            "description": "文章分类"
                                        },
                                        "ctime": {
                                            "type": "Date",
                                            "example": "2015-07-17",
                                            "description": "发布时间"
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "那个抱走王明涵的，你上微信吗？看完这个你会心软吗？",
                                            "description": "文章标题"
                                        },
                                        "wxnum": {
                                            "type": "string",
                                            "example": "haojsh",
                                            "description": "公众号ID"
                                        },
                                        "author": {
                                            "type": "string",
                                            "example": "新传统",
                                            "description": "文章作者"
                                        },
                                        "picurl": {
                                            "type": "string",
                                            "example": "http:\/\/zxpic.gtimg.com\/infonew\/0\/wechat_pics_-667708.jpg\/640",
                                            "description": "文章封面"
                                        },
                                        "username": {
                                            "type": "string",
                                            "example": "中国传统文化",
                                            "description": "公众号名称"
                                        },
                                        "description": {
                                            "type": "string",
                                            "example": "中国传统文化",
                                            "description": "文章描述"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "id": "0decc4d9b8cde282c83e2e011e6c3cec",
                                                "url": "http:\/\/mp.weixin.qq.com\/s?__biz=MzA3OTg2NjEwNg==",
                                                "ctime": "2015-07-17",
                                                "title": "那个抱走王明涵的，你上微信吗？看完这个你会心软吗？",
                                                "wxnum": "haojsh",
                                                "author": "作者",
                                                "picurl": "http:\/\/zxpic.gtimg.com\/infonew\/0\/wechat_pics_-667708.jpg\/640",
                                                "username": "中国传统文化",
                                                "description": "中国传统文化"
                                            },
                                            {
                                                "id": "27e47d5f3930087aeeb83d3a29f8ad3d",
                                                "url": "http:\/\/mp.weixin.qq.com\/s?__biz=MjM5NTI4NDk0Mg==",
                                                "ctime": "2015-06-12",
                                                "title": "深悦地产风云榜丨房地产微信公众号一周榜单",
                                                "wxnum": "meiyui",
                                                "author": "作者",
                                                "picurl": "http:\/\/zxpic.gtimg.com\/infonew\/0\/wechat_pics_-530408.jpg\/640",
                                                "username": "深悦会",
                                                "description": "深悦会"
                                            },
                                            {
                                                "id": "10b0db71eb011c719e33c5f8f7b61190",
                                                "url": "http:\/\/mp.weixin.qq.com\/s?__biz=MjM5NTAzMDQ0MA==",
                                                "ctime": "2015-06-14",
                                                "title": "一条微信向全世界宣告，这就是惠州！",
                                                "wxnum": "english",
                                                "author": "作者",
                                                "picurl": "http:\/\/zxpic.gtimg.com\/infonew\/0\/wechat_pics_-536516.jpg\/640",
                                                "username": "西子湖畔",
                                                "description": "西子湖畔"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "查询文章列表",
                "tags": [
                    "微信文章精选"
                ],
                "description": "查询微信精选文章列表，支持关键词搜索",
                "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": "检索关键词"
                                    }
                                },
                                "required": [
                                    "key",
                                    "num"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "example": "62ac899e8fcf654a74479b4239b4651f",
                                            "description": "文章唯一ID"
                                        },
                                        "url": {
                                            "type": "string",
                                            "example": "http:\/\/mp.weixin.qq.com\/s?__biz=MzA3OTg2NjEwNg==",
                                            "description": "文章地址"
                                        },
                                        "type": {
                                            "type": "string",
                                            "example": "学霸族",
                                            "description": "文章分类"
                                        },
                                        "ctime": {
                                            "type": "Date",
                                            "example": "2015-07-17",
                                            "description": "发布时间"
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "那个抱走王明涵的，你上微信吗？看完这个你会心软吗？",
                                            "description": "文章标题"
                                        },
                                        "wxnum": {
                                            "type": "string",
                                            "example": "haojsh",
                                            "description": "公众号ID"
                                        },
                                        "author": {
                                            "type": "string",
                                            "example": "新传统",
                                            "description": "文章作者"
                                        },
                                        "picurl": {
                                            "type": "string",
                                            "example": "http:\/\/zxpic.gtimg.com\/infonew\/0\/wechat_pics_-667708.jpg\/640",
                                            "description": "文章封面"
                                        },
                                        "username": {
                                            "type": "string",
                                            "example": "中国传统文化",
                                            "description": "公众号名称"
                                        },
                                        "description": {
                                            "type": "string",
                                            "example": "中国传统文化",
                                            "description": "文章描述"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "id": "0decc4d9b8cde282c83e2e011e6c3cec",
                                                "url": "http:\/\/mp.weixin.qq.com\/s?__biz=MzA3OTg2NjEwNg==",
                                                "ctime": "2015-07-17",
                                                "title": "那个抱走王明涵的，你上微信吗？看完这个你会心软吗？",
                                                "wxnum": "haojsh",
                                                "author": "作者",
                                                "picurl": "http:\/\/zxpic.gtimg.com\/infonew\/0\/wechat_pics_-667708.jpg\/640",
                                                "username": "中国传统文化",
                                                "description": "中国传统文化"
                                            },
                                            {
                                                "id": "27e47d5f3930087aeeb83d3a29f8ad3d",
                                                "url": "http:\/\/mp.weixin.qq.com\/s?__biz=MjM5NTI4NDk0Mg==",
                                                "ctime": "2015-06-12",
                                                "title": "深悦地产风云榜丨房地产微信公众号一周榜单",
                                                "wxnum": "meiyui",
                                                "author": "作者",
                                                "picurl": "http:\/\/zxpic.gtimg.com\/infonew\/0\/wechat_pics_-530408.jpg\/640",
                                                "username": "深悦会",
                                                "description": "深悦会"
                                            },
                                            {
                                                "id": "10b0db71eb011c719e33c5f8f7b61190",
                                                "url": "http:\/\/mp.weixin.qq.com\/s?__biz=MjM5NTAzMDQ0MA==",
                                                "ctime": "2015-06-14",
                                                "title": "一条微信向全世界宣告，这就是惠州！",
                                                "wxnum": "english",
                                                "author": "作者",
                                                "picurl": "http:\/\/zxpic.gtimg.com\/infonew\/0\/wechat_pics_-536516.jpg\/640",
                                                "username": "西子湖畔",
                                                "description": "西子湖畔"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}