{
  "openapi": "3.1.0",
  "info": {
    "title": "极数本源 聚合 API",
    "version": "1.0.0",
    "description": "极数本源 提供的全部公开 HTTP API。统一 Key、统一计费、统一限流。\n\n申请 API Key：https://apizero.cn/account/keys\n文档主页：https://apizero.cn/aidocs",
    "termsOfService": "https://apizero.cn/terms",
    "contact": {
      "name": "极数本源",
      "email": "api@zerois.cn",
      "url": "https://apizero.cn"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://apizero.cn/terms"
    }
  },
  "servers": [
    {
      "url": "https://v1.apizero.cn",
      "description": "v1 网关（生产）"
    }
  ],
  "externalDocs": {
    "description": "AI 友好的完整文档（Markdown）",
    "url": "https://apizero.cn/aidocs/llms-full.txt"
  },
  "tags": [
    {
      "name": "life",
      "description": "生活服务"
    },
    {
      "name": "finance",
      "description": "金融数据"
    },
    {
      "name": "ai",
      "description": "AI 能力"
    },
    {
      "name": "geo",
      "description": "地理位置"
    },
    {
      "name": "kyc",
      "description": "身份核验"
    },
    {
      "name": "content",
      "description": "内容娱乐"
    },
    {
      "name": "dev",
      "description": "开发工具"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "从 https://apizero.cn/account/keys 创建"
      },
      "ApiKeyQuery": {
        "type": "apiKey",
        "in": "query",
        "name": "key",
        "description": "也可通过 URL ?key= 传递（与 X-Api-Key 二选一）"
      }
    },
    "schemas": {
      "OkEnvelope": {
        "type": "object",
        "required": [
          "code",
          "msg",
          "data",
          "request_id"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "const": 0,
            "description": "成功固定为 0"
          },
          "msg": {
            "type": "string",
            "example": "成功"
          },
          "data": {
            "description": "业务数据，结构详见各接口的 200 响应 schema"
          },
          "request_id": {
            "type": "string",
            "example": "req_abcd1234"
          }
        }
      },
      "ErrEnvelope": {
        "type": "object",
        "required": [
          "code",
          "msg"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "example": 4000
          },
          "msg": {
            "type": "string",
            "example": "参数错误"
          },
          "data": {
            "nullable": true
          },
          "request_id": {
            "type": "string",
            "example": "req_abcd1234"
          }
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "参数错误 / 校验失败",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrEnvelope"
            },
            "example": {
              "code": 4000,
              "msg": "参数错误",
              "data": null,
              "request_id": "req_xxx"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "API Key 无效或缺失",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrEnvelope"
            },
            "example": {
              "code": 4011,
              "msg": "API Key 无效",
              "data": null,
              "request_id": "req_xxx"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "QPS 超限或额度耗尽",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrEnvelope"
            },
            "example": {
              "code": 4029,
              "msg": "调用过快，请稍后再试",
              "data": null,
              "request_id": "req_xxx"
            }
          }
        }
      },
      "UpstreamError": {
        "description": "上游服务不可用",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrEnvelope"
            },
            "example": {
              "code": 5020,
              "msg": "上游服务不可用",
              "data": null,
              "request_id": "req_xxx"
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKeyHeader": []
    },
    {
      "ApiKeyQuery": []
    }
  ],
  "paths": {
    "/api/video-parse": {
      "get": {
        "operationId": "video_parse",
        "summary": "全平台视频元数据解析服务",
        "description": "```\n全平台视频元数据解析服务 — 专业、合规、稳定\n\n## 服务概述\n本服务通过 RESTful API 形式，将用户已能合法访问的视频/图集分享链接，\n解析为结构化的元数据信息（标题、封面、作者、原始 URL 等），\n便于开发者集成到内容审核、个人备份、学术研究、数据迁移等场景。\n\n## 核心能力\n- **覆盖广**：国内主流平台全覆盖（抖音、小红书、哔哩哔哩、快手、微博、\n  皮皮虾、最右、贴吧、即梦、可灵 AI 等），海外平台 5 站智能路由\n  （YouTube、Vimeo、Twitter 等通过 yt-dlp 兜底）\n- **响应快**：智能缓存 + 多通道竞速，平均响应 1.3 秒，QPS 可达 15\n- **稳定性**：99.7% 月度可用性（含失败重试与自动降级）\n- **合规优先**：\n  · 强制在每个响应中返回 source 来源标注字段\n  · 不存储任何原始视频/图片内容\n  · 完善的 DMCA 侵权处理通道（24 小时响应）\n  · 90 天日志保留期，超期自动清理\n\n## 适用场景\n✅ 个人内容备份（用户备份自己发布或合法授权的内容）\n✅ MCN 机构内容审核（对委托发布的内容进行合规审查）\n✅ 学术研究（高校研究机构的传播规律分析）\n✅ 合法范围内的市场数据聚合分析\n✅ 用户在自有多账号间的内容迁移\n\n## 严禁用途（违反者立即终止服务且不予退款）\n❌ 公开传播、二次发布他人受版权保护的内容\n❌ 集成到视频下载站、聚合下载工具等以下载为主功能的产品\n❌ 大规模爬取、自动化抓取\n❌ 用于侵犯他人著作权、肖像权、隐私权的任何用途\n❌ 二次商业转售本服务的解析结果\n\n## 调用即同意《用户协议与免责声明》\n完整协议：如下免责申明\n侵权投诉：1790643379@qq.com\n```",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 10,
          "point_cost": 0,
          "qps_limit": 3,
          "daily_free_limit": 20,
          "no_key_daily": 5
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/video-parse",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/video-parse/raw.md",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "待解析的视频/图文链接。支持完整 URL 或分享短链（如 v.douyin.com/xxx、vm.tiktok.com/xxx）。最大 2048 字符",
            "schema": {
              "type": "string",
              "example": "https://www.bilibili.com/video/BV1gY411A7y7"
            },
            "example": "https://www.bilibili.com/video/BV1gY411A7y7"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "code": 200,
                    "platform": "bilibili",
                    "type": "视频",
                    "data": {
                      "title": "100小时安娜的睡针，献给所有守望玩家",
                      "video_url": "https://upos-sz-mirrorhw.bilivideo.com/upgcxcode/.../xxx.mp4",
                      "cover_url": "http://i0.hdslb.com/bfs/archive/xxx.jpg",
                      "audio_url": "",
                      "imagelist": []
                    },
                    "stats": {
                      "author_name": "AIX5E",
                      "author_avatar": "https://i0.hdslb.com/bfs/face/xxx.jpg",
                      "like_count": 334,
                      "comment_count": 74,
                      "share_count": 32,
                      "play_count": 6843,
                      "collect_count": 21,
                      "publish_time": "2022-05-05 16:08:33"
                    },
                    "video_list": [
                      {
                        "quality": "原画 1080P",
                        "url": "https://...",
                        "size": "~38.01MB",
                        "resolution": "1920x1080"
                      },
                      {
                        "quality": "720P",
                        "url": "https://...",
                        "size": "~25.34MB",
                        "resolution": "1280x720"
                      },
                      {
                        "quality": "480P",
                        "url": "https://...",
                        "size": "~11.43MB",
                        "resolution": "852x480"
                      }
                    ]
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/barcode-gs1": {
      "get": {
        "operationId": "barcode_gs1",
        "summary": "商品条码查询-官方数据",
        "description": "官方权威的商品条码查询接口，数据直通中国物品编码中心(GS1 China)官方注册数据库。\n\n【数据源升级 · 2026-05】当前以中国编码官方 APP (ancc.org.cn) 为主源，多源兜底（chinatrace / gds-bff / cnaidc），三级缓存设计（Redis 24h → MySQL 永久库 → 上游 API），高频查询的条码自动周期性回源刷新，数据时效性进一步优化。\n\n与 `barcode-lookup` 定位不同：\n- 本接口**官方权威**：返回厂商注册名称、产品登记信息、上市日期、官方商品图等可追溯的官方数据\n- 本接口**仅覆盖国内注册条码**(6/690 开头)，进口商品或非注册条码会返回 found=false\n- 适合合规核验、溯源、上架审核等对数据权威性要求高的场景\n\n支持输入格式：8 / 12 / 13 / 14 位纯数字，或 16 位 AI(01) 前缀 + GTIN-14。\n\n返回数据包含：产品名称、品牌、通用名、分类（含分类编号）、规格、净含量、上市日期、厂商企业名、官方商品图、条码激活日期、产品创建日期、企业注册日期、已用天数等核心字段，部分情况下额外提供生产国、企业地址、参考售价、厂商识别代码等扩展字段。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 10,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 20,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/barcode-gs1",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/barcode-gs1/raw.md",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "required": true,
            "description": "商品条形码(8/12/13/14 位纯数字，或 16 位 AI(01) 前缀 + GTIN-14)",
            "schema": {
              "type": "string",
              "example": "6921168509256"
            },
            "example": "6921168509256"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "登录用户传 API Key 享用更高额度；匿名调用每天 20 次免费",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "barcode": "6907992700199",
                    "gtin14": "06907992700199",
                    "found": true,
                    "registered": true,
                    "registration_message": "该商品条码已经在中国物品编码中心注册，编码信息已按规定通报。",
                    "name": "伊利儿童奶酪棒香草冰淇淋味再制干酪",
                    "brand": "伊利",
                    "general_name": "奶酪（易腐坏）",
                    "feature": "伊利儿童奶酪棒香草冰淇淋味再制干酪",
                    "category": "奶酪（易腐坏）(10000028)",
                    "specification": "90克",
                    "net_content": "90克",
                    "sale_date": null,
                    "manufacturer": "内蒙古伊利实业集团股份有限公司",
                    "images": [
                      "https://www.gds.org.cn/userfile/uploada/gra/sj201210093039959369/06907992700199/06907992700199.1.jpg"
                    ],
                    "qr_active_date": null,
                    "product_create_date": "2019年11月18日",
                    "company_register_date": null,
                    "use_days": 2366,
                    "country": null,
                    "address": null,
                    "price": null,
                    "category_code": null
                  },
                  "request_id": "mp0vcq0fab827132"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/hot-baidu": {
      "get": {
        "operationId": "hot_baidu",
        "summary": "百度热搜榜",
        "description": "聚合百度搜索热榜数据，实时返回 4 大榜单的 Top 30~50 条热门内容。零成本调用，适合做内容聚合 / 热点追踪 / 资讯类产品。\n\n【支持榜单】\n- realtime（实时热搜）· 默认值，约 30~50 条\n- novel（小说）· 约 30 条，含作者\n- movie（电影）· 约 10 条，含类型\n- tv（电视剧）· 约 10 条，含演员\n\n【返回字段】\n- rank · 榜单排名\n- title · 标题\n- desc · 简短描述\n- hot_index · 热度指数（数字）\n- link · 详情链接（百度搜索）\n- image · 配图 URL（直接可用，无防盗链限制）\n- tag · 标签（如「热」「新」「沸」「爆」）\n- author / category / actors · 小说 / 电影 / 电视剧专属字段\n\n【典型场景】\n- 资讯类 App 的\"今日热点\"模块\n- AI 写作助手的\"实时热点选题\"参考\n- 数据看板 / 大屏展示\n- 微信公众号选题辅助\n- 热搜监控 / 舆情分析\n\n【调用示例】\nGET /api/hot-baidu                  · 默认实时热搜\nGET /api/hot-baidu?tab=realtime\nGET /api/hot-baidu?tab=novel\nGET /api/hot-baidu?tab=movie\nGET /api/hot-baidu?tab=tv\n\n【性能与缓存】\n- 平均响应 200ms（缓存命中时 < 50ms）\n- 后端 60 秒缓存（百度榜单本身分钟级更新，短缓存合理且节省调用方资源）\n\n【⚠️ 数据来源说明】\n本接口数据来源于百度搜索热榜公开页面（top.baidu.com），仅用于个人开发测试与小规模商业场景；如需大规模商业使用建议自建抓取或采购官方 API。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 10000,
          "no_key_daily": 1000
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/hot-baidu",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/hot-baidu/raw.md",
        "parameters": [
          {
            "name": "tab",
            "in": "query",
            "required": false,
            "description": "榜单类型：realtime（实时热搜，默认）/ novel（小说）/ movie（电影）/ tv（电视剧）",
            "schema": {
              "type": "string",
              "example": "realtime"
            },
            "example": "realtime"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "可选 API Key 鉴权。未登录每天 50 次免费体验额度；登录用户更高额度且无需 IP 限制",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "tab": "realtime",
                    "update_time": "2026-05-06 07:15:00",
                    "total": 30,
                    "list": [
                      {
                        "rank": 1,
                        "title": "总书记对青年学子的殷切期待",
                        "desc": "坚定不移走中国特色社会主义道路...",
                        "hot_index": 4982315,
                        "link": "https://www.baidu.com/s?wd=%E6%80%BB%E4%B9%A6%E8%AE%B0%E5%AF%B9%E9%9D%92%E5%B9%B4...",
                        "image": "https://fyb-2.cdn.bcebos.com/hotboard_image/ced2dbd68e9ca16f8fc405530a0a3a5d?x-bce-process=image/resize,m_fill,w_256,h_170",
                        "tag": "热"
                      },
                      {
                        "rank": 2,
                        "title": "...",
                        "desc": "...",
                        "hot_index": 3500000,
                        "link": "https://www.baidu.com/s?wd=...",
                        "image": "https://fyb-2.cdn.bcebos.com/hotboard_image/...",
                        "tag": "新"
                      }
                    ]
                  },
                  "request_id": "mqx8x12345abc"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/barcode-lookup": {
      "get": {
        "operationId": "barcode_lookup",
        "summary": "商品条码查询-免费版",
        "description": "通过商品条形码（EAN-13 / UPC-A / UPC-E / EAN-8）一键查询商品信息，覆盖国内日常消费品超千万 SKU，包括食品饮料、日用百货、个护美妆、酒水烟草、母婴用品等。\n\n【核心字段】\n- name 商品名称\n- brand 品牌\n- manufacturer 生产厂商 / 经销商\n- spec 规格（如 550ml / 250g / 6 听装）\n- price 参考价（人民币元，仅作参考非实时市场价）\n- image 商品图片 URL（自有 CDN 代理，跨域友好）\n\n【典型场景】\n- 电商 / 零售 ERP：扫码录入商品自动补全字段\n- 个人记账 App：扫码识物展示购物明细\n- 物流仓储：条码核销 + 商品图展示\n- 自动售货机：条码识别后获取商品名称\n- 营销活动：用户扫码核销福利时验证商品\n\n【调用示例】\nGET /api/barcode-lookup?barcode=6921168509256\n\n【特别说明】\n- 平均响应 100ms（不含图片下载）\n- 国内主流商品（农夫山泉、可口可乐、康师傅、伊利等）覆盖率 > 95%\n- 个别冷门 / 新上市 SKU 可能未收录，此时 found=false\n- price 字段仅作参考，非各电商平台实时价格\n- image 字段始终返回有效 URL（接图片 onError 即可降级到默认图标）\n\n【⚠️ 注意】\n图片资源为公开懒加载代理，不计入接口调用次数；商品文本数据为按次计费。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 200,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/barcode-lookup",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/barcode-lookup/raw.md",
        "parameters": [
          {
            "name": "barcode",
            "in": "query",
            "required": true,
            "description": "8~13 位纯数字条形码。支持 EAN-13、UPC-A、EAN-8、UPC-E 等主流标准。",
            "schema": {
              "type": "string",
              "example": "6921168509256"
            },
            "example": "6921168509256"
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "保留参数：mode=image 时返回该商品的图片二进制（不计费、公开访问，主要由响应中的 image 字段链接自动调用）。",
            "schema": {
              "type": "string",
              "example": "image"
            },
            "example": "image"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "可选 API Key 鉴权。未登录每天有 20 次免费体验额度；登录用户每天 200 次免费",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "barcode": "6921168509256",
                    "found": true,
                    "name": "农夫山泉 饮用天然水550ml",
                    "brand": "农夫山泉",
                    "manufacturer": "农夫山泉股份有限公司",
                    "spec": "550ml",
                    "price": 1.5,
                    "category": null,
                    "description": null,
                    "image": "https://v1.apizero.cn/api/barcode-lookup?mode=image&barcode=6921168509256"
                  },
                  "request_id": "mqx8x12345abc"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/weather": {
      "get": {
        "operationId": "weather",
        "summary": "彩云天气",
        "description": "基于彩云天气 v2.6 的全功能天气接口，覆盖：\n  • 实时天气（温度/湿度/风/能见度/AQI/PM2.5）\n  • 分钟级降水预报（未来 2 小时）\n  • 小时预报（最长 360 小时 = 15 天）\n  • 天预报（最长 15 天，含日出日落、温度极值、生活指数）\n  • 综合数据（一次返回全部 + 气象预警）\n\n特色：\n  • 支持城市名直接查询（内置 ~140 个常用中国城市表 + Open-Meteo 兜底，无需高德/百度 Key）\n  • 自动中文化：skycon 转中文、风向转 16 方位、风速转蒲福风级、AQI 转等级颜色\n  • 预警标准化：从原始 title 提取颜色（蓝/黄/橙/红）和级别（一般/较重/严重/特别严重）\n  • 顶层 summary 字段提供\"一眼看懂\"的实时摘要",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 2000,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/weather",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/weather/raw.md",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "查询类型：realtime / minutely / hourly / daily / weather（默认 weather 综合）",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "required": false,
            "description": "城市/地区名称（如「北京」「朝阳区」），与 location 二选一",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "location",
            "in": "query",
            "required": false,
            "description": "经纬度坐标，格式 经度,纬度（如 116.3975,39.9085），优先级高于 city",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "alert",
            "in": "query",
            "required": false,
            "description": "是否包含气象预警，true/false，默认 true（仅 realtime/weather 生效）",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "天预报步长，1~15，默认 5（仅 daily/weather 生效）",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "hours",
            "in": "query",
            "required": false,
            "description": "小时预报步长，1~360，默认 24（仅 hourly/weather 生效）",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "X-API-Key",
            "in": "header",
            "required": false,
            "description": "API Key（不传走匿名额度）",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "type": "weather",
                    "location": {
                      "city": "北京",
                      "longitude": 116.4074,
                      "latitude": 39.9042,
                      "timezone": "Asia/Shanghai"
                    },
                    "server_time": "2026-05-06 08:43:01",
                    "forecast_keypoint": "未来两小时不会下雨，放心出门",
                    "summary": {
                      "skycon": "小雨",
                      "skycon_emoji": "🌦️",
                      "skycon_code": "LIGHT_RAIN",
                      "temperature": 21.5,
                      "apparent_temperature": 21.8,
                      "humidity_percent": 55,
                      "cloudrate_percent": 100,
                      "visibility_km": 20.3,
                      "wind": {
                        "speed_ms": 3.7,
                        "direction_deg": 239.9,
                        "direction_text": "西南偏南风",
                        "level": 3,
                        "level_text": "微风"
                      },
                      "air_quality": {
                        "aqi": 68,
                        "level": "良",
                        "level_color": "yellow",
                        "pm25": 27
                      },
                      "alert_count": 1
                    },
                    "alerts": [
                      {
                        "title": "东城区气象台发布大风蓝色预警[IV/一般]",
                        "description": "预计 6 日早晨至午后...有 3-4 级偏北风，阵风 6-7 级...",
                        "color": "蓝色",
                        "level": "一般",
                        "status": "预警中",
                        "province": "北京市",
                        "city": "北京城区",
                        "county": "东城区",
                        "pub_time": "2026-05-05 16:46:00",
                        "source": "国家预警信息发布中心",
                        "alert_id": "11010141600000_..."
                      }
                    ],
                    "realtime": "...（彩云原始 realtime 字段，详见上方字段说明）",
                    "minutely": "...（type=weather 才有）",
                    "hourly": "...（type=weather 才有）",
                    "daily": "...（type=weather 才有）"
                  },
                  "request_id": "mota..."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/whois": {
      "get": {
        "operationId": "whois",
        "summary": "Whois 域名查询",
        "description": "对接 whoiscx.com 上游，查询域名注册信息（注册商 / 注册主体 / 创建时间 / 到期时间 / DNS 服务器 / 域名状态 / DNSSEC 等）。\n\n• **支持所有主流 TLD**：.com / .cn / .net / .org / .io / .me / .top / .xyz 等几乎所有 ICANN 认证后缀\n• **自动归一化**：传入 `https://www.baidu.com/abc` 会自动剥离为 `baidu.com`\n• **域名可用性检测**：未注册域名返回 is_available=true，可用于域名抢注前查询\n• **到期告警**：30 天内到期返回 expiring_soon=true，便于前端高亮提示\n• **域龄展示**：creation_age_text 返回「N 年 M 月」人类可读字符串\n• **国内 .cn 主体中文**：whoiscx 上游对国内域名返回中文注册主体名（如「极数本源（福州）科技有限公司」）\n• **缓存 24h**：whois 数据年级变化，全天同一域名查询只调 1 次上游\n• **修复源码 BUG**：错误响应字段是 `error` 不是 `message`，源码取错丢失了上游真实错误",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/whois",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/whois/raw.md",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "待查询域名。自动剥离 http(s):// 前缀、路径、:port 后缀、子域名（如 www.baidu.com → baidu.com 由上游处理）",
            "schema": {
              "type": "string",
              "example": "baidu.com"
            },
            "example": "baidu.com"
          },
          {
            "name": "with_raw",
            "in": "query",
            "required": false,
            "description": "是否返回 raw_whois 原始 whois 文本（约 3KB），默认 false。建议仅调试时启用",
            "schema": {
              "type": "boolean",
              "example": "false"
            },
            "example": "false"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "domain": "baidu.com",
                    "suffix": "com",
                    "is_available": false,
                    "is_expired": false,
                    "expiring_soon": false,
                    "registrar": "MarkMonitor Information Technology (Shanghai) Co., Ltd.",
                    "registrant": "",
                    "registrant_email": "",
                    "creation_time": "1999-10-11 19:05:17",
                    "expiration_time": "2028-10-11 19:05:17",
                    "creation_days": 9704,
                    "creation_age_text": "26 年 7 个月",
                    "valid_days": 888,
                    "domain_status": [
                      "clientDeleteProhibited （注册商设置禁止删除）",
                      "clientTransferProhibited （注册商设置禁止转移）"
                    ],
                    "name_servers": [
                      "NS1.BAIDU.COM",
                      "NS2.BAIDU.COM",
                      "NS3.BAIDU.COM"
                    ],
                    "whois_server": "whois.markmonitor.com",
                    "dnssec": "unsigned",
                    "registrar_url": "http://markmonitor.com",
                    "registrar_abuse_email": "abusecomplaints@markmonitor.com",
                    "registrar_abuse_phone": "+1.2083895740",
                    "query_time": "2026-05-07 09:18:54"
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/movie-box": {
      "get": {
        "operationId": "movie_box",
        "summary": "实时电影票房",
        "description": "实时获取猫眼当日电影票房 Top 10，包含累计票房、实时票房、票房占比、排片占比、上座率等核心指标。数据来源猫眼专业版，按 60 秒缓存。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 20000,
          "no_key_daily": 1000
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/movie-box",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/movie-box/raw.md",
        "parameters": [
          {
            "name": "X-API-Key",
            "in": "header",
            "required": false,
            "description": "API Key（不传走匿名额度）",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "update_time": "2026-05-06 07:30:00",
                    "total": 10,
                    "list": [
                      {
                        "rank": 1,
                        "name": "消失的人",
                        "release_days": "上映6天",
                        "total_box": "2.66亿",
                        "box_office": 163.25,
                        "box_rate": 35.5,
                        "show_rate": 28.8,
                        "seat_rate": 33
                      },
                      {
                        "rank": 2,
                        "name": "给阿嬷的情书",
                        "release_days": "上映7天",
                        "total_box": "6205.9万",
                        "box_office": 98.85,
                        "box_rate": 21.5,
                        "show_rate": 7.3,
                        "seat_rate": 6.1
                      }
                    ]
                  },
                  "request_id": "mot9..."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/ip-pro": {
      "get": {
        "operationId": "ip_pro",
        "summary": "IP 地址查询（街道级）",
        "description": "IP 地理位置查询，精确到街道级。多数据源自动切换：主源提供街道 + ISP + 风险评分，主源不可用时自动降级到备用源（城市级 + ISP）。响应 data.source 字段标识本次数据档位。",
        "tags": [
          "geo"
        ],
        "x-pricing": {
          "mode": 14,
          "point_cost": 5,
          "qps_limit": 3,
          "daily_free_limit": 30,
          "no_key_daily": 5
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/ip-pro",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/ip-pro/raw.md",
        "parameters": [
          {
            "name": "ip",
            "in": "query",
            "required": false,
            "description": "要查询的 IP 地址（IPv4 或 IPv6）。不传时自动使用调用方自身 IP，适用于\"查我自己\"",
            "schema": {
              "type": "string",
              "example": "110.87.41.14"
            },
            "example": "110.87.41.14"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "Bearer Token。匿名调用时可省略（受每日免费额度限制）；付费方案或超过免费额度时必需",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxxxx"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "ip": "117.25.49.203",
                    "continent": "亚洲",
                    "country": "中国",
                    "country_code": "CN",
                    "province": "福建",
                    "city": "福州",
                    "district": "永泰",
                    "street": "城峰镇",
                    "street_alternatives": [
                      "福建福州永泰城峰镇",
                      "福建福州永泰大洋镇"
                    ],
                    "area_code": "350125",
                    "zip_code": "350000",
                    "city_code": "0591",
                    "latitude": 25.855039,
                    "longitude": 118.94202,
                    "elevation": 29,
                    "time_zone": "Asia/Shanghai",
                    "isp": "电信",
                    "risk": {
                      "level": "无风险",
                      "score": 0,
                      "is_proxy": false,
                      "proxy_probability": 0,
                      "real_rate": 6,
                      "mobile_rate": 4.69
                    },
                    "source": "primary"
                  },
                  "request_id": "abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/exchange-rate": {
      "get": {
        "operationId": "exchange_rate",
        "summary": "实时汇率查询",
        "description": "实时汇率查询，支持 26 种主流货币（CNY/USD/EUR/GBP/JPY 等）一键互转。数据 1 分钟级更新，毫秒响应，免费且无需注册即可调用。\n\n基于 ALAPI 汇率源，覆盖人民币、美元、欧元、英镑、日元、港币、韩元、澳元、加元、新加坡元、瑞士法郎、新台币、泰铢、马来西亚林吉特、俄罗斯卢布、印度卢比、巴西雷亚尔、南非兰特、新西兰元、瑞典/挪威/丹麦克朗、菲律宾比索、印尼盾、越南盾、阿联酋迪拉姆等。\n\n支持「同币种快路径」（from=to 时本地直接返回，0 上游消耗），以及「货币列表查询」action=currencies 子命令（返回支持的全部 26 种货币代码与中文名）。",
        "tags": [
          "finance"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 200,
          "no_key_daily": 50
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/exchange-rate",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/exchange-rate/raw.md",
        "parameters": [
          {
            "name": "money",
            "in": "query",
            "required": false,
            "description": "要转换的金额，必须 > 0；缺省 1",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "源货币代码（ISO 4217 三字母），如 CNY、USD、EUR；缺省 CNY",
            "schema": {
              "type": "string",
              "example": "CNY"
            },
            "example": "CNY"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "目标货币代码（ISO 4217 三字母），如 USD、JPY；缺省 USD",
            "schema": {
              "type": "string",
              "example": "USD"
            },
            "example": "USD"
          },
          {
            "name": "action",
            "in": "query",
            "required": false,
            "description": "传 \"currencies\" 直接返回 26 种支持货币列表（不调上游、不计费）",
            "schema": {
              "type": "string",
              "example": "currencies"
            },
            "example": "currencies"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 50 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "money": 1,
                    "from": "CNY",
                    "from_name": "人民币",
                    "to": "USD",
                    "to_name": "美元",
                    "rate": 0.146405,
                    "result": 0.1464,
                    "update_time": "2026-05-06 13:00:02"
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/wzry": {
      "get": {
        "operationId": "wzry",
        "summary": "王者战力查询",
        "description": "王者荣耀全国战力查询，一接口聚合「英雄列表 + 区服战力分布」2 大功能。\n\n• action=heroes — 返回 130+ 个英雄完整目录（中文名 / ename / 称号 / 头像 URL），优先腾讯官方源 https://pvp.qq.com/web201605/js/herolist.json，失败自动降级 yxsaoma.com\n\n• action=query — 查询某英雄在某区服的全国战力分布数据，返回 90 条左右的省市区战力榜（含同地区相近排名）\n\n支持 4 大区服：\n  · aqq = Android QQ\n  · awx = Android 微信\n  · iqq = iOS QQ\n  · iwx = iOS 微信\n\n查询类型：\n  · all = 完整 heroList（按 level 混合排列，约 90 项）\n  · min = 各级（省/市/区）最低战力 + 相近排名（rank ≤ +100）\n  · max = 各级（省/市/区）最高战力 + 相近排名\n\n上游签名（warzoneSignKey20240515 + MD5 + timestamp）已在网关侧自动处理，调用方无需关心。英雄列表缓存 24 小时，战力数据缓存 1 小时。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 200,
          "no_key_daily": 50
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/wzry",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/wzry/raw.md",
        "parameters": [
          {
            "name": "action",
            "in": "query",
            "required": true,
            "description": "操作类型：heroes=英雄列表 / query=战力查询",
            "schema": {
              "type": "string",
              "example": "query"
            },
            "example": "query"
          },
          {
            "name": "hero",
            "in": "query",
            "required": false,
            "description": "英雄中文名（如「赵云」）；action=query 时与 hero_id 二选一必传",
            "schema": {
              "type": "string",
              "example": "赵云"
            },
            "example": "赵云"
          },
          {
            "name": "hero_id",
            "in": "query",
            "required": false,
            "description": "英雄 ename（如赵云=107）；action=query 时与 hero 二选一必传，hero_id 优先级更高",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "区服代码：aqq=Android QQ / awx=Android 微信 / iqq=iOS QQ / iwx=iOS 微信；action=query 必填",
            "schema": {
              "type": "string",
              "example": "aqq"
            },
            "example": "aqq"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "返回类型：all=完整列表（默认）/ min=最低战力 / max=最高战力",
            "schema": {
              "type": "string",
              "example": "all"
            },
            "example": "all"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 50 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "action": "query",
                    "hero": {
                      "name": "赵云",
                      "title": "苍天翔龙",
                      "ename": "107",
                      "avatar": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/107/107.jpg"
                    },
                    "zone": {
                      "code": "aqq",
                      "system": "Android",
                      "platform": "QQ"
                    },
                    "type": "最低战力",
                    "type_code": "min",
                    "syn_date": "2026-05-06",
                    "rank_data": {
                      "extreme": {
                        "province": {
                          "address": "云南",
                          "level": "province",
                          "rank": 4500,
                          "adcode": "..."
                        },
                        "city": {
                          "address": "海南/三亚市",
                          "level": "city",
                          "rank": 1800,
                          "adcode": "..."
                        },
                        "district": {
                          "address": "北京/朝阳区",
                          "level": "district",
                          "rank": 800,
                          "adcode": "..."
                        }
                      },
                      "similar": {
                        "province": [
                          {
                            "address": "云南",
                            "rank": 4500
                          },
                          {
                            "address": "甘肃",
                            "rank": 4520
                          }
                        ],
                        "city": [],
                        "district": []
                      }
                    }
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/qq": {
      "get": {
        "operationId": "qq",
        "summary": "QQ 信息",
        "description": "通过 QQ 号查询昵称、QQ 邮箱、QQ 空间链接，并生成 4 种尺寸的头像直链 URL（s40/s100/s140/s640）。\n\n• 严格 5-11 位数字校验（防上游字符串截断引起的号码错位）\n• 安全增强：上游返回的 QQ key 必须与请求严格一致，否则视为未查询到\n• 错误兼容：自动识别上游错误响应（_Callback({error:...})）和正常响应（portraitCallBack(...)）\n• 编码兜底：腾讯接口历史输出 GBK 含中文昵称时自动转 UTF-8\n• 多尺寸头像：avatars 对象内含 s40/s100/s140/s640 四种尺寸 URL，前端 `<img src={data.avatars.s640}>` 直接用",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 300,
          "no_key_daily": 50
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/qq",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/qq/raw.md",
        "parameters": [
          {
            "name": "qq",
            "in": "query",
            "required": true,
            "description": "5-11 位 QQ 号码（纯数字）",
            "schema": {
              "type": "string",
              "example": "88888888"
            },
            "example": "88888888"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 50 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "qq": "88888888",
                    "name": "腾讯客服",
                    "mail": "88888888@qq.com",
                    "qzone": "https://user.qzone.qq.com/88888888",
                    "avatars": {
                      "s40": "https://q1.qlogo.cn/g?b=qq&nk=88888888&s=40",
                      "s100": "https://q1.qlogo.cn/g?b=qq&nk=88888888&s=100",
                      "s140": "https://q1.qlogo.cn/g?b=qq&nk=88888888&s=140",
                      "s640": "https://q1.qlogo.cn/g?b=qq&nk=88888888&s=640"
                    },
                    "is_found": true
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/image-enhance": {
      "post": {
        "operationId": "image_enhance",
        "summary": "AI 图片变清晰",
        "description": "基于先进 AI 超分辨率算法的图片高清化服务。输入一张模糊 / 低分辨率图片 URL，约 4 秒内返回 4 倍超分辨率的高清版本（如 300×300 → 1200×1200），支持 JPEG / PNG / WebP / BMP 等主流格式。\n\n【核心能力】\n- 4 倍超分辨率（最大边自动放大约 4 倍）\n- 自动去噪 / 去糊 / 锐化细节\n- 保留原图色彩与构图\n- 适合老照片修复、缩略图放大、低质截图增强、网络图片优化\n- 输出 JPEG 高质量（HD 模式）\n\n【典型场景】\n- 电商：商品低清图自动高清化\n- 自媒体：老照片 / 截图修复用于配图\n- 设计：素材尺寸不够时快速放大\n- 视频缩略图、社交头像高清化\n- 旧扫描件 / 截屏文字增强\n\n【调用示例】\nPOST /api/image-enhance\nContent-Type: application/x-www-form-urlencoded\n\nimg=https://example.com/your-blurry-image.jpg\n\n【⚠️ 输入限制】\n- 必须是 **公网可访问** 的 http/https URL（私有 OSS 链接需先签名）\n- 文件大小 ≤ 10 MB\n- 支持格式：JPEG / PNG / WebP / BMP\n\n【⚠️ 输出说明】\n- 返回的 enhanced_url 为平台代理 URL（自有域名，跨域友好）\n- 实际图片在 6 小时内有效，请尽快下载保存\n- 平均响应 4~6 秒，复杂图片可能需要 10~30 秒\n\n【计费说明】\n登录用户每日 10 次免费体验，超出按点数扣费（详见控制台）。",
        "tags": [
          "ai"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 1,
          "daily_free_limit": 10,
          "no_key_daily": 0
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/image-enhance",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/image-enhance/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "img": {
                    "type": "string",
                    "description": "待增强的图片 URL，必须是公网可访问的 http/https 地址；文件 ≤ 10 MB；JPEG / PNG / WebP / BMP 格式",
                    "example": "https://example.com/blurry-photo.jpg"
                  }
                },
                "required": [
                  "img"
                ]
              },
              "example": {
                "img": "https://example.com/blurry-photo.jpg"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "API Key 鉴权（在控制台申请）",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": false,
            "description": "使用 form-urlencoded 或 JSON body 都可",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "original_url": "https://example.com/blurry-photo.jpg",
                    "enhanced_url": "https://v1.apizero.cn/api/image-enhance?mode=image&u=aHR0cHM6Ly9...&s=a1b2c3d4e5f6",
                    "width": 1200,
                    "height": 1200,
                    "expires_in": 21600
                  },
                  "request_id": "mqx8x12345abc"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/aggregate-translate": {
      "post": {
        "operationId": "aggregate_translate",
        "summary": "聚合翻译",
        "description": "聚合 DeepL / 腾讯 / 有道三大引擎的多语言翻译，可指定单一引擎或自动选优；支持 platform=all 模式同时返回所有引擎结果用于对比。三个 action：translate（翻译，默认）/ engines（引擎列表）/ languages（语言列表）。支持 12 种语言互译。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 50,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/aggregate-translate",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/aggregate-translate/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "description": "translate（默认）/ engines / languages"
                  },
                  "text": {
                    "type": "string",
                    "description": "translate 必填；待翻译文本（≤ 5000 字）",
                    "example": "Hello world"
                  },
                  "source_lang": {
                    "type": "string",
                    "description": "源语言；auto/zh/en/ja/ko/fr/de/es/pt/it/ru/pl/nl，默认 auto；别名 from"
                  },
                  "target_lang": {
                    "type": "string",
                    "description": "目标语言；同上但不允许 auto，默认 en；别名 to"
                  },
                  "engine": {
                    "type": "string",
                    "description": "指定引擎：deepl / tencent / youdao；留空则自动选优"
                  },
                  "platform": {
                    "type": "string",
                    "description": "设为 all 则同时调用所有引擎返回对比结果（alternatives 字段）"
                  }
                },
                "required": [
                  "text"
                ]
              },
              "example": {
                "text": "Hello world"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "result": {
                      "text": "你好，世界",
                      "source_lang": "en",
                      "target_lang": "zh",
                      "engine": "deepl"
                    },
                    "alternatives": null
                  },
                  "request_id": "abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/content-moderation": {
      "post": {
        "operationId": "content_moderation",
        "summary": "内容审核",
        "description": "基于「敏感词库 + 正则规则 + AI 特征评分」三重策略检测文本中的色情 / 政治 / 广告 / 联系方式 / 引流 / 谩骂 6 大类敏感内容。识别变体绕过（谐音、拼音、符号替换），输出 safe/low/medium/high 风险等级，可选自动脱敏。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 500,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/content-moderation",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/content-moderation/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "description": "操作：moderate（默认）/ batch / categories",
                    "example": "moderate"
                  },
                  "text": {
                    "type": "string",
                    "description": "待审核文本（仅 action=moderate 用），1-5000 字",
                    "example": "今天天气不错"
                  },
                  "texts": {
                    "type": "array",
                    "description": "批量文本（仅 action=batch 用），最多 50 条",
                    "example": "[\"文本1\", \"文本2\"]"
                  },
                  "mask": {
                    "type": "boolean",
                    "description": "是否返回脱敏文本，默认 false",
                    "example": "true"
                  }
                },
                "required": [
                  "text"
                ]
              },
              "example": {
                "action": "moderate",
                "text": "今天天气不错",
                "texts": "[\"文本1\", \"文本2\"]",
                "mask": "true"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "is_pass": false,
                    "risk_level": "high",
                    "categories": [
                      "谩骂"
                    ],
                    "details": [
                      {
                        "category": "谩骂",
                        "method": "敏感词",
                        "matches": [
                          "傻逼",
                          "脑残"
                        ],
                        "count": 2
                      }
                    ],
                    "masked_text": "你这个**，**吧",
                    "original_length": 10
                  },
                  "request_id": "abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/dns-check": {
      "get": {
        "operationId": "dns_check",
        "summary": "DNS 劫持检测",
        "description": "通过 4 家公共 DoH（DNS over HTTPS）服务器并发查询同一域名，对比解析结果检测 DNS 是否被运营商劫持、终端 hosts 篡改或遭遇异常 GeoDNS 分流。\n\n服务器列表：\n  • AliDNS（阿里云 - 中国）\n  • DNSPod（腾讯 - 中国）\n  • 360 安全 DNS（中国）\n  • Cloudflare（美国 - 在中国大陆服务器侧可能超时，会被标记为 timeout）\n\n特性：\n  • A + AAAA 记录同时查询（IPv4 / IPv6）\n  • 提取 CNAME 链路（CDN 跳转可见）\n  • TTL 信息汇总（缓存提示）\n  • 智能风险分级算法：safe / safe_with_geodns / suspicious / hijack_likely / unknown\n  • 支持各类输入：domain / https://domain / domain:port / domain/path（自动剥离）",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 2000,
          "no_key_daily": 50
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/dns-check",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/dns-check/raw.md",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "要检测的域名（如 baidu.com，自动剥离 http(s):// 协议头与路径，最长 253 字符）",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-Key",
            "in": "header",
            "required": false,
            "description": "API Key（不传走匿名额度）",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "domain": "taobao.com",
                    "input": "https://www.taobao.com/page",
                    "exec_ms": 312,
                    "summary": {
                      "status_text": "DNS 解析正常",
                      "risk_level": "safe",
                      "risk_score": 95,
                      "explain": "4 家 DoH 全部相互验证通过，未检测到劫持迹象。",
                      "cname_chain": [
                        "www.taobao.com.danuoyi.tbcache.com"
                      ],
                      "success_count": 3,
                      "total_count": 4,
                      "unique_ipv4_count": 8,
                      "unique_ipv6_count": 0
                    },
                    "unique_ipv4": [
                      "59.82.121.163",
                      "59.82.122.130",
                      "59.82.122.140",
                      "59.82.122.165",
                      "59.82.43.234",
                      "59.82.43.238",
                      "59.82.43.239",
                      "59.82.44.240"
                    ],
                    "unique_ipv6": [],
                    "servers": [
                      {
                        "key": "alidns",
                        "name": "AliDNS",
                        "status": "ok",
                        "error": null,
                        "latency_ms": 105,
                        "ipv4": [
                          "59.82.121.163",
                          "59.82.122.130",
                          "..."
                        ],
                        "ipv6": [],
                        "cname_chain": [
                          "www.taobao.com.danuoyi.tbcache.com"
                        ],
                        "ttl_min": 60
                      },
                      {
                        "key": "dnspod",
                        "name": "DNSPod",
                        "status": "ok",
                        "latency_ms": 180,
                        "ipv4": [
                          "59.82.121.163",
                          "..."
                        ]
                      },
                      {
                        "key": "china360",
                        "name": "360",
                        "status": "ok",
                        "latency_ms": 117
                      },
                      {
                        "key": "cloudflare",
                        "name": "Cloudflare",
                        "status": "timeout",
                        "error": "Operation timed out after 6000 ms",
                        "latency_ms": 6000
                      }
                    ]
                  },
                  "request_id": "mota..."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/moji-weather": {
      "get": {
        "operationId": "moji_weather",
        "summary": "墨迹天气",
        "description": "接入墨迹天气 iOS 客户端协议，支持全国 3 万+ 城市实况、历史天气、未来 7 天、24 小时趋势、AQI、9 项生活指数、气象预警及农历，一次调用全量返回。\n\n支持 4 种查询模式：\n- ?city=北京 · 按城市名查实况（自动模糊匹配第一个）\n- ?id=33 · 按 internal_id 直查（跳过搜索，更快）\n- ?op=search&keyword=北京 · 仅搜索城市列表，拿 id\n- ?op=history&city=北京&day=2026-05-12 · 历史天气（支持单日 / 整月）\n\n历史天气范围：\n- 当前月：返回 1 号至昨天的数据\n- 历史月（≤ 上月）：返回完整 30 天\n- 建议查近 40 天以内，过早的月份可能无数据\n\n服务端缓存策略：\n- 实况：5 分钟；历史·当月：30 分钟；历史·过去月：24 小时\n\n注意：数据由墨迹天气提供，仅供参考，不应用于农业、保险、航运、防灾等专业决策场景。\n\n联系站长：apizero.cn",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 30,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/moji-weather",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/moji-weather/raw.md",
        "parameters": [
          {
            "name": "city",
            "in": "query",
            "required": false,
            "description": "城市中文名（支持 \"北京\" / \"大化\" / \"杭州\"）；与 id 二选一",
            "schema": {
              "type": "string",
              "example": "大化"
            },
            "example": "大化"
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "城市 internal_id（可先调 ?op=search 查询）；与 city 二选一",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "op",
            "in": "query",
            "required": false,
            "description": "查询模式：search=城市搜索；history=历史天气；缺省=实况天气",
            "schema": {
              "type": "string",
              "example": "history"
            },
            "example": "history"
          },
          {
            "name": "keyword",
            "in": "query",
            "required": false,
            "description": "【op=search】关键字，支持中文 / 拼音 / 拼音首字母",
            "schema": {
              "type": "string",
              "example": "大化"
            },
            "example": "大化"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "【op=search】返回条数（1-50，默认 20）",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "day",
            "in": "query",
            "required": false,
            "description": "【op=history】查某一天：YYYY-MM-DD / MM-DD（需配 month）/ DD（需配 month）",
            "schema": {
              "type": "string",
              "example": "2026-05-12"
            },
            "example": "2026-05-12"
          },
          {
            "name": "month",
            "in": "query",
            "required": false,
            "description": "【op=history】查整月：YYYYMM。当前月返回 1 号到昨天；历史月返回完整 30 天",
            "schema": {
              "type": "string",
              "example": "202604"
            },
            "example": "202604"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "city": {
                      "id": 1205,
                      "name": "大化瑶族自治县",
                      "parent": "广西壮族自治区",
                      "pinyin": "dahuayaozuzizhixian",
                      "timezone": 8
                    },
                    "condition": {
                      "condition": "多云",
                      "temperature": 32,
                      "real_feel": 36,
                      "humidity": 62,
                      "pressure": 999,
                      "wind_dir": "南风",
                      "wind_level": 3,
                      "uvi": "中等",
                      "sun_rise": 1778706000000,
                      "sun_set": 1778757660000,
                      "lunar_date": "丙午年三月廿八",
                      "tips": "防暑||中午外出请注意防暑降温。"
                    },
                    "aqi": {
                      "value": 29,
                      "level": 1,
                      "description": "优",
                      "updatetime": 1778756400000
                    },
                    "forecast_day": [
                      {
                        "predict_date": 1778601630000,
                        "condition_day": "多云",
                        "condition_night": "多云",
                        "temp_day": 32,
                        "temp_night": 21,
                        "wind_dir_day": "南风",
                        "wind_level_day": 3,
                        "aqi_value": 29,
                        "aqi_desc": "优"
                      }
                    ],
                    "forecast_hour": [
                      {
                        "predict_hour": 1778752800000,
                        "condition": "多云",
                        "temperature": 32,
                        "humidity": 62,
                        "wind_dir": "南风",
                        "wind_level": "3",
                        "aqi_value": 29
                      }
                    ],
                    "index": [
                      {
                        "name": "限行",
                        "status": "不限行"
                      },
                      {
                        "name": "穿衣",
                        "status": "炎热"
                      }
                    ],
                    "summary": "大化瑶族自治县，多云，32℃，南风3级，空气优。",
                    "_cached": false
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/fund": {
      "get": {
        "operationId": "fund",
        "summary": "基金估值跟踪",
        "description": "基金估值跟踪，一接口聚合「基金实时估值 / 指数行情 / 基金详情 / 全部常用指数批量」4 大功能，覆盖国内基金 + A 股核心指数。\n\n基于天天基金、新浪财经、东方财富三路上游，无需注册即可调用：\n\n• action=estimate — 基金实时估值（盘中每分钟更新，含单位净值、估算净值、估算涨跌幅、上次净值日期）\n\n• action=index — 单个指数行情（新浪主、东方财富备双通道容灾，含当前点位、涨跌点、涨跌幅）\n\n• action=info — 基金详细信息（名称、净值、累计净值、近 1 月/3 月/6 月/1 年/3 年/成立来收益、基金类型、风险等级、规模、基金经理、成立日、管理人）\n\n• action=indices — 6 个常用指数批量（上证、深证成指、创业板、上证 50、沪深 300、中证 500）\n\n本接口已修复源码中「新浪通道缺 sh/sz 前缀」的 bug，并优化了 HTML 爬虫的容错。",
        "tags": [
          "finance"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 200,
          "no_key_daily": 50
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/fund",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/fund/raw.md",
        "parameters": [
          {
            "name": "action",
            "in": "query",
            "required": true,
            "description": "操作类型：estimate=基金估值 / index=单个指数 / info=基金详情 / indices=全部常用指数",
            "schema": {
              "type": "string",
              "example": "estimate"
            },
            "example": "estimate"
          },
          {
            "name": "code",
            "in": "query",
            "required": false,
            "description": "基金或指数代码（6 位数字）；当 action 为 estimate/index/info 时必填，indices 时不需要",
            "schema": {
              "type": "string",
              "example": "005827"
            },
            "example": "005827"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 50 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "action": "estimate",
                    "fund_code": "005827",
                    "fund_name": "易方达蓝筹精选混合",
                    "nav_date": "2026-04-30",
                    "net_value": 1.7393,
                    "estimate": 1.727,
                    "change_rate": -0.71,
                    "update_time": "2026-05-06 15:00"
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/email-check": {
      "get": {
        "operationId": "email_check",
        "summary": "邮箱地址检测",
        "description": "综合性邮箱质量评估接口，一次请求完成 6 项检测：\n  ① RFC 5322 格式校验\n  ② 临时/一次性邮箱检测（基于 72,345 条开源域名库，3 个数据源合并去重）\n  ③ MX 记录验证（用 AliDNS DoH，避开 PHP getmxrr 不稳定）\n  ④ 拼写纠正（gmial.com → 提示 gmail.com）\n  ⑤ 服务商识别（QQ邮箱/Gmail/网易/Outlook 等 40+ 主流邮箱）\n  ⑥ 综合风险评分 0-100，附详细原因清单\n\n典型用例：用户注册时的反垃圾邮箱过滤、邮件营销列表清洗、KYC 风控辅助。",
        "tags": [
          "kyc"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 500,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/email-check",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/email-check/raw.md",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "required": true,
            "description": "要检测的邮箱地址，最长 254 字符（RFC 上限）",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-Key",
            "in": "header",
            "required": false,
            "description": "API Key（不传走匿名额度）",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "email": "test@gmial.com",
                    "input": "test@gmial.com",
                    "valid_format": true,
                    "local": "test",
                    "domain": "gmial.com",
                    "is_disposable": false,
                    "disposable_match": null,
                    "is_trusted": false,
                    "provider": null,
                    "has_mx": false,
                    "mx_records": [],
                    "spelling_suggestion": "gmail.com",
                    "risk_score": 5,
                    "risk_level": "invalid",
                    "reasons": [
                      "⚠️ 域名无 MX 记录，无法接收邮件",
                      "⚠️ 域名疑似拼写错误，建议用 gmail.com",
                      "⚠️ 本地部分含测试/系统类关键词"
                    ]
                  },
                  "request_id": "mota..."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/baby-naming": {
      "post": {
        "operationId": "baby_naming",
        "summary": "八字起名",
        "description": "输入父母姓氏与出生时间，基于「八字五行 + 五格数理 + 三才配置」综合评分生成高分名字候选，附寓意标签与全国重名预估。三个 action：naming（智能起名）/ duplicate（重名查询）/ bazi（八字查询）。内置 396 姓氏笔画 + 175 起名字 + 88 姓人口。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 50,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/baby-naming",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/baby-naming/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "description": "naming（默认）/ duplicate / bazi"
                  },
                  "surname": {
                    "type": "string",
                    "description": "naming/duplicate 必填；姓氏（≤ 2 字）",
                    "example": "王"
                  },
                  "mother_surname": {
                    "type": "string",
                    "description": "母姓（仅 naming，可选；填写则生成双姓名）"
                  },
                  "birth_year": {
                    "type": "number",
                    "description": "naming/bazi 必填；2000-2100",
                    "example": "2026"
                  },
                  "birth_month": {
                    "type": "number",
                    "description": "naming/bazi 必填；1-12",
                    "example": "5"
                  },
                  "birth_day": {
                    "type": "number",
                    "description": "naming/bazi 必填；1-31",
                    "example": "10"
                  },
                  "birth_hour": {
                    "type": "number",
                    "description": "出生时辰；0-23，默认 12"
                  },
                  "gender": {
                    "type": "string",
                    "description": "性别偏好：male/female/neutral，默认 neutral"
                  },
                  "count": {
                    "type": "number",
                    "description": "返回名字数量；1-30，默认 10"
                  },
                  "name": {
                    "type": "string",
                    "description": "duplicate 必填；要查的名字（不含姓）",
                    "example": "梓涵"
                  }
                },
                "required": [
                  "surname"
                ]
              },
              "example": {
                "surname": "王",
                "birth_year": "2026",
                "birth_month": "5",
                "birth_day": "10",
                "name": "梓涵"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "bazi": {
                      "八字": "丙午癸巳辛未癸巳",
                      "四柱": [
                        "丙午",
                        "癸巳",
                        "辛未",
                        "癸巳"
                      ],
                      "日主": "金"
                    },
                    "wu_xing_analysis": {
                      "五行分布": {
                        "金": 1,
                        "木": 0,
                        "水": 2,
                        "火": 4,
                        "土": 1
                      },
                      "五行缺失": [
                        "木"
                      ],
                      "建议补充": [
                        "木"
                      ]
                    },
                    "needed_wuxing": [
                      "木"
                    ],
                    "names": [
                      {
                        "name": "王梓森",
                        "surname": "王",
                        "given_name": "梓森",
                        "score": 95,
                        "wuge": {
                          "天格": 5,
                          "人格": 15,
                          "地格": 23,
                          "外格": 16,
                          "总格": 27
                        },
                        "wuge_score": 88,
                        "wuxing_chars": "木+木",
                        "meaning_tags": [
                          "栋梁",
                          "繁盛"
                        ],
                        "duplicate_rate": {
                          "estimated_count": 320,
                          "level": "较低",
                          "description": "..."
                        }
                      }
                    ]
                  },
                  "request_id": "abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/crazy-thursday": {
      "get": {
        "operationId": "crazy_thursday",
        "summary": "疯狂星期四文案",
        "description": "随机返回一段脑洞大开的 KFC「疯狂星期四」文学。内置 52 条精选文案，覆盖情感/搞笑/职场/文艺/学术/古风/悬疑/科幻/鸡汤/日常 10 个分类。支持随机、批量、分类列表与疯四倒计时。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 200,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/crazy-thursday",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/crazy-thursday/raw.md",
        "parameters": [
          {
            "name": "action",
            "in": "query",
            "required": false,
            "description": "操作：random（默认）/ batch / categories / countdown",
            "schema": {
              "type": "string",
              "example": "random"
            },
            "example": "random"
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "分类筛选（仅 random/batch 用）：情感/搞笑/职场/文艺/学术/古风/悬疑/科幻/鸡汤/日常",
            "schema": {
              "type": "string",
              "example": "搞笑"
            },
            "example": "搞笑"
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "批量数量（仅 action=batch 用），1-20，默认 5",
            "schema": {
              "type": "number",
              "example": "5"
            },
            "example": "5"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "text": "我是秦始皇，我打下了万里江山，统一了六国文字和度量衡，但是我没有统一KFC疯狂星期四的价格。V朕50。",
                    "category": "搞笑",
                    "is_thursday": true,
                    "thursday_tip": "今天就是疯狂星期四！冲！"
                  },
                  "request_id": "abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/risk-score": {
      "post": {
        "operationId": "risk_score",
        "summary": "综合风控评分",
        "description": "输入手机号 / IP / 邮箱，秒级输出 0~100 风险分与放行/二次验证/拦截建议，专治注册薅羊毛、批量养号、营销作弊。三维信号：手机号识别虚拟运营商与物联网卡号段，IP 识别代理/VPN/机房与风险分，邮箱识别临时邮箱与 MX 异常。一次调用拿到可直接用于业务决策的结论。",
        "tags": [
          "kyc"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 20,
          "no_key_daily": 0
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/risk-score",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/risk-score/raw.md",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mobile": {
                    "type": "string",
                    "description": "手机号（11 位手机号或 13 位物联网卡号），识别虚拟运营商/物联网卡",
                    "example": "17012345678"
                  },
                  "ip": {
                    "type": "string",
                    "description": "IPv4/IPv6 地址；传 self 检测调用者自身 IP",
                    "example": "47.88.1.1"
                  },
                  "email": {
                    "type": "string",
                    "description": "邮箱地址，识别临时邮箱/MX/本地异常",
                    "example": "abc@guerrillamail.com"
                  },
                  "scene": {
                    "type": "string",
                    "description": "业务场景 register/login/order/coupon，默认 register",
                    "example": "register"
                  }
                }
              },
              "example": {
                "mobile": "17012345678",
                "ip": "47.88.1.1",
                "email": "abc@guerrillamail.com",
                "scene": "register"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "risk_score": 88,
                    "risk_level": "critical",
                    "decision": "reject",
                    "checked": {
                      "mobile": true,
                      "ip": true,
                      "email": true
                    },
                    "hit_rules": [
                      {
                        "code": "MOBILE_MVNO",
                        "weight": 35,
                        "desc": "虚拟运营商号段（170），实名宽松，薅羊毛高发"
                      },
                      {
                        "code": "EMAIL_DISPOSABLE",
                        "weight": 35,
                        "desc": "一次性/临时邮箱域名，典型用于注册套利"
                      },
                      {
                        "code": "IP_DATACENTER",
                        "weight": 30,
                        "desc": "机房/IDC IP（非真实用户网络，脚本批量常用）"
                      }
                    ],
                    "signals": {
                      "mobile": {
                        "checked": true,
                        "input_mask": "170****5678",
                        "valid": true,
                        "number_type": "mvno",
                        "carrier": "虚拟运营商",
                        "risk": "high"
                      },
                      "email": {
                        "checked": true,
                        "email": "abc@guerrillamail.com",
                        "valid_format": true,
                        "is_disposable": true,
                        "is_trusted": false,
                        "has_mx": true,
                        "risk": "high"
                      },
                      "ip": {
                        "checked": true,
                        "ip": "47.88.x.x",
                        "valid": true,
                        "is_private": false,
                        "is_proxy": false,
                        "is_datacenter": true,
                        "province": "",
                        "isp": "阿里云",
                        "risk": "medium"
                      }
                    },
                    "scene": "register"
                  },
                  "request_id": "k9x2p4mabc12"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/gold": {
      "get": {
        "operationId": "gold",
        "summary": "黄金价格查询",
        "description": "实时黄金价格聚合查询，一次返回三大维度的金价数据：\n\n• 国际黄金报价（4 项）：国际金价、国际铂金、国际银价、国际钯金，含最新价 / 涨跌额 / 涨跌幅 / 最高价 / 最低价 / 报价时间\n\n• 国内黄金报价（7 项）：国内金价、国内银价、投资金条、黄金回收价格、铂金回收价格、18K 金回收价格、钯金回收价格\n\n• 十大品牌金店金价（17 家）：内地周大福、周生生、六福珠宝、老凤祥、老庙黄金、中国黄金、周六福、菜百、明牌珠宝、潮宏基等十大品牌的当日黄金 / 铂金 / 金条价格（元/克）\n\n通过参数 type 可只取某一类（all=全部，brand=品牌金店，international=国际，domestic=国内）。\n\n基于 huangjinjiage.cn 数据源，已修复源码 GBK 编码乱码 bug，内建 10 分钟缓存。",
        "tags": [
          "finance"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 200,
          "no_key_daily": 50
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/gold",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/gold/raw.md",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "返回类型：all=全部（默认）/ brand=品牌金店 / international=国际黄金 / domestic=国内黄金",
            "schema": {
              "type": "string",
              "example": "all"
            },
            "example": "all"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 50 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "update_time": "2026-05-06 15:30:00",
                    "source": "huangjinjiage.cn",
                    "type": "all",
                    "international": [
                      {
                        "name": "国际金价",
                        "price": "4647.3",
                        "change": "7.19",
                        "percent": "0.39%",
                        "high": "1828.34",
                        "low": "1815.50",
                        "time": "2026-5-6"
                      },
                      {
                        "name": "国际银价",
                        "price": "75.28",
                        "change": "0.21",
                        "percent": "0.91%",
                        "high": "23.24",
                        "low": "22.78",
                        "time": "2026-5-6"
                      }
                    ],
                    "domestic": [
                      {
                        "name": "国内金价",
                        "price": "1022.9",
                        "change": "2.08",
                        "percent": "0.56%",
                        "high": "375",
                        "low": "372.76",
                        "time": "2026-5-6"
                      }
                    ],
                    "brand": [
                      {
                        "brand": "内地周大福",
                        "gold_price": "1413",
                        "pt_price": "-",
                        "bar_price": "1239",
                        "unit": "元/克",
                        "time": "2026-5-6"
                      }
                    ]
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/hash": {
      "get": {
        "operationId": "hash",
        "summary": "哈希加密计算",
        "description": "哈希加密计算，支持 12 种主流算法，可一次性返回全部，也可指定单个算法。支持 HMAC 签名模式与 hex / base64 双输出编码，毫秒级返回。\n\n• 通用摘要：MD5、SHA-1、SHA-256、SHA-384、SHA-512\n\n• 现代抗碰撞：SHA3-256、SHA3-512、RIPEMD-160、Whirlpool\n\n• 校验和：CRC32、CRC32B、Adler-32\n\n• HMAC 签名：传入 hmac_key 自动切换为 HMAC 模式（用于 API 签名 / 防篡改场景）\n\n• 输出编码：hex（默认，更可读）/ base64（节省 25% 字节，适合 URL 传输）\n\n纯本地计算，零外部上游依赖，毫秒级响应。HMAC 密钥仅参与计算，不写日志、不缓存、不回显。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 20,
          "daily_free_limit": 1000,
          "no_key_daily": 200
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/hash",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/hash/raw.md",
        "parameters": [
          {
            "name": "text",
            "in": "query",
            "required": true,
            "description": "要计算哈希的文本，UTF-8 编码，最长 10000 字节（中文 1 字 = 3 字节，约支持 3300 个中文）",
            "schema": {
              "type": "string",
              "example": "hello"
            },
            "example": "hello"
          },
          {
            "name": "algorithm",
            "in": "query",
            "required": false,
            "description": "算法标识，默认 all。支持：all / md5 / sha1 / sha256 / sha384 / sha512 / sha3-256 / sha3-512 / ripemd160 / whirlpool / crc32 / crc32b / adler32（自动兼容无连字符写法 sha3256）",
            "schema": {
              "type": "string",
              "example": "all"
            },
            "example": "all"
          },
          {
            "name": "encoding",
            "in": "query",
            "required": false,
            "description": "输出编码：hex（默认，更可读）/ base64（节省 25% 字节）",
            "schema": {
              "type": "string",
              "example": "hex"
            },
            "example": "hex"
          },
          {
            "name": "hmac_key",
            "in": "query",
            "required": false,
            "description": "HMAC 密钥，传入则自动切换为 HMAC 模式生成签名；密钥仅参与计算，不写入任何日志或缓存",
            "schema": {
              "type": "string",
              "example": "mysecret"
            },
            "example": "mysecret"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 200 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "text_length": 5,
                    "text_bytes": 5,
                    "encoding": "hex",
                    "hmac": false,
                    "hash_count": 3,
                    "hashes": {
                      "md5": {
                        "algorithm": "MD5",
                        "bits": 128,
                        "value": "5d41402abc4b2a76b9719d911017c592",
                        "length": 32
                      },
                      "sha1": {
                        "algorithm": "SHA-1",
                        "bits": 160,
                        "value": "aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d",
                        "length": 40
                      },
                      "sha256": {
                        "algorithm": "SHA-256",
                        "bits": 256,
                        "value": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
                        "length": 64
                      }
                    }
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/nine-grid-cutter": {
      "post": {
        "operationId": "nine_grid_cutter",
        "summary": "九宫格切图",
        "description": "上传一张图片（multipart 文件 / base64 / URL 三选一），自动居中裁切为正方形后均分为 N×N 宫格小图，按朋友圈发图顺序返回（左到右、上到下编号 1..N²）。支持 2×2 / 3×3 / 4×4，可设置切片间留白，输出 base64 数组或直接下载 zip。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 50,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/nine-grid-cutter",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/nine-grid-cutter/raw.md",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "description": "图片文件（multipart 上传，三选一之一），支持 jpg/png/webp/gif"
                  },
                  "image_base64": {
                    "type": "string",
                    "description": "图片 base64（dataURL 或纯 base64，三选一）"
                  },
                  "image_url": {
                    "type": "string",
                    "description": "公网图片 URL（http/https，三选一）"
                  },
                  "grid": {
                    "type": "number",
                    "description": "宫格数：2 / 3 / 4，默认 3",
                    "example": "3"
                  },
                  "gap": {
                    "type": "number",
                    "description": "切片间留白像素 0-20，默认 0",
                    "example": "0"
                  },
                  "output": {
                    "type": "string",
                    "description": "输出格式：base64（默认，JSON）/ zip（直接返回 application/zip）",
                    "example": "base64"
                  }
                }
              },
              "example": {
                "grid": "3",
                "gap": "0",
                "output": "base64"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "grid": "3x3",
                    "total": 9,
                    "gap": 0,
                    "original_size": "1080x1920",
                    "square_side": 1080,
                    "cell_size": "360x360",
                    "source": "multipart",
                    "pieces": [
                      {
                        "index": 1,
                        "size": "360x360",
                        "base64": "iVBORw0K...",
                        "data_url": "data:image/png;base64,iVBORw0K..."
                      },
                      {
                        "index": 2,
                        "size": "360x360",
                        "base64": "...",
                        "data_url": "..."
                      }
                    ]
                  },
                  "request_id": "abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/address-parse": {
      "post": {
        "operationId": "address_parse",
        "summary": "中文地址解析",
        "description": "一行 API 从中文地址字符串中提取「省市区街道 + 详细地址 + 姓名 + 手机号 + 邮编」。\n\n适用场景：电商收货地址自动拆分、快递下单页智能填充、CRM 客户资料清洗、办公地址结构化入库。\n\n特点：纯本地正则算法，无任何上游依赖，毫秒级响应；支持 34 个省级行政区及其简称识别（如「北京」→「北京市」、「新疆」→「新疆维吾尔自治区」）；支持快递场景下「张三 138xxxxxxxx 上海市浦东新区xx路xx号 200000」这类混合输入的自动拆分。",
        "tags": [
          "geo"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 20,
          "daily_free_limit": 1000,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/address-parse",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/address-parse/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "中文地址字符串。支持姓名/手机/邮编混合输入，长度 ≤ 500",
                    "example": "张三 13812345678 上海市浦东新区张江镇科苑路88号 201203"
                  }
                },
                "required": [
                  "address"
                ]
              },
              "example": {
                "address": "张三 13812345678 上海市浦东新区张江镇科苑路88号 201203"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "Bearer sk_live_xxx（可选；未登录匿名调用受更严格的限流）",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "original": "张三 138****1234 上海市浦东新区张江镇科苑路88号 201203",
                    "province": "上海市",
                    "city": "上海市",
                    "district": "浦东新区",
                    "street": "张江镇",
                    "detail": "科苑路88号",
                    "zipcode": "201203",
                    "phone": "138****1234",
                    "name": "张三"
                  },
                  "request_id": "kx8n9q2a1b3c4d5e6f7g"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/bencao": {
      "get": {
        "operationId": "bencao",
        "summary": "本草纲目·中药查询",
        "description": "传统中药材知识查询接口，覆盖《本草纲目》及常见中药材数据。输入药材名称（如「人参」「丁香」「甘草」「枸杞」），返回该药材的释名、气味、主治、附方等详细记载。\n\n【典型场景】\n- 中医养生 / 食疗 App 的药材百科\n- 中药知识科普类小程序\n- AI 中医问诊辅助参考\n- 古籍数字化项目\n- 国学 / 中医文化教学\n\n【调用示例】\nGET /api/bencao?msg=人参\nGET /api/bencao?msg=丁香\nGET /api/bencao?msg=甘草\n\n【模糊匹配】\n- 精确名称查得到 → 直接返回详情（matched=exact）\n- 找不到时返回 4040 + suggestions 数组（最多 10 个相关建议）\n- 比如查「人参枸杞」会建议「人参、枸杞」等单味药\n\n【⚠️ 数据来源说明】\n本接口数据整理自《本草纲目》及网络公开整理资料，仅供学习参考；中医药疗用请遵医嘱。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 10000,
          "no_key_daily": 1000
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/bencao",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/bencao/raw.md",
        "parameters": [
          {
            "name": "msg",
            "in": "query",
            "required": true,
            "description": "药品名称（中文），如：人参、丁香、甘草、当归、枸杞。最长 50 个字符。",
            "schema": {
              "type": "string",
              "example": "人参"
            },
            "example": "人参"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "可选 API Key 鉴权。未登录每天 30 次免费体验",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "name": "人参",
                    "detail": "「释名」黄参、神草、土精、血参...\n「气味」（根）甘、温、无毒...\n「主治」补五脏，安精神...",
                    "matched": "exact"
                  },
                  "request_id": "mqx8x12345abc"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/hitokoto": {
      "get": {
        "operationId": "hitokoto",
        "summary": "一言 · 经典语录",
        "description": "从 370+ 条经典语录库（动漫/漫画/游戏/文学/影视/诗词/哲学/网络等 12 类）随机返回一条，含原文、出处、作者、分类、字数。支持按分类与长度筛选。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 20,
          "daily_free_limit": 500,
          "no_key_daily": 200
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/hitokoto",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/hitokoto/raw.md",
        "parameters": [
          {
            "name": "c",
            "in": "query",
            "required": false,
            "description": "分类单字母 a-l（不传则全类别随机）",
            "schema": {
              "type": "string",
              "example": "i"
            },
            "example": "i"
          },
          {
            "name": "min_length",
            "in": "query",
            "required": false,
            "description": "最小字符数",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "max_length",
            "in": "query",
            "required": false,
            "description": "最大字符数",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "id": 1234,
                    "hitokoto": "落霞与孤鹜齐飞，秋水共长天一色。",
                    "type": "i",
                    "type_name": "诗词",
                    "from": "滕王阁序",
                    "from_who": "王勃",
                    "length": 16,
                    "total_pool": 370
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/tts": {
      "post": {
        "operationId": "tts",
        "summary": "TTS 语音合成",
        "description": "对接 alapi.cn 文本转语音（TTS）服务，输入文本返回 base64 编码的 MP3 音频。\n\n• **5 种音色**：女声主播 / 男声主播 / 男声说唱 / 女声四川话 / 男声低沉\n• **500 字以内**：单次请求最多 500 字符（中英文均按 1 字符计）\n• **MP3 格式**：上游返回 audio/mpeg 编码，前端可直接 `<audio src=\"data:audio/mpeg;base64,...\">` 播放\n• **便利字段**：返回 audio_data_url（拼好的 data URL）+ audio_size_bytes（解码后字节数）+ audio_format / audio_mime\n• **典型场景**：新闻播报 / 短视频配音 / 有声书 / 语音通知 / 客服 IVR\n• **不缓存**：500 字音频约 1MB，重复合成概率低，避免 Redis 内存膨胀",
        "tags": [
          "ai"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 3,
          "daily_free_limit": 30,
          "no_key_daily": 10
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/tts",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/tts/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "待合成文本，1-500 字符（中英文均按 1 字符计）",
                    "example": "欢迎使用语音合成服务"
                  },
                  "voice_type": {
                    "type": "string",
                    "description": "音色代码。可选：female_zhubo（女声主播） / male_zhubo（男声主播） / male_rap（男声说唱） / female_sichuan（女声四川话） / male_db（男声低沉）。默认 female_zhubo",
                    "example": "female_zhubo"
                  }
                },
                "required": [
                  "text"
                ]
              },
              "example": {
                "text": "欢迎使用语音合成服务",
                "voice_type": "female_zhubo"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 10 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": false,
            "description": "支持 application/x-www-form-urlencoded 或 application/json",
            "schema": {
              "type": "string",
              "example": "application/json"
            },
            "example": "application/json"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "text": "欢迎使用语音合成服务",
                    "text_length": 10,
                    "voice_type": "female_zhubo",
                    "voice_name": "女声主播",
                    "voice_desc": "标准普通话女声，主播风格，适合资讯播报",
                    "audio": "SUQzAwAAAAAAAAAAAAAAA...（约 17000 字符 base64）",
                    "audio_format": "mp3",
                    "audio_mime": "audio/mpeg",
                    "audio_size_bytes": 12750,
                    "audio_data_url": "data:audio/mpeg;base64,SUQzAwAAAAA..."
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/wallpaper": {
      "get": {
        "operationId": "wallpaper",
        "summary": "随机壁纸",
        "description": "对接 360 公开壁纸库，16 个分类 × 7 种分辨率（含 1920×1080 原图）随机壁纸。\n\n• **16 个分类**：美女 / 风景 / 游戏 / 影视 / 时尚 / 明星 / 汽车 / 萌宠 / 清新 / 体育 / 萌娃 / 军事 / 动漫 / 日历 / 爱情 / 格言\n• **7 种分辨率**：1920×1080（原图）/ 1600×900 / 1440×900 / 1366×768 / 1280×800 / 1280×1024 / 1024×768\n• **修复源码 BUG**：源码注释默认 1920×1080 但代码默认 1600×900 且 resMap 缺 1920×1080 → 现已用上游 url 字段返回真正 1920×1080 原图\n• **修复源码 BUG**：源码 tag 字段返回内部标记（如 `_category_海洋天堂_`）不可读 → 现已拆分 utag 输出为 tags 数组（如 `['海洋天堂','日出东方','松树','海岛']`）\n• **修复源码 BUG**：上游图片 URL 是 http:// → 现已强制改写为 https://，避免 HTTPS 站点混合内容警告\n• **缓存优化**：上游响应按 (cid, start_bucket) 缓存 1h，shuffle 在本地做，**节省 80% 上游请求同时保证随机性**\n• **典型场景**：登录页背景 / 桌面壁纸应用 / 文章封面图 / 小程序首页轮播",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 20,
          "daily_free_limit": 1000,
          "no_key_daily": 200
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/wallpaper",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/wallpaper/raw.md",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "分类中文名，可选：美女 / 风景 / 游戏 / 影视 / 时尚 / 明星 / 汽车 / 萌宠 / 清新 / 体育 / 萌娃 / 军事 / 动漫 / 日历 / 爱情 / 格言。默认「风景」",
            "schema": {
              "type": "string",
              "example": "风景"
            },
            "example": "风景"
          },
          {
            "name": "resolution",
            "in": "query",
            "required": false,
            "description": "分辨率，可选：1920x1080（原图）/ 1600x900 / 1440x900 / 1366x768 / 1280x800 / 1280x1024 / 1024x768。默认 1920x1080",
            "schema": {
              "type": "string",
              "example": "1920x1080"
            },
            "example": "1920x1080"
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "返回数量，1-20。默认 1",
            "schema": {
              "type": "number",
              "example": "5"
            },
            "example": "5"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "category": "风景",
                    "category_id": 9,
                    "resolution": "1920x1080",
                    "count": 2,
                    "requested": 2,
                    "images": [
                      {
                        "url": "https://p2.qhimg.com/bdr/__85/t019ca75cd449be50c1.jpg",
                        "id": 2054209,
                        "resolution": "1920x1080",
                        "tags": [
                          "海洋天堂",
                          "日出东方",
                          "松树",
                          "海岛"
                        ],
                        "tag_text": "海洋天堂 日出东方 松树 海岛"
                      },
                      {
                        "url": "https://p2.qhimg.com/bdr/__85/t021abc.jpg",
                        "id": 2054210,
                        "resolution": "1920x1080",
                        "tags": [
                          "雪山",
                          "日出",
                          "云海"
                        ],
                        "tag_text": "雪山 日出 云海"
                      }
                    ]
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/invoice": {
      "post": {
        "operationId": "invoice",
        "summary": "增值税发票识别",
        "description": "增值税发票 OCR 识别，支持增值税专用发票、普通发票、电子普票，输出 22+ 个结构化字段。\n\n• 双输入模式：\n  - input_type=url：传入公网可访问的图片 URL（http/https）\n  - input_type=base64：传入 base64 编码字符串（≤6MB，自动剥离 data:image/...;base64, 前缀）\n\n• 完整识别字段：\n  - 发票基本：发票名称、代码、号码、开票日期、校验码、机器编号\n  - 金额：价税合计、税额、不含税金额、大写金额\n  - 购销方：名称、纳税人识别号、地址电话、开户行账号\n  - 经办人：收款人、复核人、开票人\n  - 商品明细：items 数组，含品名/规格/数量/单价/金额/税率/税额\n  - 备注与盖章信息\n\n• OCR 结果缓存 1 小时（同图同结果），减少重复调用消耗。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 30,
          "no_key_daily": 5
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/invoice",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/invoice/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "input_type": {
                    "type": "string",
                    "description": "输入类型：url=图片URL / base64=图片base64编码",
                    "example": "url"
                  },
                  "input_data": {
                    "type": "string",
                    "description": "发票图片数据。input_type=url 时为 http/https 完整 URL；input_type=base64 时为 base64 字符串（最大 6MB，可选 data:image/jpeg;base64, 前缀）",
                    "example": "https://example.com/invoice.jpg"
                  }
                },
                "required": [
                  "input_type",
                  "input_data"
                ]
              },
              "example": {
                "input_type": "url",
                "input_data": "https://example.com/invoice.jpg"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 5 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "POST 请求体类型，固定 application/x-www-form-urlencoded；如使用 base64 模式建议 POST",
            "schema": {
              "type": "string",
              "example": "application/x-www-form-urlencoded"
            },
            "example": "application/x-www-form-urlencoded"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "invoice_name": "增值税电子普通发票",
                    "invoice_code": "011002000311",
                    "invoice_no": "12345678",
                    "invoice_date": "2024-08-15",
                    "check_code": "12345 67890 12345 67890",
                    "machine_num": "499099111111",
                    "total_price": "94.34",
                    "total_tax": "5.66",
                    "total_price_and_tax": "100.00",
                    "big_total_price_and_tax": "壹佰圆整",
                    "buyer": {
                      "name": "某某科技有限公司",
                      "taxpayer_no": "91110000XXXXXXXXXX",
                      "address_phone": "北京市XX区XX路XX号 010-12345678",
                      "account": "中国银行 6217001234567890"
                    },
                    "seller": {
                      "name": "某某商贸有限公司",
                      "taxpayer_no": "91310000YYYYYYYYYY",
                      "address_phone": "上海市XX区XX路XX号 021-87654321",
                      "account": "工商银行 6222001234567890"
                    },
                    "payee": "张三",
                    "reviewer": "李四",
                    "drawer": "王五",
                    "remarks": "",
                    "items": [
                      {
                        "name": "*技术服务*软件开发服务",
                        "specification": "",
                        "unit": "",
                        "quantity": "",
                        "unit_price": "",
                        "amount": "94.34",
                        "tax_rate": "6%",
                        "tax": "5.66"
                      }
                    ]
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/translate": {
      "post": {
        "operationId": "translate",
        "summary": "文本翻译",
        "description": "对接腾讯云 TMT（机器翻译）通用版，支持 18 种语言互译，自动检测源语言。\n\n• **18 种语言**：中文 / 繁体中文 / 英文 / 日语 / 韩语 / 法语 / 西语 / 意语 / 德语 / 土语 / 俄语 / 葡语 / 越南语 / 印尼语 / 泰语 / 马来语 / 阿拉伯语 / 印地语\n• **多种参数形式**：from/to 同时支持中文名（「英文」）和语言代码（「en」），auto / 自动检测 / 自动 / 空字符串均视为自动\n• **检测增强**：auto 模式下额外返回 detected_language（如 fr）+ detected_name（如 法语），便于前端展示「检测到法语」\n• **缓存命中提速**：相同文本+方向 24h 缓存（按 sha256 哈希），命中只需 ~150ms 不计入上游配额\n• **错误码细分**：上游 InvalidParameter / TextTooLong / 不支持语种 等映射为 4000 客户端错误，便于前端区分提示",
        "tags": [
          "ai"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 50,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/translate",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/translate/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "待翻译文本，1-5000 字符（中英文均按 1 字符计）",
                    "example": "Hello, how are you?"
                  },
                  "from": {
                    "type": "string",
                    "description": "源语言。中文名（如「英文」）或代码（如「en」），auto / 自动检测 / 空字符串均视为自动检测。默认 auto",
                    "example": "auto"
                  },
                  "to": {
                    "type": "string",
                    "description": "目标语言。中文名或代码，必须明确指定（不能是 auto）。默认 en（英文）",
                    "example": "zh"
                  }
                },
                "required": [
                  "text"
                ]
              },
              "example": {
                "text": "Hello, how are you?",
                "from": "auto",
                "to": "zh"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 20 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": false,
            "description": "支持 application/x-www-form-urlencoded 或 application/json",
            "schema": {
              "type": "string",
              "example": "application/json"
            },
            "example": "application/json"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "source_text": "Hello, how are you?",
                    "target_text": "你好,你好吗?",
                    "from": "auto",
                    "to": "zh",
                    "from_name": "自动检测",
                    "to_name": "中文",
                    "detected_language": "en",
                    "detected_name": "英文",
                    "char_count": 19
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/cdn-ips": {
      "get": {
        "operationId": "cdn_ips",
        "summary": "CDN 优选 IP",
        "description": "获取主流 CDN 服务商的官方公网 IP 段（CIDR）列表。当前支持 CloudFlare、AWS CloudFront、Gcore 三家，覆盖 IPv4 与 IPv6。常用于 CDN 优选、反向代理、流量分流、防火墙白名单等运维场景。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 2000,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/cdn-ips",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/cdn-ips/raw.md",
        "parameters": [
          {
            "name": "server",
            "in": "query",
            "required": true,
            "description": "CDN 服务商：cloudflare / cloudfront / gcore（兼容 1/2/3 数字）",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": true,
            "description": "IP 协议版本：v4（IPv4）/ v6（IPv6）",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-Key",
            "in": "header",
            "required": false,
            "description": "API Key（不传走匿名额度）",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "server": "CloudFlare",
                    "type": "v4",
                    "count": 15,
                    "ips": [
                      "173.245.48.0/20",
                      "103.21.244.0/22",
                      "103.22.200.0/22",
                      "...（共 15 条）"
                    ],
                    "update_time": "2026-05-06 07:55:00"
                  },
                  "request_id": "mota..."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/company-search": {
      "get": {
        "operationId": "company_search",
        "summary": "企业工商信息查询",
        "description": "通过企业名称关键词查询工商信息，返回前 5 条最匹配结果（按上游评分排序）。覆盖企业全称、法人、注册资本、统一社会信用代码、经营范围、注册地、联系方式等核心字段。数据来自天眼查权威工商数据库，6 小时缓存。",
        "tags": [
          "kyc"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 500,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/company-search",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/company-search/raw.md",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": true,
            "description": "企业名称关键词，2~50 个字符（如「腾讯科技」「阿里巴巴」）",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-Key",
            "in": "header",
            "required": false,
            "description": "API Key（不传走匿名额度）",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "keyword": "腾讯科技",
                    "total": 20,
                    "list": [
                      {
                        "id": 1466562059,
                        "name": "广州腾讯科技有限公司",
                        "logo": "https://img5.tianyancha.com/logo/lll/...",
                        "english_name": "Guangzhou Tencent Technology Co., Ltd.",
                        "history_names": "",
                        "legal_person": "邬红波",
                        "establish_time": "2014-12-31",
                        "reg_capital": "7000万人民币",
                        "reg_status": "存续",
                        "credit_code": "91440101327598294H",
                        "business_scope": "电子;通信与自动控制技术研究...",
                        "reg_location": "广州市海珠区新港中路397号...",
                        "phone": "020-81167888",
                        "email": "service@tencent.com",
                        "category": "研究和试验发展",
                        "city": "广州市",
                        "district": "海珠区",
                        "company_org_type": "有限责任公司",
                        "match_field": "股东信息"
                      }
                    ]
                  },
                  "request_id": "mota..."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/dns-query": {
      "get": {
        "operationId": "dns_query",
        "summary": "DNS 记录查询",
        "description": "查询域名的各类 DNS 记录，支持 A / AAAA / NS / CNAME / MX / TXT / CAA / SOA 共 8 种标准类型，以及 ANY（一次返回所有类型）。\n\n✨ 特色：\n  • 不依赖第三方工具站，完全自建 — 3 家国内 DoH 并发（AliDNS / DNSPod / 360）\n  • 所有记录结构化解析：MX 拆 priority/exchange、CAA 拆 flags/tag/value、SOA 拆 mname/serial/...\n  • 多家结果合并去重 + 各记录标注来自哪些 DoH（sources 字段）\n  • 兼容数字 qtype（如 1=A / 15=MX / 257=CAA），不破坏旧调用方式\n  • ANY 模式：单次请求拿到域名的全部 DNS 配置，免去多次查询",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 500,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/dns-query",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/dns-query/raw.md",
        "parameters": [
          {
            "name": "host",
            "in": "query",
            "required": true,
            "description": "域名（自动剥离 http(s)://、路径、端口）",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "记录类型，默认 A。支持名称（A/AAAA/NS/CNAME/MX/TXT/CAA/SOA/ANY）或数字编码（1/2/5/6/15/16/28/257）",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-Key",
            "in": "header",
            "required": false,
            "description": "API Key（不传走匿名额度）",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "host": "baidu.com",
                    "input": "baidu.com",
                    "type": "MX",
                    "type_code": 15,
                    "total": 2,
                    "exec_ms": 234,
                    "sources": [
                      "alidns",
                      "china360",
                      "dnspod"
                    ],
                    "notes": null,
                    "records": [
                      {
                        "type": "MX",
                        "type_code": 15,
                        "name": "baidu.com",
                        "ttl": 600,
                        "data": "10 mx.maillb.baidu.com.",
                        "parsed": {
                          "priority": 10,
                          "exchange": "mx.maillb.baidu.com"
                        },
                        "sources": [
                          "alidns",
                          "china360",
                          "dnspod"
                        ]
                      },
                      {
                        "type": "MX",
                        "type_code": 15,
                        "name": "baidu.com",
                        "ttl": 600,
                        "data": "20 mx.baidu.com.",
                        "parsed": {
                          "priority": 20,
                          "exchange": "mx.baidu.com"
                        },
                        "sources": [
                          "alidns",
                          "china360",
                          "dnspod"
                        ]
                      }
                    ]
                  },
                  "request_id": "mota..."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/ocr-text": {
      "post": {
        "operationId": "ocr_text",
        "summary": "OCR 文字识别",
        "description": "通用 OCR 文字识别，从图片中提取任意文字内容（中文/英文/数字/符号/手写体等），返回逐行文本列表 + 完整拼接文本。\n\n• 双输入模式：\n  - input_type=url：传入公网可访问的图片 URL（http/https）\n  - input_type=base64：传入 base64 编码字符串（≤6MB，自动剥离 data:image/...;base64, 前缀）\n\n• 三路输出：\n  - text_list：按原图顺序的逐行文本数组\n  - full_text：用换行符 \\n 拼接的完整文本字符串\n  - text_count：识别到的文本行数\n\n• 适用场景：截图转文字、表格识别、身份证/名片文字提取、字幕识别、笔记 OCR 等通用场景。专用发票识别请用 /api/invoice。\n\n• OCR 结果缓存 1 小时（同图同结果），重复调用不消耗上游配额。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 30,
          "no_key_daily": 5
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/ocr-text",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/ocr-text/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "input_type": {
                    "type": "string",
                    "description": "输入类型：url=图片URL / base64=图片base64编码",
                    "example": "url"
                  },
                  "input_data": {
                    "type": "string",
                    "description": "图片数据。input_type=url 时为 http/https 完整 URL；input_type=base64 时为 base64 字符串（最大 6MB，可选 data:image/jpeg;base64, 前缀）",
                    "example": "https://dummyimage.com/400x100/000/fff.png&text=Hello+World"
                  }
                },
                "required": [
                  "input_type",
                  "input_data"
                ]
              },
              "example": {
                "input_type": "url",
                "input_data": "https://dummyimage.com/400x100/000/fff.png&text=Hello+World"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 5 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "POST 请求体类型，固定 application/x-www-form-urlencoded",
            "schema": {
              "type": "string",
              "example": "application/x-www-form-urlencoded"
            },
            "example": "application/x-www-form-urlencoded"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "input_type": "url",
                    "text_count": 3,
                    "text_list": [
                      "商品名称：无线蓝牙耳机",
                      "单价：¥299.00",
                      "数量：2"
                    ],
                    "full_text": "商品名称：无线蓝牙耳机\n单价：¥299.00\n数量：2"
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/mobile": {
      "get": {
        "operationId": "mobile",
        "summary": "手机号归属地",
        "description": "通过 11 位中国大陆手机号查询归属省份/城市与运营商，支持移动/联通/电信主流号段及虚拟运营商号段（170/171/174 等）。\n\n• 严格 11 位手机号校验：`^1[3-9]\\d{9}$`，非法号码直接返回 4000\n• 双形态响应：查询成功 → is_found=true 含 province/carrier；号段未收录 → is_found=false 字段为空（非错误，前端可直接 if 判断）\n• 缓存策略：成功结果 7 天（号段分配静态稳定）；未查询到 1 小时（避免长期误判新放号段）\n• 隐私保护：错误日志中手机号自动脱敏（138****0000）",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 300,
          "no_key_daily": 50
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/mobile",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/mobile/raw.md",
        "parameters": [
          {
            "name": "mobile",
            "in": "query",
            "required": true,
            "description": "11 位中国大陆手机号（必须 1[3-9] 开头）",
            "schema": {
              "type": "string",
              "example": "13800138000"
            },
            "example": "13800138000"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 50 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "mobile": "13800138000",
                    "province": "北京",
                    "carrier": "中国移动",
                    "is_found": true
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/icp": {
      "get": {
        "operationId": "icp",
        "summary": "ICP 备案查询",
        "description": "通过域名查询工信部 ICP 备案信息，返回备案号、网站名称、主办单位、单位性质（企业/个人/事业单位等）和审核通过时间。\n\n• 自动域名清洗：自动剥离 https?:// 协议、/path 路径、:port 端口、www. 前缀，无论传入 https://www.baidu.com/abc 还是 baidu.com 都正确识别\n\n• 已备案 → is_filed=true，返回完整 6 字段；未备案/境外/已注销 → is_filed=false，返回空字段（非错误，便于前端 if 判断）\n\n• 缓存策略：已备案 24 小时缓存（变更频率低），未备案 1 小时缓存（避免新备案被长期误判）",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/icp",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/icp/raw.md",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "要查询的域名，支持完整 URL 输入（自动剥离协议/路径/端口/www）。例如：baidu.com、https://www.baidu.com/abc、m.baidu.com:8080/foo 都等价",
            "schema": {
              "type": "string",
              "example": "baidu.com"
            },
            "example": "baidu.com"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 30 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "domain": "baidu.com",
                    "is_filed": true,
                    "icp_code": "京ICP证030173号-1",
                    "site_name": "百度一下，你就知道",
                    "company_name": "北京百度网讯科技有限公司",
                    "company_type": "企业",
                    "audit_time": "2019-05-16 16:06:21"
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/traffic-weather-alert": {
      "get": {
        "operationId": "traffic_weather_alert",
        "summary": "限行天气联动",
        "description": "输入国内城市拼音（兼容中文），返回当天的限行尾号。如遇暴雨/台风等恶劣天气，附加居家办公建议。覆盖北京、天津、成都、杭州、贵阳、长春 6 个限行城市，天气支持所有国内主要城市。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 3,
          "daily_free_limit": 100,
          "no_key_daily": 50
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/traffic-weather-alert",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/traffic-weather-alert/raw.md",
        "parameters": [
          {
            "name": "city",
            "in": "query",
            "required": true,
            "description": "城市拼音（如 beijing/chengdu/hangzhou），兼容中文（如 北京/成都）",
            "schema": {
              "type": "string",
              "example": "beijing"
            },
            "example": "beijing"
          },
          {
            "name": "action",
            "in": "query",
            "required": false,
            "description": "操作：restriction（默认）/ cities（支持限行的城市列表）",
            "schema": {
              "type": "string",
              "example": "restriction"
            },
            "example": "restriction"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "city": "beijing",
                    "city_cn": "北京",
                    "date": "2026-05-11",
                    "weekday": "周一",
                    "restricted_numbers": "5,0",
                    "restriction_active": true,
                    "weather": {
                      "weather": "晴",
                      "temperature": "26°C",
                      "is_severe": false,
                      "severe_type": null
                    },
                    "work_from_home_advisory": null,
                    "message": "今日北京（周一）限行尾号为 5,0"
                  },
                  "request_id": "abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/doubao-image": {
      "post": {
        "operationId": "doubao_image",
        "summary": "豆包图片生成",
        "description": "基于字节跳动豆包 Seedream 3.0 大模型的高质量文生图服务，支持中英文混合提示词，平均 3~4 秒出图。\n\n【核心能力】\n- 影视级画质：擅长摄影、插画、电影感构图与中文场景理解\n- 多种尺寸：方形 1024×1024、宽屏 1792×1024、竖屏 1024×1792 等 6 种主流分辨率\n- 中文友好：原生理解中文语意，无需翻译为英文也能精准生成\n\n【适用场景】\n- 内容创作：插图、海报、Banner、社交媒体图片\n- 营销素材：广告图、商品概念图、宣传背景\n- 设计辅助：灵感参考、构图草稿、风格化展示\n- 应用集成：聊天机器人配图、自媒体配图、AI 应用接入\n\n【提示词建议】\n- 推荐结构：主体 + 风格 + 构图 + 光线 + 氛围\n- 示例：「一只赛博朋克猫在雨夜的霓虹街头，低角度，电影感，Wong Kar-Wai 风格」\n- 越具体描述效果越好，可以指定材质、镜头、色调、画家风格等\n- 建议 prompt 长度控制在 50~300 字符之间\n\n【⚠️ 重要提示】\n返回的图片 URL 是字节云 TOS 临时直链，**24 小时后失效**。请务必在有效期内：\n- 下载保存到本地\n- 或转存到自己的对象存储（阿里 OSS / 腾讯 COS 等）\n- 不要长期引用此直链\n\n【计费说明】\n- 方形 1024×1024：约 4096 tokens\n- 宽屏 1792×1024 / 1080p：约 7168 tokens\n- 实际点数扣费请参考下方定价",
        "tags": [
          "ai"
        ],
        "x-pricing": {
          "mode": 10,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 20,
          "no_key_daily": 1
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/doubao-image",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/doubao-image/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "prompt": {
                    "type": "string",
                    "description": "图片描述文本，支持中英文混合。建议 50~300 字符，越具体效果越好。",
                    "example": "一只赛博朋克猫在雨夜的霓虹街头，低角度，电影感，Wong Kar-Wai 风格"
                  },
                  "size": {
                    "type": "string",
                    "description": "图片尺寸，可选值：1024x1024（方形，默认）/ 1792x1024（宽屏 16:9）/ 1024x1792（竖屏 9:16）/ 1280x720 / 720x1280 / 1920x1080。",
                    "example": "1024x1024"
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "example": {
                "prompt": "一只赛博朋克猫在雨夜的霓虹街头，低角度，电影感，Wong Kar-Wai 风格",
                "size": "1024x1024"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "API Key 鉴权（在控制台申请）",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": false,
            "description": "使用 JSON body 时设置。也可通过 form-urlencoded 或 query string 传参。",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "url": "https://ark-content-generation-v2-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-3-0-t2i/021777940499xxx_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Expires=86400&X-Tos-Signature=...",
                    "size": "1024x1024",
                    "prompt": "一只赛博朋克猫在雨夜的霓虹街头，低角度，电影感，Wong Kar-Wai 风格",
                    "created": 1777940499,
                    "expires_in": 86400,
                    "tokens": 4096
                  },
                  "request_id": "mqx8x12345abc"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/express": {
      "get": {
        "operationId": "express",
        "summary": "快递物流查询",
        "description": "快递物流查询，支持顺丰、圆通、中通、申通、韵达、极兔、京东、EMS 等 100+ 主流快递公司，自动识别单号所属公司，返回完整物流轨迹。\n\n基于 ALAPI 物流源，覆盖国内全部主流快递。支持「自动识别」（不传 com 参数即可）和「手动指定公司编码」两种模式。顺丰、中通因隐私保护需求，必须传手机号后 4 位（参数 phone）。\n\n返回字段包含：单号、快递公司编码、公司中文名、状态码（0=未查到, 1=已揽收, 2=在途, 3=签收, 4=问题件）、状态描述、完整物流轨迹（按时间倒序，包含每条轨迹的时间和文字描述）。\n\n建议前端轮询频率不超过每分钟 1 次，本接口已内建 5 分钟缓存以节省调用次数。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/express",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/express/raw.md",
        "parameters": [
          {
            "name": "number",
            "in": "query",
            "required": true,
            "description": "快递单号（8-40 位字母或数字）",
            "schema": {
              "type": "string",
              "example": "YT7460266600081"
            },
            "example": "YT7460266600081"
          },
          {
            "name": "com",
            "in": "query",
            "required": false,
            "description": "快递公司编码（如 sf=顺丰、yto=圆通、zto=中通、sto=申通、yunda=韵达、jt=极兔、jd=京东、ems=EMS）；缺省由上游自动识别",
            "schema": {
              "type": "string",
              "example": "yto"
            },
            "example": "yto"
          },
          {
            "name": "phone",
            "in": "query",
            "required": false,
            "description": "手机号后 4 位数字（仅 顺丰 / 中通 必填，因隐私保护要求）",
            "schema": {
              "type": "string",
              "example": "1234"
            },
            "example": "1234"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 30 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "number": "YT7460266600081",
                    "com": "yto",
                    "com_name": "圆通快递",
                    "state": 3,
                    "status": "DELIVERED",
                    "status_desc": "已签收",
                    "trace_count": 3,
                    "traces": [
                      {
                        "time": "2026-05-06 14:23:11",
                        "content": "【上海市】您的快件已签收，签收人：本人"
                      },
                      {
                        "time": "2026-05-06 09:15:32",
                        "content": "【上海市】快件正在派送途中（派件员：张三 138****1234）"
                      },
                      {
                        "time": "2026-05-05 22:41:08",
                        "content": "【广州市】快件离开 广州转运中心 发往 上海转运中心"
                      }
                    ]
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/oil-price-forecast": {
      "get": {
        "operationId": "oil_price_forecast",
        "summary": "今日油价",
        "description": "提供 32 省份基准油价（92/95/98 号汽油 + 0 号柴油），并基于新浪财经国际原油（WTI、布伦特）实时走势，预测下一次国内调价方向（涨/跌/搁浅）和幅度。附带 2025-2026 年完整调价窗口日历。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 3,
          "daily_free_limit": 100,
          "no_key_daily": 50
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/oil-price-forecast",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/oil-price-forecast/raw.md",
        "parameters": [
          {
            "name": "action",
            "in": "query",
            "required": false,
            "description": "操作：forecast（默认）/ price / price-all / schedule",
            "schema": {
              "type": "string",
              "example": "forecast"
            },
            "example": "forecast"
          },
          {
            "name": "province",
            "in": "query",
            "required": false,
            "description": "省份名（仅 action=price 用），如 北京/广东/上海",
            "schema": {
              "type": "string",
              "example": "北京"
            },
            "example": "北京"
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "调价年份（仅 action=schedule 用），仅 2025/2026",
            "schema": {
              "type": "number",
              "example": "2026"
            },
            "example": "2026"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "crude_oil": {
                      "wti": 61.5,
                      "brent": 64.8,
                      "wti_change": -0.3,
                      "brent_change": -0.2,
                      "source": "sina_finance"
                    },
                    "next_adjust_date": "2026-05-11",
                    "days_remaining": 1,
                    "prediction": {
                      "direction": "搁浅",
                      "direction_emoji": "⏸️",
                      "estimated_change_per_ton": -30,
                      "estimated_change_per_liter": 0.022,
                      "confidence": "高",
                      "analysis": "当前国际油价布伦特约 64.8 美元/桶，日均变动 -0.25 美元……"
                    }
                  },
                  "request_id": "abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/blood-type": {
      "get": {
        "operationId": "blood_type",
        "summary": "血型遗传查询",
        "description": "根据父母血型查询子女可能/不可能的血型。基于 ABO 显性遗传规律，覆盖全部 16 种父母组合，毫秒级返回。常用于科普教育、亲子问答场景。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 20,
          "daily_free_limit": 200,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/blood-type",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/blood-type/raw.md",
        "parameters": [
          {
            "name": "father",
            "in": "query",
            "required": true,
            "description": "父亲血型，A / B / O / AB（大小写不敏感）",
            "schema": {
              "type": "string",
              "example": "A"
            },
            "example": "A"
          },
          {
            "name": "mother",
            "in": "query",
            "required": true,
            "description": "母亲血型，A / B / O / AB",
            "schema": {
              "type": "string",
              "example": "B"
            },
            "example": "B"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "father": "A",
                    "mother": "B",
                    "possible": [
                      "A",
                      "B",
                      "AB",
                      "O"
                    ],
                    "impossible": [],
                    "summary": "子女可能为 A、B、AB、O 型血；无不可能的血型"
                  },
                  "request_id": "abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/idcard-region": {
      "get": {
        "operationId": "idcard_region",
        "summary": "身份证归属地查询",
        "description": "根据身份证号前 6 位查询省/市/区三级归属地。支持完整 18 位身份证号自动脱敏回显。省份数据按需从 CDN 拉取并本地缓存 30 天，网关 Redis 缓存 24h。",
        "tags": [
          "kyc"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 100,
          "no_key_daily": 0
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/idcard-region",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/idcard-region/raw.md",
        "parameters": [
          {
            "name": "idcard",
            "in": "query",
            "required": true,
            "description": "6 位区划代码或 15/18 位身份证号",
            "schema": {
              "type": "string",
              "example": "110101"
            },
            "example": "110101"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "idcard": "110101************",
                    "province": {
                      "code": "110000",
                      "name": "北京市"
                    },
                    "city": {
                      "code": "110100",
                      "name": "北京市"
                    },
                    "district": {
                      "code": "110101",
                      "name": "东城区"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/yiyan": {
      "get": {
        "operationId": "yiyan",
        "summary": "一言（简版）",
        "description": "hitokoto 的精简版：纯文本随机一句，不带分类/出处。同时支持 format=text 直接返回纯文本（适合站点页脚、小程序欢迎语等装饰场景）。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 20,
          "daily_free_limit": 500,
          "no_key_daily": 200
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/yiyan",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/yiyan/raw.md",
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "json（默认）/ text",
            "schema": {
              "type": "string",
              "example": "json"
            },
            "example": "json"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "content": "落霞与孤鹜齐飞，秋水共长天一色。",
                    "length": 16,
                    "total_pool": 370
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/ssl": {
      "get": {
        "operationId": "ssl",
        "summary": "SSL 证书检测",
        "description": "通过域名远程探测其 HTTPS/SSL 证书信息：颁发者、颁发机构、签名算法、覆盖域名、有效期、是否过期、距过期天数、SHA-1 指纹、远端 IP 等。\n\n• 智能预处理：自动剥离 http(s):// 前缀、路径、查询串、端口、www. 子域\n• 严格域名校验：合法域名格式（最长 253 字符 + RFC 1123 标签规则）才打上游\n• 三态响应：有 SSL（is_ssl=true）→ 完整信息；无 SSL/连接失败 → is_ssl=false 其余字段 null；上游异常 → 502\n• 字段标准化：上游 null 字段透传 null 不补 0；自动转 int/string 类型；is_expire 重命名 is_expired\n• 缓存策略：成功 6h（证书短期不变）；无证书 30min（避免错误域名反复打上游）",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/ssl",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/ssl/raw.md",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "要检测的域名。可带 http(s):// 前缀、路径、端口、www.，会自动剥离",
            "schema": {
              "type": "string",
              "example": "apizero.cn"
            },
            "example": "apizero.cn"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 30 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "domain": "apizero.cn",
                    "common_name": "*.apizero.cn",
                    "domains": [
                      "*.apizero.cn",
                      "apizero.cn"
                    ],
                    "issuing_agency": "Asseco Data Systems S.A.",
                    "issuer": "Certum DV TLS G2 R39 CA",
                    "signature_algorithm": "RSA-SHA256",
                    "is_ssl": true,
                    "is_expired": false,
                    "life_span_days": 198,
                    "expire_days": 184,
                    "start_date": "2026-04-22 17:05:00",
                    "expire_date": "2026-11-07 17:04:59",
                    "fingerprint": "f4633adfd1cb59185ba094dc3edeef5a8ea26889",
                    "remote_address": "119.36.225.184:443"
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/bodyfat": {
      "get": {
        "operationId": "bodyfat",
        "summary": "体脂率与 BMI 计算",
        "description": "一站式综合计算 BMI、体脂率（Deurenberg 公式）、基础代谢率（Mifflin-St Jeor）、理想体重区间、腰围身高比与健康风险评估。男女区分阈值，附带专业建议。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 20,
          "daily_free_limit": 200,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/bodyfat",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/bodyfat/raw.md",
        "parameters": [
          {
            "name": "weight",
            "in": "query",
            "required": true,
            "description": "体重（kg）",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "height",
            "in": "query",
            "required": true,
            "description": "身高（米，非厘米！）",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "waist",
            "in": "query",
            "required": true,
            "description": "腰围（cm）",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "gender",
            "in": "query",
            "required": true,
            "description": "性别：男/female/m/f",
            "schema": {
              "type": "string",
              "example": "男"
            },
            "example": "男"
          },
          {
            "name": "age",
            "in": "query",
            "required": false,
            "description": "年龄，默认 30",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "bmi": 22.86,
                    "bfp": 18.43,
                    "bmr": 1632.5,
                    "category": "正常",
                    "ideal_weight_min": 56.66,
                    "ideal_weight_max": 76.25,
                    "waist_height_ratio": 0.46,
                    "health_risk": "低",
                    "advice": "体脂率正常，保持现有的生活方式。"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/browser-fingerprint": {
      "post": {
        "operationId": "browser_fingerprint",
        "summary": "浏览器指纹风控",
        "description": "接收前端 SDK 采集的浏览器指纹（UA / Canvas / WebGL / 字体 / 时区 / 硬件 / WebDriver / 自动化标记等 20+ 维度），综合 9 类规则输出 0-100 风险评分、等级（safe/low/medium/high/critical）、命中的风险因子和异常项，识别爬虫、Headless Chrome、Selenium、虚拟机等异常环境。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 200,
          "no_key_daily": 50
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/browser-fingerprint",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/browser-fingerprint/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ua": {
                    "type": "string",
                    "description": "navigator.userAgent",
                    "example": "Mozilla/5.0 ..."
                  },
                  "platform": {
                    "type": "string",
                    "description": "navigator.platform"
                  },
                  "language": {
                    "type": "string",
                    "description": "主语言（如 zh-CN）"
                  },
                  "timezone": {
                    "type": "string",
                    "description": "IANA 时区（如 Asia/Shanghai）"
                  },
                  "timezoneOffset": {
                    "type": "number",
                    "description": "getTimezoneOffset()，分钟"
                  },
                  "screenWidth": {
                    "type": "number",
                    "description": "screen.width"
                  },
                  "screenHeight": {
                    "type": "number",
                    "description": "screen.height"
                  },
                  "colorDepth": {
                    "type": "number",
                    "description": "screen.colorDepth"
                  },
                  "pixelRatio": {
                    "type": "number",
                    "description": "devicePixelRatio"
                  },
                  "hardwareConcurrency": {
                    "type": "number",
                    "description": "navigator.hardwareConcurrency"
                  },
                  "deviceMemory": {
                    "type": "number",
                    "description": "navigator.deviceMemory（GB）"
                  },
                  "maxTouchPoints": {
                    "type": "number",
                    "description": "navigator.maxTouchPoints"
                  },
                  "canvasHash": {
                    "type": "string",
                    "description": "Canvas 指纹哈希"
                  },
                  "webglVendor": {
                    "type": "string",
                    "description": "WebGL UNMASKED_VENDOR_WEBGL"
                  },
                  "webglRenderer": {
                    "type": "string",
                    "description": "WebGL UNMASKED_RENDERER_WEBGL"
                  },
                  "webglHash": {
                    "type": "string",
                    "description": "WebGL 参数哈希"
                  },
                  "fonts": {
                    "type": "array",
                    "description": "检测到的字体列表"
                  },
                  "fontCount": {
                    "type": "number",
                    "description": "字体数量"
                  },
                  "plugins": {
                    "type": "array",
                    "description": "插件列表"
                  },
                  "pluginCount": {
                    "type": "number",
                    "description": "插件数量"
                  },
                  "webdriver": {
                    "type": "boolean",
                    "description": "navigator.webdriver"
                  },
                  "automation": {
                    "type": "array",
                    "description": "检测到的自动化框架（如 selenium / phantom）"
                  },
                  "cookieEnabled": {
                    "type": "boolean",
                    "description": "navigator.cookieEnabled"
                  },
                  "audioHash": {
                    "type": "string",
                    "description": "AudioContext 指纹"
                  },
                  "webrtcIPs": {
                    "type": "array",
                    "description": "WebRTC 检测到的本机 IP"
                  },
                  "storageAvailable": {
                    "type": "array",
                    "description": "可用的存储类型"
                  },
                  "permissions": {
                    "type": "array",
                    "description": "权限状态"
                  },
                  "connection": {
                    "type": "object",
                    "description": "navigator.connection 信息"
                  },
                  "battery": {
                    "type": "object",
                    "description": "电池状态"
                  }
                },
                "required": [
                  "ua"
                ]
              },
              "example": {
                "ua": "Mozilla/5.0 ..."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "fingerprint_id": "a1b2c3d4...",
                    "risk": 72,
                    "risk_level": "high",
                    "risk_label": "高风险",
                    "factors": [
                      {
                        "name": "webdriver",
                        "score": 30,
                        "desc": "WebDriver 标记为 true"
                      },
                      {
                        "name": "virtual_gpu",
                        "score": 15,
                        "desc": "WebGL 渲染器包含虚拟/软渲染特征: SwiftShader"
                      }
                    ],
                    "anomalies": [
                      "UA 声称 Windows 但 platform 不匹配"
                    ],
                    "device_profile": {
                      "os": "Windows",
                      "browser": "Chrome 125",
                      "device_type": "Desktop",
                      "screen": "1920x1080",
                      "gpu": "ANGLE (NVIDIA, GeForce RTX 3060)",
                      "cores": 8,
                      "memory": "8GB",
                      "fonts_count": 42,
                      "plugins_count": 3,
                      "touch": false
                    },
                    "timestamp": 1715097600
                  },
                  "request_id": "abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/cf-dns": {
      "post": {
        "operationId": "cf_dns",
        "summary": "Cloudflare DNS 更新（DDNS）",
        "description": "通过用户自有的 Cloudflare API Token 更新指定域名的 A/AAAA 记录。家庭宽带 DDNS、办公室外网 IP 自动同步等场景必备。Token 仅作转发使用，不持久化。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 50,
          "no_key_daily": 0
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/cf-dns",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/cf-dns/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string",
                    "description": "根域名",
                    "example": "example.com"
                  },
                  "host": {
                    "type": "string",
                    "description": "主机记录 @ / www",
                    "example": "home"
                  },
                  "ip": {
                    "type": "string",
                    "description": "要设置的 IP"
                  },
                  "token": {
                    "type": "string",
                    "description": "Cloudflare API Token"
                  },
                  "type": {
                    "type": "string",
                    "description": "A / AAAA（默认 A）"
                  },
                  "ttl": {
                    "type": "number",
                    "description": "TTL 120-86400（默认 120）"
                  },
                  "proxied": {
                    "type": "boolean",
                    "description": "是否启用 CDN 代理（默认 false）"
                  }
                },
                "required": [
                  "domain",
                  "host",
                  "ip",
                  "token"
                ]
              },
              "example": {
                "domain": "example.com",
                "host": "home"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "message": "DNS 记录更新成功",
                    "full_name": "home.example.com",
                    "type": "A",
                    "old_ip": "1.2.3.4",
                    "new_ip": "5.6.7.8",
                    "changed": true
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/text-similarity": {
      "post": {
        "operationId": "text_similarity",
        "summary": "文本相似度",
        "description": "纯本地计算的文本相似度比对，输入两段文本（每段 ≤ 5000 字）输出 4 种相似度指标 + 加权综合评分 + 5 级评级。\n\n• **零延迟零成本**：纯 PHP 本地计算，无外部上游依赖，平均响应 < 100ms\n• **4 种指标**：余弦相似度（35%）+ Jaccard 系数（25%）+ 编辑距离归一化（20%）+ LCS 比率（20%）\n• **5 级评级**：几乎相同 / 高度相似 / 中度相似 / 轻度相似 / 差异较大\n• **修复源码 bug**：自实现 mb_levenshtein 字符级编辑距离，杜绝 PHP 内置 levenshtein 按字节计算导致的 85 汉字崩溃问题\n• **超长保护**：超过 500 字符自动截取并按比例还原，5000×5000 字符比对约 60-80ms\n• **典型场景**：评论查重、AI 生成内容检测、多语言翻译质量评估、客服话术匹配",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 500,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/text-similarity",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/text-similarity/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text1": {
                    "type": "string",
                    "description": "第一段文本，1-5000 字符（中英文均按 1 字符计）",
                    "example": "今天天气不错，适合出门散步"
                  },
                  "text2": {
                    "type": "string",
                    "description": "第二段文本，1-5000 字符",
                    "example": "今天天气真好，适合出门走走"
                  }
                },
                "required": [
                  "text1",
                  "text2"
                ]
              },
              "example": {
                "text1": "今天天气不错，适合出门散步",
                "text2": "今天天气真好，适合出门走走"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 100 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": false,
            "description": "支持 application/x-www-form-urlencoded 或 application/json",
            "schema": {
              "type": "string",
              "example": "application/json"
            },
            "example": "application/json"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "text1_length": 13,
                    "text2_length": 13,
                    "overall_score": 0.6471,
                    "similarity_level": "moderately_similar",
                    "level_name": "中度相似",
                    "metrics": {
                      "cosine": 0.5833,
                      "jaccard": 0.4118,
                      "edit_similarity": 0.6923,
                      "lcs_similarity": 0.9231,
                      "edit_distance": 4,
                      "lcs_length": 12
                    },
                    "truncated": false
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/ai-couplet": {
      "post": {
        "operationId": "ai_couplet",
        "summary": "智能对联",
        "description": "输入上联关键词，AI 自动生成对仗工整的下联。基于 ALAPI 智能对联引擎。",
        "tags": [
          "ai"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 3,
          "daily_free_limit": 20,
          "no_key_daily": 10
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/ai-couplet",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/ai-couplet/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "keyword": {
                    "type": "string",
                    "description": "上联关键词（1~30 字）"
                  }
                },
                "required": [
                  "keyword"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "message": "ok",
                  "data": {
                    "shanglian": "春风拂面花自笑",
                    "xialian": "细雨润心柳含情"
                  },
                  "request_id": "7f2ceede56fdff1a3568"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/text-censor": {
      "post": {
        "operationId": "text_censor",
        "summary": "文本审核",
        "description": "对文本进行多维度违规内容审核，覆盖政治敏感、谩骂、色情、违规广告、暴恐、低俗等类别，返回审核结论 + 命中违规词详情列表。\n\n• 5000 字以内（中英文均按 1 字符计），单次请求审核\n• 三态结论：合规（is_compliant=true）/ 不合规（is_compliant=false）/ 疑似（is_suspected=true，需人工复核）\n• 详细命中信息：每条违规含 category（类别）/ word（触发词）/ level（等级）/ msg（说明）\n• 衍生字段：violations（去重违规词数组）/ violation_categories（命中类别去重）/ violation_count（违规条数），前端可直接展示「触发 X 项违规：政治、谩骂…」\n• 隐私保护：缓存 key 用 sha256 哈希，原文不进入 key；错误日志不记录文本内容",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/text-censor",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/text-censor/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "待审核文本，1-5000 个字符（中英文均按 1 字符计）",
                    "example": "今天天气不错，适合出门散步。"
                  }
                },
                "required": [
                  "text"
                ]
              },
              "example": {
                "text": "今天天气不错，适合出门散步。"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API Key 鉴权头，格式 Bearer sk_live_xxx；匿名调用时可省略（每日 30 次免费）",
            "schema": {
              "type": "string",
              "example": "Bearer sk_live_xxxxxxxxxxxxxx"
            },
            "example": "Bearer sk_live_xxxxxxxxxxxxxx"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": false,
            "description": "支持 application/x-www-form-urlencoded 或 application/json",
            "schema": {
              "type": "string",
              "example": "application/json"
            },
            "example": "application/json"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "text": "法轮功是邪教组织",
                    "text_length": 8,
                    "conclusion": "不合规",
                    "conclusion_type": 2,
                    "is_compliant": false,
                    "is_suspected": false,
                    "violation_count": 2,
                    "violation_categories": [
                      "政治"
                    ],
                    "violations": [
                      "法轮功",
                      "邪教"
                    ],
                    "details": [
                      {
                        "category": "政治",
                        "level": 3,
                        "word": "法轮功",
                        "msg": "存在政治内容不合规"
                      },
                      {
                        "category": "政治",
                        "level": 3,
                        "word": "邪教",
                        "msg": "存在政治内容不合规"
                      }
                    ]
                  },
                  "request_id": "abc123def456"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/visits-counter": {
      "get": {
        "operationId": "visits_counter",
        "summary": "访问量计数器",
        "description": "SVG/JSON访问量计数器，支持多套动效主题卡片（咒纹夜/术式蓝焰/五条悟风/无量空处/宿傩咒印等），可嵌入GitHub README或网站。按站点隔离计数。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 1000,
          "no_key_daily": 500
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/visits-counter",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/visits-counter/raw.md",
        "parameters": [
          {
            "name": "site",
            "in": "query",
            "required": false,
            "description": "站点标识，用于区分不同来源（建议传你的域名）。不传时全局共享一个计数器。",
            "schema": {
              "type": "string",
              "example": "apizero.cn"
            },
            "example": "apizero.cn"
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "计数器名称，同一站点下可挂多个不同位置（首页/产品页/文章页等）。默认 demo。",
            "schema": {
              "type": "string",
              "example": "home"
            },
            "example": "home"
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "计数模式：daily=每日清零 / total=累计不清零。默认 daily。",
            "schema": {
              "type": "string",
              "example": "total"
            },
            "example": "total"
          },
          {
            "name": "theme",
            "in": "query",
            "required": false,
            "description": "主题：默认 gojo_board（像素角色举牌+数字 GIF 动画）。可选 gojo_board/hoops_board/zero_board/jjk_infinity/rule34/moebooru/gelbooru/cursed_night/seal_blue/talisman_red/void_gold/gojo_satoru/infinity_void/sukuna_mark。前 7 个为像素牌主题（角色帧动画），后 7 个为 SVG 渐变主题。",
            "schema": {
              "type": "string",
              "example": "gojo_board"
            },
            "example": "gojo_board"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "输出格式：svg（默认，可直接 <img> 嵌入网页）/ png（静态图，scale=1~4）/ json（原始 JSON 数据，便于自集成）。",
            "schema": {
              "type": "string",
              "example": "svg"
            },
            "example": "svg"
          },
          {
            "name": "length",
            "in": "query",
            "required": false,
            "description": "数字位数 4~12，默认 7（前导补 0）。",
            "schema": {
              "type": "number",
              "example": "7"
            },
            "example": "7"
          },
          {
            "name": "no_increment",
            "in": "query",
            "required": false,
            "description": "只读模式：1=只查询不递增（适合预览/调试）。默认 0。",
            "schema": {
              "type": "number",
              "example": "0"
            },
            "example": "0"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": "200",
                  "desc": "success",
                  "data": {
                    "name": "home",
                    "mode": "daily",
                    "theme": "gojo_board",
                    "theme_name": "像素牌-苍空",
                    "value": 42,
                    "display_value": "0000042",
                    "record": {
                      "total": 1024,
                      "daily": 42,
                      "day": "2026-05-09",
                      "updated_at": "2026-05-09T21:48:52+08:00"
                    },
                    "incremented": true,
                    "step": 1,
                    "length": 7,
                    "format": "json"
                  },
                  "tips": "极数本源 · https://apizero.cn"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/code-beautify": {
      "post": {
        "operationId": "code_beautify",
        "summary": "代码美化图片",
        "description": "将代码片段渲染为精美的SVG/PNG卡片图片。支持16种编程语言语法高亮、8套设计主题，适合社交分享和技术文档配图。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 3,
          "daily_free_limit": 30,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/code-beautify",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/code-beautify/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "description": "代码内容",
                    "example": "const sum = (a, b) => a + b;"
                  },
                  "language": {
                    "type": "string",
                    "description": "语言：auto/python/javascript/typescript/json/bash/go/rust/java/c/cpp/html/css/sql/yaml/markdown",
                    "example": "typescript"
                  },
                  "theme": {
                    "type": "string",
                    "description": "主题：aurora/sunset/forest/midnight/rose/ocean/volcano/mono",
                    "example": "aurora"
                  },
                  "title": {
                    "type": "string",
                    "description": "卡片顶部标题",
                    "example": "snippet.ts"
                  },
                  "line_numbers": {
                    "type": "number",
                    "description": "是否显示行号 1/0",
                    "example": "1"
                  },
                  "scale": {
                    "type": "number",
                    "description": "PNG放大倍数 1-4",
                    "example": "2"
                  },
                  "output": {
                    "type": "string",
                    "description": "输出格式：svg/png/json",
                    "example": "json"
                  }
                },
                "required": [
                  "code"
                ]
              },
              "example": {
                "code": "const sum = (a, b) => a + b;",
                "language": "typescript",
                "theme": "aurora",
                "title": "snippet.ts",
                "line_numbers": "1",
                "scale": "2",
                "output": "json"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "language": "typescript",
                    "theme": "aurora",
                    "theme_name": "极光",
                    "title": "snippet.ts",
                    "line_count": 3,
                    "width": 680,
                    "height": 180,
                    "svg": "<svg>...</svg>",
                    "png_base64": "iVBORw0..."
                  },
                  "request_id": "req_abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/bank-card": {
      "get": {
        "operationId": "bank_card",
        "summary": "银行卡BIN查询",
        "description": "根据银行卡号前6位查询发卡行、卡类型、卡品牌等信息",
        "tags": [
          "finance"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 20,
          "daily_free_limit": 1000,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/bank-card",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/bank-card/raw.md",
        "parameters": [],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 200,
                  "message": "success",
                  "data": {}
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/holiday": {
      "get": {
        "operationId": "holiday",
        "summary": "中国法定节假日",
        "description": "查询中国法定节假日安排，包含放假日期和调休日期，支持2020-2030年",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 20,
          "daily_free_limit": 1000,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/holiday",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/holiday/raw.md",
        "parameters": [],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 200,
                  "message": "success",
                  "data": {}
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/ios-cert": {
      "post": {
        "operationId": "ios_cert",
        "summary": "iOS 证书与描述文件检测",
        "description": "解析 .p12 证书与 .mobileprovision 描述文件，输出证书有效期、吊销状态、Team ID、证书类型（开发/分发/企业）、设备列表、25 项 entitlements 权限以及证书与描述文件匹配性验证。iOS 开发者必备。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 50,
          "no_key_daily": 0
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/ios-cert",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/ios-cert/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "cert": {
                    "type": "string",
                    "description": "Base64 编码的 .p12 文件内容"
                  },
                  "provision": {
                    "type": "string",
                    "description": "Base64 编码的 .mobileprovision"
                  },
                  "password": {
                    "type": "string",
                    "description": "证书密码，默认为空"
                  }
                },
                "required": [
                  "cert",
                  "provision"
                ]
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "certificate": {
                      "name": "iPhone Developer: ...",
                      "status": "正常",
                      "is_revoked": false
                    },
                    "mobileprovision": {
                      "cert_type": "Development",
                      "cert_end_days": 350
                    },
                    "permissions": {
                      "aps": true,
                      "keychain": true,
                      "debug": true
                    },
                    "is_matching": true
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/csdn-profile": {
      "get": {
        "operationId": "csdn_profile",
        "summary": "CSDN 博主信息",
        "description": "通过 CSDN 用户名查询博主公开档案：昵称、头像、码龄、博客等级、原创数、粉丝数、博客排名、IP 属地、原力等级、勋章列表与成就明细。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/csdn-profile",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/csdn-profile/raw.md",
        "parameters": [
          {
            "name": "username",
            "in": "query",
            "required": true,
            "description": "CSDN 用户名（仅字母/数字/下划线）",
            "schema": {
              "type": "string",
              "example": "weixin_44906759"
            },
            "example": "weixin_44906759"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "nickname": "XXX",
                    "code_age_years": 5,
                    "fans_count": 1234
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/douban-movie": {
      "get": {
        "operationId": "douban_movie",
        "summary": "豆瓣电影信息",
        "description": "通过豆瓣 ID 或 URL 查询电影详情：评分、导演、演员、类型、地区、片长、集数（剧集）、热门短评等。基于豆瓣公开 JSON API。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/douban-movie",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/douban-movie/raw.md",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": true,
            "description": "豆瓣 ID（如 1292052）或豆瓣电影 URL",
            "schema": {
              "type": "string",
              "example": "1292052"
            },
            "example": "1292052"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "douban_id": "1292052",
                    "name": "肖申克的救赎",
                    "year": "1994",
                    "score": "9.7",
                    "director": "弗兰克·德拉邦特"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/webmeta": {
      "get": {
        "operationId": "webmeta",
        "summary": "网页元数据提取",
        "description": "提取网页的标题、描述、关键词、OG/Twitter Card、favicon，并自动识别使用的 30+ 项技术栈（React/Vue/Next.js/WordPress/Cloudflare 等）。适合 SEO 检测、技术调研、链接预览。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/webmeta",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/webmeta/raw.md",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "网页 URL，自动补 https://",
            "schema": {
              "type": "string",
              "example": "https://baidu.com"
            },
            "example": "https://baidu.com"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "url": "https://www.baidu.com/",
                    "title": "百度一下，你就知道",
                    "tech_stack": [
                      "jQuery",
                      "Baidu Analytics"
                    ],
                    "http_code": 200
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/desensitize": {
      "post": {
        "operationId": "desensitize",
        "summary": "数据脱敏（敏感信息掩码）",
        "description": "自动检测并脱敏文本中的手机号、身份证（15/18 位）、银行卡（16-19 位）、邮箱、中文姓名等敏感信息。支持按类型组合，纯本地正则匹配，毫秒级返回。默认不回显原文，避免日志泄漏。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 200,
          "no_key_daily": 50
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/desensitize",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/desensitize/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "要脱敏的文本，最长 50000 字节"
                  },
                  "types": {
                    "type": "string",
                    "description": "类型逗号分隔：phone,idcard,bankcard,email,name 或 all（默认）"
                  },
                  "with_original": {
                    "type": "boolean",
                    "description": "是否在 detections 中回显原文，默认 false"
                  }
                },
                "required": [
                  "text"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "masked_text": "联系人：张*，电话 138****8000",
                    "detection_count": 2,
                    "summary": {
                      "name": 1,
                      "phone": 1
                    },
                    "detections": [
                      {
                        "type": "name",
                        "masked": "张*"
                      },
                      {
                        "type": "phone",
                        "masked": "138****8000"
                      }
                    ],
                    "types_applied": [
                      "phone",
                      "idcard",
                      "bankcard",
                      "email",
                      "name"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/wzry-battle": {
      "post": {
        "operationId": "wzry_battle",
        "summary": "王者荣耀战绩查询",
        "description": "通过王者营地小程序接口查询玩家战报，支持搜索玩家、查询角色列表、获取历史战绩与 KDA 统计。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 20,
          "no_key_daily": 5
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/wzry-battle",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/wzry-battle/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "description": "操作类型：search / roles / battles"
                  },
                  "keyword": {
                    "type": "string",
                    "description": "[search] 玩家昵称关键词"
                  },
                  "user_id": {
                    "type": "string",
                    "description": "[roles/battles] 玩家 userId"
                  },
                  "role_id": {
                    "type": "string",
                    "description": "[battles] 角色 roleId"
                  },
                  "last_time": {
                    "type": "number",
                    "description": "[battles] 翻页游标（Unix 时间戳），0=最新"
                  },
                  "option": {
                    "type": "number",
                    "description": "[battles] 模式筛选：0=全部 1=排位 2=巅峰 3=娱乐"
                  },
                  "pages": {
                    "type": "number",
                    "description": "[battles] 拉取页数（1~3，每页约 30 条）"
                  }
                },
                "required": [
                  "action"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 200,
                  "message": "success",
                  "data": {}
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/brain-teaser": {
      "get": {
        "operationId": "brain_teaser",
        "summary": "脑筋急转弯",
        "description": "从 4500+ 条本地题库随机返回一条脑筋急转弯，包含题目和答案。零上游依赖，毫秒级返回，适合聊天机器人、APP 互动模块。",
        "tags": [
          "life"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 20,
          "daily_free_limit": 200,
          "no_key_daily": 100
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/brain-teaser",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/brain-teaser/raw.md",
        "parameters": [],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "question": "什么动物最爱贴在墙上？",
                    "answer": "海报。",
                    "total_pool": 4500
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/unshort": {
      "get": {
        "operationId": "unshort",
        "summary": "短链还原",
        "description": "完整还原一个短链的全部跳转链路，输出每跳的状态码、跳转方式（Location/Meta-Refresh）和耗时。适合钓鱼链接溯源、推广短链分析、二维码内容核对。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 200,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/unshort",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/unshort/raw.md",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "要展开的短链",
            "schema": {
              "type": "string",
              "example": "https://t.cn/A6xxxx"
            },
            "example": "https://t.cn/A6xxxx"
          },
          {
            "name": "max_hops",
            "in": "query",
            "required": false,
            "description": "最大跳转次数（1-30，默认 10）",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "original_url": "https://t.cn/Aabc",
                    "final_url": "https://example.com/landing",
                    "hops": 2,
                    "total_time_ms": 412,
                    "chain": [
                      {
                        "hop": 1,
                        "url": "https://t.cn/Aabc",
                        "status": 302,
                        "method": "Location",
                        "duration_ms": 120,
                        "next": "https://example.com/landing"
                      },
                      {
                        "hop": 2,
                        "url": "https://example.com/landing",
                        "status": 200,
                        "method": "final",
                        "duration_ms": 292
                      }
                    ],
                    "is_redirect": true
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/domain-trade": {
      "get": {
        "operationId": "domain_trade",
        "summary": "域名交易市场",
        "description": "拉取 EDNS 域名交易市场公开数据，支持按价格、长度、后缀、交易类型筛选。适合站长扫货短米、行业研究、域名估值参考。",
        "tags": [
          "finance"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/domain-trade",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/domain-trade/raw.md",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "页码（默认 1）",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "pagesize",
            "in": "query",
            "required": false,
            "description": "每页数量（≤100，默认 50）",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "max_price",
            "in": "query",
            "required": false,
            "description": "最高价格（元）",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "max_length",
            "in": "query",
            "required": false,
            "description": "域名最大长度",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "suffix",
            "in": "query",
            "required": false,
            "description": "后缀，如 .com",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sale_type",
            "in": "query",
            "required": false,
            "description": "交易类型",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "total_pages": 1234,
                    "current_page": 1,
                    "count": 50,
                    "list": [
                      {
                        "name": "abc.com",
                        "price": "5000",
                        "sale_type": "一口价"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/site-check": {
      "get": {
        "operationId": "site_check",
        "summary": "网站测速诊断",
        "description": "测量网站的 DNS 解析、TCP 连接、SSL 握手、TTFB、总耗时，跟踪重定向链并提取 SSL 证书摘要、命中 IP/端口、页面体积。一次请求 6 大维度全监测。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 50,
          "no_key_daily": 0
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/site-check",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/site-check/raw.md",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "目标 URL（自动补 https://）",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "url": "https://baidu.com",
                    "final_url": "https://www.baidu.com/",
                    "http_code": 200,
                    "timing": {
                      "dns_ms": 15,
                      "connect_ms": 32.5,
                      "ssl_ms": 78.4,
                      "ttfb_ms": 145.2,
                      "total_ms": 156.7
                    },
                    "redirect_count": 1
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/bili-dynamic": {
      "get": {
        "operationId": "bili_dynamic",
        "summary": "B 站用户动态",
        "description": "通过 B 站官方公开 API 拉取指定用户的最新动态列表（视频投稿/图文/纯文本/转发等），含发布时间、文本、视频/图片附件、点赞/评论/转发统计。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/bili-dynamic",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/bili-dynamic/raw.md",
        "parameters": [
          {
            "name": "uid",
            "in": "query",
            "required": true,
            "description": "B 站用户 UID（纯数字）",
            "schema": {
              "type": "string",
              "example": "208259"
            },
            "example": "208259"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "uid": "208259",
                    "count": 5,
                    "list": [
                      {
                        "dynamic_id": "8xxx",
                        "type": "DYNAMIC_TYPE_AV",
                        "text": "...",
                        "stats": {
                          "comments": 100,
                          "likes": 1000,
                          "forwards": 50
                        }
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/idcard-organ": {
      "get": {
        "operationId": "idcard_organ",
        "summary": "身份证签发机关查询",
        "description": "通过身份证号前 6 位行政区划代码，查询对应的签发机关（地方公安局）。覆盖全国 3000+ 区划代码，本地数据零上游。仅供身份证真伪辅助核验、户籍查询等合规场景。",
        "tags": [
          "kyc"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 10,
          "daily_free_limit": 100,
          "no_key_daily": 0
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/idcard-organ",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/idcard-organ/raw.md",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": true,
            "description": "6 位行政区划代码或完整身份证号（自动截取前 6 位）",
            "schema": {
              "type": "string",
              "example": "110101"
            },
            "example": "110101"
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "code": "110101",
                    "organization": "北京市公安局东城分局"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/dns-hijack": {
      "get": {
        "operationId": "dns_hijack",
        "summary": "DNS 劫持检测",
        "description": "通过对比 5 大公共 DoH（Cloudflare / Google / AliDNS / DNSPod / OpenDNS）对同一域名的解析结果，检测是否存在 DNS 劫持/污染/篡改。一致 = 安全，多源不一致 = 高风险。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/dns-hijack",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/dns-hijack/raw.md",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "域名（不含 https://）",
            "schema": {
              "type": "string",
              "example": "baidu.com"
            },
            "example": "baidu.com"
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "domain": "baidu.com",
                    "is_hijacked": false,
                    "risk_level": "low",
                    "summary": "5 个 DoH 服务商解析结果一致，未检测到劫持迹象",
                    "unique_ips": [
                      "110.242.68.3",
                      "110.242.68.4"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/content-extract": {
      "get": {
        "operationId": "content_extract",
        "summary": "网页正文提取",
        "description": "从新闻、博客、公众号等网页抽取主体正文，自动去除导航/侧栏/广告/评论。基于文本密度算法，同时返回标题、发布时间、配图列表、字数与预估阅读时长。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/content-extract",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/content-extract/raw.md",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "目标网页 URL",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "title": "示例文章标题",
                    "publish_time": "2024-01-15",
                    "content": "...",
                    "word_count": 2300,
                    "reading_time": "5分钟",
                    "image_count": 3,
                    "images": [
                      "https://..."
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/douyin-user": {
      "get": {
        "operationId": "douyin_user",
        "summary": "抖音用户公开信息",
        "description": "通过抖音用户主页链接（短链或长链），获取昵称、头像、签名、作品数、粉丝数、关注数、获赞总数等公开信息。自动展开 v.douyin.com 短链。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/douyin-user",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/douyin-user/raw.md",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "抖音用户主页链接（v.douyin.com 短链或 douyin.com/user/ 长链）",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "nickname": "张三",
                    "follower_count": 9999,
                    "aweme_count": 123,
                    "total_favorited": 100000
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/jd-address": {
      "post": {
        "operationId": "jd_address",
        "summary": "京东地址解析（4 级）",
        "description": "调用京东地址智能识别接口，将自然语言地址解析为「省/市/区/镇」四级行政区划，并返回每级对应的京东 ID。比传统三级行政区划接口多一个「镇」级别。",
        "tags": [
          "geo"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 100,
          "no_key_daily": 0
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/jd-address",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/jd-address/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "地址文本（≤200 字符）",
                    "example": "北京市朝阳区三里屯街道工体北路 8 号"
                  }
                },
                "required": [
                  "address"
                ]
              },
              "example": {
                "address": "北京市朝阳区三里屯街道工体北路 8 号"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "province_id": 1,
                    "province": "北京",
                    "city_id": 72,
                    "city": "北京市",
                    "county_id": 2818,
                    "county": "朝阳区",
                    "town_id": 53124,
                    "town": "三里屯街道",
                    "detail": "工体北路 8 号"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/site-security": {
      "get": {
        "operationId": "site_security",
        "summary": "网站安全综合评分",
        "description": "五维加权综合评分：SSL 证书 (25%) + 域名安全 (20%) + ICP 备案 (20%) + 微信/QQ 拦截 (15%) + 网站性能 (20%)，总分 0-100，对应 A/B/C/D/F 五级。一次请求得到全面诊断报告。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 30,
          "no_key_daily": 0
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/site-security",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/site-security/raw.md",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "纯域名，如 baidu.com",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "domain": "baidu.com",
                    "overall_score": 92,
                    "grade": "A",
                    "detection_time": "4521ms",
                    "ssl": {
                      "score": 100,
                      "https_enabled": true,
                      "days_until_expiry": 365
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/wechat-archive": {
      "post": {
        "operationId": "wechat_archive",
        "summary": "微信文章转存",
        "description": "输入微信公众号文章链接，抓取并转为Markdown/纯文本，提取标题、作者、公众号名称、发布时间，下载正文图片资源。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 1,
          "daily_free_limit": 10,
          "no_key_daily": 0
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/wechat-archive",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/wechat-archive/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "微信公众号文章链接",
                    "example": "https://mp.weixin.qq.com/s/hy31xZK6FH3H51qh1zeSKA"
                  },
                  "format": {
                    "type": "string",
                    "description": "输出格式：markdown/text/both",
                    "example": "both"
                  },
                  "timeout": {
                    "type": "number",
                    "description": "超时秒数",
                    "example": "20"
                  }
                },
                "required": [
                  "url"
                ]
              },
              "example": {
                "url": "https://mp.weixin.qq.com/s/hy31xZK6FH3H51qh1zeSKA",
                "format": "both",
                "timeout": "20"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "meta": {
                      "title": "GitHub史上最快破10万星项目来了",
                      "author": "作者名",
                      "account_name": "公众号名",
                      "publish_time": "2026-05-01T10:00:00+08:00",
                      "read_num": null,
                      "like_num": null
                    },
                    "content": {
                      "markdown": "# 文章标题\\n\\n正文...",
                      "text": "文章标题\\n\\n正文..."
                    },
                    "images": [
                      {
                        "url": "https://mmbiz.qpic.cn/...",
                        "size_bytes": 45000
                      }
                    ]
                  },
                  "request_id": "req_abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/image-nsfw": {
      "post": {
        "operationId": "image_nsfw",
        "summary": "图片鉴黄",
        "description": "图片NSFW内容检测。支持本地NudeNet推理（零调用费）及百度/腾讯/阿里云端三家，统一返回 decision（block/review/pass）+ 分类得分 + 检测框。",
        "tags": [
          "ai"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 10,
          "no_key_daily": 0
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/image-nsfw",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/image-nsfw/raw.md",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "image_url": {
                    "type": "string",
                    "description": "图片HTTP(S) URL（与image_b64二选一）",
                    "example": "https://example.com/photo.jpg"
                  },
                  "image_b64": {
                    "type": "string",
                    "description": "图片base64（兼容data:URI）"
                  },
                  "backend": {
                    "type": "string",
                    "description": "检测后端：auto/nudenet/baidu/tencent/aliyun",
                    "example": "auto"
                  },
                  "timeout": {
                    "type": "number",
                    "description": "超时秒（3~60）"
                  }
                }
              },
              "example": {
                "image_url": "https://example.com/photo.jpg",
                "backend": "auto",
                "timeout": ""
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 200,
                  "desc": "success",
                  "backend": "nudenet",
                  "elapsed_ms": 115,
                  "input": {
                    "type": "url",
                    "source": "https://i0.hdslb.com/bfs/article/922692ab728ebb5f284f64296f3590a0959110a3.jpg",
                    "size_bytes": 993377,
                    "sha256": "f9a414bd6925f6c870e18d75252cbd764ce964fbd20387639577c9455db5a598",
                    "mime": "image/jpeg",
                    "width": 1080,
                    "height": 1920
                  },
                  "decision": "pass",
                  "label": "normal",
                  "score": 0.8511,
                  "categories": {
                    "porn": 0,
                    "sexy": 0,
                    "normal": 1
                  },
                  "detections": [
                    {
                      "cls": "FACE_FEMALE",
                      "score": 0.8511,
                      "box": [
                        381,
                        291,
                        528,
                        575
                      ]
                    }
                  ],
                  "raw": {
                    "nudenet": [
                      {
                        "class": "FACE_FEMALE",
                        "score": 0.8510541915893555,
                        "box": [
                          381,
                          291,
                          528,
                          575
                        ]
                      }
                    ]
                  },
                  "notes": [],
                  "tips": "极数本源 · https://apizero.cn"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/mingyan": {
      "post": {
        "operationId": "mingyan",
        "summary": "名人名言",
        "description": "返回一条名人名言，支持按类型筛选。action=types 可获取所有类型列表。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 50,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/mingyan",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/mingyan/raw.md",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "description": "可选：'types' 列出所有类型"
                  },
                  "typeid": {
                    "type": "string",
                    "description": "名言类型 ID（数字）"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 200,
                  "message": "success",
                  "data": {}
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/netease-comment": {
      "post": {
        "operationId": "netease_comment",
        "summary": "网易云热门乐评",
        "description": "随机返回一条网易云音乐高赞热评，含歌曲信息（标题/作者/封面/试听）和评论详情。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 50,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/netease-comment",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/netease-comment/raw.md",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 200,
                  "message": "success",
                  "data": {}
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/riddle": {
      "post": {
        "operationId": "riddle",
        "summary": "谜语大全",
        "description": "谜语接口，支持随机一条、分页列表、类型列表三种模式（action=random/list/types）。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 50,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/riddle",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/riddle/raw.md",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "description": "'random'(默认)/'list'/'types'"
                  },
                  "type": {
                    "type": "string",
                    "description": "[list] 谜语类型，小写字母"
                  },
                  "page": {
                    "type": "string",
                    "description": "[list] 页码，正整数，默认 1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 200,
                  "message": "success",
                  "data": {}
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/shici": {
      "post": {
        "operationId": "shici",
        "summary": "随机诗词",
        "description": "随机返回一首古诗词，支持按 10 种主题筛选（抒情/四季/山水/天气/人物/生活/节日/动物/植物/食物）。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 50,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/shici",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/shici/raw.md",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "shuqing/siji/shanshui/tianqi/renwu/shenghuo/jieri/dongwu/zhiwu/shiwu"
                  },
                  "action": {
                    "type": "string",
                    "description": "'types' 返回类型列表（不消耗调用额度）"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 200,
                  "message": "success",
                  "data": {}
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/soul-soup": {
      "post": {
        "operationId": "soul_soup",
        "summary": "心灵毒鸡汤",
        "description": "随机返回一句\"反鸡汤\"文案，用于自嘲、解压或段子素材。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 50,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/soul-soup",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/soul-soup/raw.md",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 200,
                  "message": "success",
                  "data": {}
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/hot-search": {
      "post": {
        "operationId": "hot_search",
        "summary": "全网热搜聚合",
        "description": "聚合微博热搜、知乎热榜、B站日榜、百度贴吧热议，一次请求获取全网热门话题。支持按平台筛选和条数限制。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 3,
          "daily_free_limit": 30,
          "no_key_daily": 20
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/hot-search",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/hot-search/raw.md",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "platform": {
                    "type": "string",
                    "description": "平台筛选：all/weibo/zhihu/bilibili/tieba，逗号分隔",
                    "example": "all"
                  },
                  "limit": {
                    "type": "number",
                    "description": "每个平台返回条数，最大50",
                    "example": "10"
                  },
                  "timeout": {
                    "type": "number",
                    "description": "请求超时秒数",
                    "example": "15"
                  }
                }
              },
              "example": {
                "platform": "all",
                "limit": "10",
                "timeout": "15"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "generated_at": "2026-05-08T13:00:00+08:00",
                    "requested_platforms": [
                      "weibo",
                      "zhihu",
                      "bilibili",
                      "tieba"
                    ],
                    "limit_per_platform": 10,
                    "total_items": 40,
                    "failed_platforms": {},
                    "platforms": {
                      "weibo": {
                        "name": "微博热搜",
                        "status": "success",
                        "count": 10,
                        "items": [
                          {
                            "rank": 1,
                            "title": "热搜标题",
                            "hot": "5234567"
                          }
                        ]
                      }
                    }
                  },
                  "request_id": "req_abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/dns-lookup": {
      "post": {
        "operationId": "dns_lookup",
        "summary": "DNS 查询",
        "description": "零依赖DNS查询API。自实现DNS协议（RFC 1035），支持A/AAAA/MX/TXT/CNAME/NS/SOA/SRV/PTR/CAA记录类型，UDP自动fallback到DoH（DNS over HTTPS）防劫持。",
        "tags": [
          "dev"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 5,
          "daily_free_limit": 50,
          "no_key_daily": 30
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/dns-lookup",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/dns-lookup/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string",
                    "description": "要查询的域名（别名 name/host）",
                    "example": "example.com"
                  },
                  "type": {
                    "type": "string",
                    "description": "记录类型，逗号分隔；ALL=A,AAAA,MX,TXT,CNAME",
                    "example": "A"
                  },
                  "server": {
                    "type": "string",
                    "description": "指定DNS服务器（逗号分隔）",
                    "example": "8.8.8.8,1.1.1.1"
                  },
                  "timeout": {
                    "type": "number",
                    "description": "单请求超时秒（1~30）",
                    "example": "5"
                  },
                  "doh": {
                    "type": "number",
                    "description": "1=强制走DoH（HTTPS）",
                    "example": "0"
                  },
                  "doh_provider": {
                    "type": "string",
                    "description": "DoH服务商：cloudflare/google/alibaba",
                    "example": "cloudflare"
                  }
                },
                "required": [
                  "domain"
                ]
              },
              "example": {
                "domain": "example.com",
                "type": "A",
                "server": "8.8.8.8,1.1.1.1",
                "timeout": "5",
                "doh": "0",
                "doh_provider": "cloudflare"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "domain": "example.com",
                    "type": "A",
                    "server": "114.114.114.114",
                    "transport": "udp",
                    "rcode": 0,
                    "rcode_text": "NOERROR",
                    "elapsed_ms": 32,
                    "answers": [
                      {
                        "type": "A",
                        "name": "example.com",
                        "ttl": 300,
                        "value": "93.184.216.34"
                      }
                    ],
                    "truncated": false
                  },
                  "request_id": "req_abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    },
    "/api/bili-danmaku": {
      "post": {
        "operationId": "bili_danmaku",
        "summary": "B站弹幕分析",
        "description": "输入B站BV/AV号，拉取视频弹幕并分析高频重复弹幕、热词/梗、整体情感倾向（正向/负向/中性）。",
        "tags": [
          "content"
        ],
        "x-pricing": {
          "mode": 1,
          "point_cost": 0,
          "qps_limit": 2,
          "daily_free_limit": 20,
          "no_key_daily": 10
        },
        "x-doc-url": "https://www.apizero.cn/aidocs/bili-danmaku",
        "x-doc-markdown-url": "https://www.apizero.cn/aidocs/bili-danmaku/raw.md",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "video": {
                    "type": "string",
                    "description": "AV号或BV号",
                    "example": "BV1w8RBBUEYy"
                  },
                  "limit": {
                    "type": "number",
                    "description": "返回高频弹幕/热词数量",
                    "example": "10"
                  },
                  "timeout": {
                    "type": "number",
                    "description": "超时秒数",
                    "example": "15"
                  },
                  "page_mode": {
                    "type": "string",
                    "description": "all=抓全部分P / first=只抓第一页",
                    "example": "all"
                  }
                },
                "required": [
                  "video"
                ]
              },
              "example": {
                "video": "BV1w8RBBUEYy",
                "limit": "10",
                "timeout": "15",
                "page_mode": "all"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkEnvelope"
                },
                "example": {
                  "code": 0,
                  "msg": "成功",
                  "data": {
                    "video": {
                      "bvid": "BV1w8RBBUEYy",
                      "title": "视频标题",
                      "duration": 300
                    },
                    "danmaku_summary": {
                      "total_count": 1500,
                      "top_meme": "哈哈哈哈",
                      "top_repeat_comments": [
                        {
                          "text": "哈哈哈哈",
                          "count": 120
                        }
                      ],
                      "top_terms": [
                        {
                          "term": "牛逼",
                          "count": 200
                        }
                      ]
                    },
                    "sentiment_summary": {
                      "label": "positive",
                      "average_score": 0.72
                    }
                  },
                  "request_id": "req_abc123"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    }
  }
}