{
    "openapi": "3.0.3",
    "info": {
        "title": "客官API - 免费的API接口服务平台",
        "version": "2.2.0"
    },
    "servers": [
        {
            "url": "https:\/\/api.keguan.org.cn"
        }
    ],
    "paths": {
        "\/api\/yiyan\/api.php": {
            "get": {
                "operationId": "yiyan_get",
                "summary": "随机一言",
                "description": "提供随机中文名言\/诗句\/短句的轻量级API服务，支持json\/text",
                "tags": [
                    "内容数据"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=6"
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            },
                            "text\/plain": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "参数错误"
                    },
                    "429": {
                        "description": "请求频率超限"
                    },
                    "503": {
                        "description": "维护或服务不可用"
                    }
                },
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "description": "响应格式： json：返回JSON格式（默认）。 text：返回纯文本格式。",
                        "schema": {
                            "type": "string",
                            "example": "text",
                            "default": "json",
                            "enum": [
                                "json",
                                "text"
                            ]
                        }
                    },
                    {
                        "name": "c",
                        "in": "query",
                        "required": false,
                        "description": "分类：a动画、b漫画、c游戏、d文学、e原创、f来自网络、g其他、h影视、i诗词、j网易云、k哲学、l抖机灵、其他作为动画类型处理",
                        "schema": {
                            "type": "string",
                            "example": "i"
                        }
                    }
                ],
                "x-api-version": "1.0"
            }
        }
    }
}