{
    "openapi": "3.0.3",
    "info": {
        "title": "客官API - 免费的API接口服务平台",
        "version": "2.2.0"
    },
    "servers": [
        {
            "url": "https:\/\/api.keguan.org.cn"
        }
    ],
    "paths": {
        "\/api\/ping\/api.php": {
            "get": {
                "operationId": "ping_get",
                "summary": "Ping",
                "description": "检测公网主机 TCP 80 端口连接延迟（毫秒），不是 ICMP Ping；限制公网地址，连接超时 3 秒。",
                "tags": [
                    "开发工具"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=1"
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "参数错误"
                    },
                    "429": {
                        "description": "请求频率超限"
                    },
                    "503": {
                        "description": "维护或服务不可用"
                    }
                },
                "parameters": [
                    {
                        "name": "msg",
                        "in": "query",
                        "required": true,
                        "description": "要 Ping 的主机名或 IP 地址",
                        "schema": {
                            "type": "string",
                            "example": "api.keguan.org.cn"
                        }
                    }
                ],
                "x-api-version": "1.0"
            }
        },
        "\/api\/bing\/api.php": {
            "get": {
                "operationId": "bing_get",
                "summary": "Bing每日图片",
                "description": "微软官方接口获取必应每日图片，支持两种返回格式JSON\/IMAGE。",
                "tags": [
                    "图片服务"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=2"
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            },
                            "image\/png": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "参数错误"
                    },
                    "429": {
                        "description": "请求频率超限"
                    },
                    "503": {
                        "description": "维护或服务不可用"
                    }
                },
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "description": "指定返回数据格式 json\/image",
                        "schema": {
                            "type": "string",
                            "example": "image",
                            "default": "json",
                            "enum": [
                                "json",
                                "image"
                            ]
                        }
                    }
                ],
                "x-api-version": "1.0"
            }
        },
        "\/api\/lsjt\/api.php": {
            "get": {
                "operationId": "lsjt_get",
                "summary": "历史上的今天",
                "description": "历史上的今天事件列表，支持文本和 JSON 两种格式响应。",
                "tags": [
                    "内容数据"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=4"
                },
                "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": "指定返回数据text\/json",
                        "schema": {
                            "type": "string",
                            "example": "json",
                            "default": "text",
                            "enum": [
                                "json",
                                "text"
                            ]
                        }
                    }
                ],
                "x-api-version": "1.0"
            }
        },
        "\/api\/favicon\/api.php": {
            "get": {
                "operationId": "favicon_get",
                "summary": "获取网站Favicon图标",
                "description": "通过目标网站的域名获取其Favicon图标地址，返回JSON数据。",
                "tags": [
                    "开发工具"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=5"
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "参数错误"
                    },
                    "429": {
                        "description": "请求频率超限"
                    },
                    "503": {
                        "description": "维护或服务不可用"
                    }
                },
                "parameters": [
                    {
                        "name": "domain",
                        "in": "query",
                        "required": true,
                        "description": "目标网站的域名（支持带协议）",
                        "schema": {
                            "type": "string",
                            "example": "api.keguan.org.cn"
                        }
                    }
                ],
                "x-api-version": "1.0"
            }
        },
        "\/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"
            }
        },
        "\/api\/baobei\/api.php": {
            "get": {
                "operationId": "baobei_get",
                "summary": "宝贝回家",
                "description": "宝贝回家公益寻亲信息展示，助力离散家庭团圆，原每一次寻找都离团圆更近。数据来源：https:\/\/api.xunjinlu.fun\/",
                "tags": [
                    "图片服务"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=7"
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "image\/png": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "参数错误"
                    },
                    "429": {
                        "description": "请求频率超限"
                    },
                    "503": {
                        "description": "维护或服务不可用"
                    }
                },
                "parameters": [
                    {
                        "name": "无",
                        "in": "query",
                        "required": true,
                        "description": "无",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "x-api-version": "1.0"
            }
        },
        "\/api\/base64\/": {
            "get": {
                "operationId": "base64_get",
                "summary": "Base64编码解码",
                "description": "用于标准 Base64 和 Base64URL 的编码与解码。",
                "tags": [
                    "开发工具"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=8"
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "参数错误"
                    },
                    "429": {
                        "description": "请求频率超限"
                    },
                    "503": {
                        "description": "维护或服务不可用"
                    }
                },
                "parameters": [
                    {
                        "name": "action",
                        "in": "query",
                        "required": false,
                        "description": "默认 `encode`；可选 `encode`、`decode` | 操作类型：编码或解码。传入其他值会返回 `400`。",
                        "schema": {
                            "type": "string",
                            "example": "encode",
                            "default": "encode",
                            "enum": [
                                "encode",
                                "decode"
                            ]
                        }
                    },
                    {
                        "name": "text",
                        "in": "query",
                        "required": true,
                        "description": "要编码或解码的内容。`decode` 时需要传入合法的 Base64 \/ Base64URL 字符串。",
                        "schema": {
                            "type": "string",
                            "example": "hello world"
                        }
                    },
                    {
                        "name": "variant",
                        "in": "query",
                        "required": false,
                        "description": "默认 `standard`；可选 `standard`、`url` | 编码变体。`standard` 为标准 Base64；`url` 为适合 URL 传输的 Base64URL。",
                        "schema": {
                            "type": "string",
                            "example": "url",
                            "default": "standard",
                            "enum": [
                                "standard",
                                "url"
                            ]
                        }
                    }
                ],
                "x-api-version": "1.0"
            },
            "post": {
                "operationId": "base64_post",
                "summary": "Base64编码解码",
                "description": "用于标准 Base64 和 Base64URL 的编码与解码。",
                "tags": [
                    "开发工具"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=8"
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "参数错误"
                    },
                    "429": {
                        "description": "请求频率超限"
                    },
                    "503": {
                        "description": "维护或服务不可用"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "action": {
                                        "type": "string",
                                        "example": "encode",
                                        "default": "encode",
                                        "enum": [
                                            "encode",
                                            "decode"
                                        ]
                                    },
                                    "text": {
                                        "type": "string",
                                        "example": "hello world"
                                    },
                                    "variant": {
                                        "type": "string",
                                        "example": "url",
                                        "default": "standard",
                                        "enum": [
                                            "standard",
                                            "url"
                                        ]
                                    }
                                },
                                "required": [
                                    "text"
                                ]
                            }
                        },
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "action": {
                                        "type": "string",
                                        "example": "encode",
                                        "default": "encode",
                                        "enum": [
                                            "encode",
                                            "decode"
                                        ]
                                    },
                                    "text": {
                                        "type": "string",
                                        "example": "hello world"
                                    },
                                    "variant": {
                                        "type": "string",
                                        "example": "url",
                                        "default": "standard",
                                        "enum": [
                                            "standard",
                                            "url"
                                        ]
                                    }
                                },
                                "required": [
                                    "text"
                                ]
                            }
                        }
                    }
                },
                "x-api-version": "1.0"
            }
        },
        "\/api\/hash\/": {
            "get": {
                "operationId": "hash_get",
                "summary": "Hash摘要计算",
                "description": "用于计算常见摘要值，适合接口调试、签名比对和文本校验。支持 `md5`、`sha1`、`sha256`、`sha512`。",
                "tags": [
                    "开发工具"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=9"
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "参数错误"
                    },
                    "429": {
                        "description": "请求频率超限"
                    },
                    "503": {
                        "description": "维护或服务不可用"
                    }
                },
                "parameters": [
                    {
                        "name": "algo",
                        "in": "query",
                        "required": false,
                        "description": "默认 `sha256`；可选 `md5`、`sha1`、`sha256`、`sha512` | 摘要算法名称。传入其他算法会返回 `400`。",
                        "schema": {
                            "type": "string",
                            "example": "sha256",
                            "default": "sha256",
                            "enum": [
                                "md5",
                                "sha1",
                                "sha256",
                                "sha512"
                            ]
                        }
                    },
                    {
                        "name": "text",
                        "in": "query",
                        "required": false,
                        "description": "默认空字符串 | 要计算摘要的原始文本，允许为空。 ",
                        "schema": {
                            "type": "string",
                            "example": "abc"
                        }
                    }
                ],
                "x-api-version": "1.0"
            },
            "post": {
                "operationId": "hash_post",
                "summary": "Hash摘要计算",
                "description": "用于计算常见摘要值，适合接口调试、签名比对和文本校验。支持 `md5`、`sha1`、`sha256`、`sha512`。",
                "tags": [
                    "开发工具"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=9"
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "参数错误"
                    },
                    "429": {
                        "description": "请求频率超限"
                    },
                    "503": {
                        "description": "维护或服务不可用"
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "algo": {
                                        "type": "string",
                                        "example": "sha256",
                                        "default": "sha256",
                                        "enum": [
                                            "md5",
                                            "sha1",
                                            "sha256",
                                            "sha512"
                                        ]
                                    },
                                    "text": {
                                        "type": "string",
                                        "example": "abc"
                                    }
                                }
                            }
                        },
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "algo": {
                                        "type": "string",
                                        "example": "sha256",
                                        "default": "sha256",
                                        "enum": [
                                            "md5",
                                            "sha1",
                                            "sha256",
                                            "sha512"
                                        ]
                                    },
                                    "text": {
                                        "type": "string",
                                        "example": "abc"
                                    }
                                }
                            }
                        }
                    }
                },
                "x-api-version": "1.0"
            }
        }
    }
}