{
    "openapi": "3.0.3",
    "info": {
        "title": "FOHOK/API",
        "description": "FOHOK/API 提供高性能 API 网关服务，接口列表、独立文档、在线调用一站式，支持按次/按量计费与阶梯价。",
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "https://api.fohok.xin"
        }
    ],
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "scheme": "bearer",
                "description": "在请求头携带 Authorization: Bearer <API Key>"
            }
        }
    },
    "paths": {
        "/v1/ip": {
            "get": {
                "tags": [
                    "IP 工具"
                ],
                "summary": "IP归属地查询",
                "description": "",
                "operationId": "ip",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/ip",
                "parameters": [
                    {
                        "name": "ip",
                        "in": "query",
                        "required": true,
                        "description": "需查询的IP通过此参数传入",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "v",
                        "in": "query",
                        "required": false,
                        "description": "默认为1返回精简版，2为完整版",
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/v1/weather": {
            "get": {
                "tags": [
                    "天气查询"
                ],
                "summary": "天气查询",
                "description": "",
                "operationId": "weather",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/weather",
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/v1/qrsf": {
            "post": {
                "tags": [
                    "其他接口"
                ],
                "summary": "二维码生成/解码",
                "description": "",
                "operationId": "qrsf",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/qrsf",
                "security": [
                    {
                        "bearerAuth": []
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "v": {
                                        "type": "string"
                                    },
                                    "content": {
                                        "type": "string"
                                    },
                                    "format": {
                                        "type": "string"
                                    },
                                    "ecc": {
                                        "type": "string"
                                    },
                                    "margin": {
                                        "type": "string"
                                    },
                                    "size": {
                                        "type": "string"
                                    },
                                    "image": {
                                        "type": "string"
                                    },
                                    "url": {
                                        "type": "string"
                                    },
                                    "base64": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "content"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/v1/txwz": {
            "get": {
                "tags": [
                    "其他接口"
                ],
                "summary": "腾讯网址安全检查",
                "description": "",
                "operationId": "txwz",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/txwz",
                "parameters": [
                    {
                        "name": "url",
                        "in": "query",
                        "required": true,
                        "description": "需检查的网址",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/v1/qykai": {
            "get": {
                "tags": [
                    "其他接口"
                ],
                "summary": "青云客ai",
                "description": "",
                "operationId": "qykai",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/qykai",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "required": true,
                        "description": "青云客官方必传",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "msg",
                        "in": "query",
                        "required": true,
                        "description": "对话内容",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/v1/sslinfo": {
            "get": {
                "tags": [
                    "文本工具"
                ],
                "summary": "SSL证书信息查询",
                "description": "",
                "operationId": "sslinfo",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/sslinfo",
                "parameters": [
                    {
                        "name": "dn",
                        "in": "query",
                        "required": true,
                        "description": "需检查的域名",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "description": "默认返回json，支持pce图片返回",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/v1/tts": {
            "post": {
                "tags": [
                    "默认"
                ],
                "summary": "TTS文本转语音",
                "description": "",
                "operationId": "tts",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/tts",
                "security": [
                    {
                        "bearerAuth": []
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "text": {
                                        "type": "string"
                                    },
                                    "action": {
                                        "type": "string"
                                    },
                                    "voice": {
                                        "type": "string"
                                    },
                                    "rate": {
                                        "type": "integer"
                                    },
                                    "pitch": {
                                        "type": "integer"
                                    },
                                    "volume": {
                                        "type": "integer"
                                    },
                                    "refresh": {
                                        "type": "string"
                                    },
                                    "id": {
                                        "type": "string"
                                    },
                                    "play": {
                                        "type": "string"
                                    },
                                    "download": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "text"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/v1/Nemotron-3-Ultra-550B": {
            "post": {
                "tags": [
                    "Ai模型"
                ],
                "summary": "Nemotron-3-Ultra-550B",
                "description": "",
                "operationId": "nemotron-3-ultra-550b",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/nemotron-3-ultra-550b",
                "security": [
                    {
                        "bearerAuth": []
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "msg": {
                                        "type": "string"
                                    },
                                    "history": {
                                        "type": "string"
                                    },
                                    "thinking": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "msg"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/v1/LongCat-2-5": {
            "post": {
                "tags": [
                    "Ai模型"
                ],
                "summary": "LongCat-2.5",
                "description": "",
                "operationId": "longcat-2-5",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/longcat-2-5",
                "security": [
                    {
                        "bearerAuth": []
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "msg": {
                                        "type": "string"
                                    },
                                    "history": {
                                        "type": "string"
                                    },
                                    "thinking": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "msg"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/v1/bbhj": {
            "get": {
                "tags": [
                    "其他接口"
                ],
                "summary": "宝贝回家",
                "description": "",
                "operationId": "bbhj",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/bbhj",
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "description": "默认json，可传入img返回图片",
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/v1/sjgsdcx": {
            "get": {
                "tags": [
                    "文本工具"
                ],
                "summary": "手机归属地查询",
                "description": "",
                "operationId": "sjgsdcx",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/sjgsdcx",
                "parameters": [
                    {
                        "name": "number",
                        "in": "query",
                        "required": true,
                        "description": "需要查询归属地的手机号码",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/v1/dljsc": {
            "get": {
                "tags": [
                    "文本工具"
                ],
                "summary": "短链接生成",
                "description": "",
                "operationId": "dljsc",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/dljsc",
                "parameters": [
                    {
                        "name": "url",
                        "in": "query",
                        "required": true,
                        "description": "需要转换或跳转的完整长链接",
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/v1/githubgx": {
            "get": {
                "tags": [
                    "默认"
                ],
                "summary": "GitHub贡献查询",
                "description": "",
                "operationId": "githubgx",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/githubgx",
                "parameters": [
                    {
                        "name": "name",
                        "in": "query",
                        "required": true,
                        "description": "GitHub 用户名（字母/数字/中划线，1-39位）",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "description": "返回类型：json（默认，返回数据）或 pce（返回日历图片base64）",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "required": false,
                        "description": "查询年份：last（默认，最近一年）或 四位年份（如 2023）",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "simple",
                        "in": "query",
                        "required": false,
                        "description": "1=不返回逐日明细，0=返回完整明细",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/v1/resou": {
            "get": {
                "tags": [
                    "其他接口"
                ],
                "summary": "全网热榜聚合",
                "description": "",
                "operationId": "resou",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/resou",
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "required": true,
                        "description": "平台名称，支持：baidu, tieba, zhihu, weibo, bilihot, biliall, douyin, history, sspai",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/v1/screenshot": {
            "get": {
                "tags": [
                    "其他接口"
                ],
                "summary": "网页截图 - 原fhk截图",
                "description": "",
                "operationId": "screenshot",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/screenshot",
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "其他接口"
                ],
                "summary": "网页截图 - 原fhk截图",
                "description": "",
                "operationId": "screenshot",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/screenshot",
                "security": [
                    {
                        "bearerAuth": []
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "url": {
                                        "type": "string"
                                    },
                                    "urls": {
                                        "type": "string"
                                    },
                                    "email": {
                                        "type": "string"
                                    },
                                    "width": {
                                        "type": "integer"
                                    },
                                    "height": {
                                        "type": "integer"
                                    },
                                    "full_page": {
                                        "type": "boolean"
                                    },
                                    "export_pdf": {
                                        "type": "boolean"
                                    },
                                    "mobile_device": {
                                        "type": "string"
                                    },
                                    "image_format": {
                                        "type": "string"
                                    },
                                    "image_quality": {
                                        "type": "integer"
                                    },
                                    "id": {
                                        "type": "string"
                                    },
                                    "include_image": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "url"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/v1/speedtest": {
            "get": {
                "tags": [
                    "其他接口"
                ],
                "summary": "网络测速",
                "description": "",
                "operationId": "speedtest",
                "responses": {
                    "200": {
                        "description": "成功"
                    },
                    "401": {
                        "description": "缺少或无效的 API Key"
                    },
                    "429": {
                        "description": "触发限流"
                    }
                },
                "x-fohok-doc": "https://api.fohok.xin/docs/speedtest",
                "parameters": [
                    {
                        "name": "op",
                        "in": "query",
                        "required": true,
                        "description": "测速目标地址（需要支持 http/https 协议）",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "description": "返回类型：json（默认）、text（纯文本报告）、pce（返回 PNG 图片 base64）",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        }
    }
}