{
    "openapi": "3.0.0",
    "info": {
        "title": "旅游景区大全 - API文档",
        "version": "1.0.0",
        "description": "接口包含全国所有知名不知名的景区景点、度假山庄、博物馆等信息。按省市分类，可模糊搜索。word、province、city三个参数必填其中一个。num参数默认1，最大15。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/scenic\/index": {
            "get": {
                "summary": "旅游景区查询",
                "tags": [
                    "旅游景区大全"
                ],
                "description": "根据景区名称查询景区介绍等信息",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "num",
                        "in": "query",
                        "description": "返回数量",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 10,
                            "description": "返回数量"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "description": "按景点城市检索",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "苏州",
                            "description": "按景点城市检索"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "翻页",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": 1,
                            "description": "翻页"
                        }
                    },
                    {
                        "name": "word",
                        "in": "query",
                        "description": "景点名称",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "虎丘",
                            "description": "景点名称"
                        }
                    },
                    {
                        "name": "province",
                        "in": "query",
                        "description": "按景点省区检索",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "江苏",
                            "description": "按景点省区检索"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "city": {
                                            "type": "string",
                                            "example": "上海",
                                            "description": "城市"
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "上海城市规划展示馆",
                                            "description": "景点名称"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "上海城市规划展示馆位于市政府大厦的东侧......",
                                            "description": "内容"
                                        },
                                        "province": {
                                            "type": "string",
                                            "example": "上海",
                                            "description": "省份"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "city": "上海",
                                                "name": "上海城市规划展示馆",
                                                "content": "上海城市规划展示馆位于市政府大厦的东侧，馆顶4只象征上海市市花白玉兰的巨大白色钢帽在艳阳下熠熠生辉，她与西侧水晶宫般的上海大剧院一左一右相映成趣。总投资2.6亿元的城市规划展示馆主体高43.3米，地面5层，地下2层，总建筑面积18393平方米。城市规划展示馆不仅有利于市民参观了解城市的发展变化和未来规划，更有利于向国内外宾客介绍上海城市规划与建设的情况，树立上海对外开放的国际大都市形象。",
                                                "province": "上海"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "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": "返回数量"
                                    },
                                    "city": {
                                        "type": "string",
                                        "example": "苏州",
                                        "description": "按景点城市检索"
                                    },
                                    "page": {
                                        "type": "string",
                                        "example": 1,
                                        "description": "翻页"
                                    },
                                    "word": {
                                        "type": "string",
                                        "example": "虎丘",
                                        "description": "景点名称"
                                    },
                                    "province": {
                                        "type": "string",
                                        "example": "江苏",
                                        "description": "按景点省区检索"
                                    }
                                },
                                "required": [
                                    "key",
                                    "word"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "city": {
                                            "type": "string",
                                            "example": "上海",
                                            "description": "城市"
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "上海城市规划展示馆",
                                            "description": "景点名称"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "上海城市规划展示馆位于市政府大厦的东侧......",
                                            "description": "内容"
                                        },
                                        "province": {
                                            "type": "string",
                                            "example": "上海",
                                            "description": "省份"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "city": "上海",
                                                "name": "上海城市规划展示馆",
                                                "content": "上海城市规划展示馆位于市政府大厦的东侧，馆顶4只象征上海市市花白玉兰的巨大白色钢帽在艳阳下熠熠生辉，她与西侧水晶宫般的上海大剧院一左一右相映成趣。总投资2.6亿元的城市规划展示馆主体高43.3米，地面5层，地下2层，总建筑面积18393平方米。城市规划展示馆不仅有利于市民参观了解城市的发展变化和未来规划，更有利于向国内外宾客介绍上海城市规划与建设的情况，树立上海对外开放的国际大都市形象。",
                                                "province": "上海"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}