{
 "openapi": "3.1.0",
 "info": {
  "title": "哥飞 SEO 工具箱 API",
  "version": "1.0",
  "description": "关键词、域名、网站流量、SERP、页面体检等 SEO 数据与分析接口。SEO 工具调用只扣积分余额（购买的积分与邀请奖励的积分网站与 API 通用，每日赠送额度仅限网站内使用）。数据服务沿用 new.web.cafe 解锁规则，不额外扣除 SEO 积分。文档：https://seo.web.cafe/api/"
 },
 "servers": [
  {
   "url": "https://seo.web.cafe"
  }
 ],
 "security": [
  {
   "bearer": []
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer",
    "description": "在 https://seo.web.cafe/api/ 登录后生成的 wc_mcp_ 令牌"
   }
  },
  "schemas": {
   "DiscoveryKeyword": {
    "type": "object",
    "required": [
     "keyword",
     "category",
     "kind",
     "trend_now",
     "heat_ratio",
     "growth_pct",
     "appear_date",
     "burst_date",
     "pushed_on",
     "page_count",
     "targeted_count",
     "verdict",
     "verdict_reasons",
     "verdict_suggestion",
     "brief",
     "sources",
     "spark",
     "page_url",
     "slug",
     "detail_api_url"
    ],
    "properties": {
     "keyword": {
      "type": "string",
      "description": "关键词。"
     },
     "category": {
      "type": "string",
      "description": "保存的关键词分类；缺失时为空字符串。"
     },
     "kind": {
      "type": "string",
      "description": "关键词类型：new 新词、resurgence 二次爆火、old 老词、watch 观察中、spike 短暂热度尖峰。"
     },
     "trend_now": {
      "type": "string",
      "description": "当前走势描述；缺失时为空字符串。"
     },
     "heat_ratio": {
      "type": [
       "number",
       "null"
      ],
      "description": "近7天相对GPTs基准词的热度倍数，不是搜索量；未测得时为null。"
     },
     "growth_pct": {
      "type": [
       "number",
       "null"
      ],
      "description": "近7天相对前7天的涨幅，单位为百分比；例如20表示20%，前期为0或未计算时为null。"
     },
     "appear_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "记录的关键词出现日期；未知为null。"
     },
     "burst_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "记录的爆发日期；未知为null。"
     },
     "pushed_on": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "记录的推送日期；未记录时为null。"
     },
     "page_count": {
      "type": "integer",
      "description": "已保存的关联关键词去重数量，可用作内页候选数；缺少记录时为0，不是全网页面总数。"
     },
     "targeted_count": {
      "type": "integer",
      "description": "已保存SERP页面中标记为针对该关键词的页面数；缺少记录时为0。"
     },
     "verdict": {
      "type": "string",
      "description": "保存的机会判断；尚无判断时为空字符串。"
     },
     "verdict_reasons": {
      "type": "array",
      "description": "机会判断的理由；无记录时为空数组。",
      "items": {
       "type": "string"
      }
     },
     "verdict_suggestion": {
      "type": "string",
      "description": "保存的行动建议；无记录时为空字符串。"
     },
     "brief": {
      "type": [
       "object",
       "null"
      ],
      "description": "已保存的关键词分析摘要；无摘要时为null。",
      "properties": {
       "what": {
        "type": "string",
        "description": "关键词所指事物或需求。"
       },
       "want": {
        "type": "string",
        "description": "用户搜索意图和目标。"
       },
       "how": {
        "type": "string",
        "description": "对应的建站或产品建议。"
       }
      }
     },
     "sources": {
      "type": "array",
      "description": "保存的数据来源标识；无记录时为空数组。",
      "items": {
       "type": "string"
      }
     },
     "spark": {
      "type": "array",
      "maxItems": 30,
      "description": "最近最多30个已保存的日趋势值，按时间顺序排列，不是实际搜索量；缺测值可为null。",
      "items": {
       "type": [
        "number",
        "null"
       ]
      }
     },
     "page_url": {
      "type": [
       "string",
       "null"
      ],
      "format": "uri",
      "description": "NEW关键词详情页；缺少词库记录时为null，网页另行判断访问权限。"
     },
     "slug": {
      "type": "string",
      "description": "关键词标识，用于详情请求。"
     },
     "detail_api_url": {
      "type": "string",
      "description": "详情 API 相对地址。"
     }
    },
    "additionalProperties": false
   },
   "DiscoveryKeywordWord": {
    "type": "object",
    "required": [
     "keyword",
     "category",
     "kind",
     "trend_now",
     "heat_ratio",
     "growth_pct",
     "appear_date",
     "burst_date",
     "pushed_on",
     "page_count",
     "targeted_count",
     "verdict",
     "verdict_reasons",
     "verdict_suggestion",
     "brief",
     "sources",
     "spark",
     "page_url",
     "slug",
     "core_key",
     "notes",
     "is_game",
     "daily",
     "weekly",
     "daily_from",
     "weekly_from",
     "serp",
     "serp_pages",
     "serp_on",
     "serp_pages_on",
     "heat_on",
     "appear_precision",
     "peak_date",
     "first_seen_on",
     "last_seen_on",
     "checked_on",
     "new_site_count"
    ],
    "properties": {
     "keyword": {
      "type": "string",
      "description": "关键词。"
     },
     "category": {
      "type": "string",
      "description": "保存的关键词分类；缺失时为空字符串。"
     },
     "kind": {
      "type": "string",
      "description": "关键词类型：new 新词、resurgence 二次爆火、old 老词、watch 观察中、spike 短暂热度尖峰。"
     },
     "trend_now": {
      "type": "string",
      "description": "当前走势描述；缺失时为空字符串。"
     },
     "heat_ratio": {
      "type": [
       "number",
       "null"
      ],
      "description": "近7天相对GPTs基准词的热度倍数，不是搜索量；未测得时为null。"
     },
     "growth_pct": {
      "type": [
       "number",
       "null"
      ],
      "description": "近7天相对前7天的涨幅，单位为百分比；例如20表示20%，前期为0或未计算时为null。"
     },
     "appear_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "记录的关键词出现日期；未知为null。"
     },
     "burst_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "记录的爆发日期；未知为null。"
     },
     "pushed_on": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "记录的推送日期；未记录时为null。"
     },
     "page_count": {
      "type": "integer",
      "description": "已保存的关联关键词去重数量，可用作内页候选数；缺少记录时为0，不是全网页面总数。"
     },
     "targeted_count": {
      "type": "integer",
      "description": "已保存SERP页面中标记为针对该关键词的页面数；缺少记录时为0。"
     },
     "verdict": {
      "type": "string",
      "description": "保存的机会判断；尚无判断时为空字符串。"
     },
     "verdict_reasons": {
      "type": "array",
      "description": "机会判断的理由；无记录时为空数组。",
      "items": {
       "type": "string"
      }
     },
     "verdict_suggestion": {
      "type": "string",
      "description": "保存的行动建议；无记录时为空字符串。"
     },
     "brief": {
      "type": [
       "object",
       "null"
      ],
      "description": "已保存的关键词分析摘要；无摘要时为null。",
      "properties": {
       "what": {
        "type": "string",
        "description": "关键词所指事物或需求。"
       },
       "want": {
        "type": "string",
        "description": "用户搜索意图和目标。"
       },
       "how": {
        "type": "string",
        "description": "对应的建站或产品建议。"
       }
      }
     },
     "sources": {
      "type": "array",
      "description": "保存的数据来源标识；无记录时为空数组。",
      "items": {
       "type": "string"
      }
     },
     "spark": {
      "type": "array",
      "maxItems": 30,
      "description": "最近最多30个已保存的日趋势值，按时间顺序排列，不是实际搜索量；缺测值可为null。",
      "items": {
       "type": [
        "number",
        "null"
       ]
      }
     },
     "page_url": {
      "type": [
       "string",
       "null"
      ],
      "format": "uri",
      "description": "NEW关键词详情页；缺少词库记录时为null，网页另行判断访问权限。"
     },
     "slug": {
      "type": "string",
      "description": "关键词标识，用于详情请求。"
     },
     "core_key": {
      "type": "string",
      "description": "同义写法分组键。"
     },
     "notes": {
      "type": [
       "string",
       "null"
      ],
      "description": "保存的分析备注。"
     },
     "is_game": {
      "type": [
       "boolean",
       "null"
      ]
     },
     "daily": {
      "type": "array",
      "items": {
       "type": "number",
       "description": "日趋势值。"
      }
     },
     "weekly": {
      "type": "array",
      "items": {
       "type": "number",
       "description": "周趋势值。"
      }
     },
     "daily_from": {
      "type": [
       "string",
       "null"
      ],
      "description": "日序列起始日期。",
      "format": "date"
     },
     "weekly_from": {
      "type": [
       "string",
       "null"
      ],
      "description": "周序列起始日期。",
      "format": "date"
     },
     "serp": {
      "type": [
       "object",
       "null"
      ],
      "description": "已保存的 SERP 网站资料，包含 domains 与 new_sites。",
      "additionalProperties": true
     },
     "serp_pages": {
      "type": [
       "object",
       "null"
      ],
      "description": "已保存的 SERP 页面资料，包含 pages 及页面分析字段。",
      "additionalProperties": true
     },
     "serp_on": {
      "type": [
       "string",
       "null"
      ],
      "description": "SERP 网站采集日期。",
      "format": "date"
     },
     "serp_pages_on": {
      "type": [
       "string",
       "null"
      ],
      "description": "SERP 页面采集日期。",
      "format": "date"
     },
     "heat_on": {
      "type": [
       "string",
       "null"
      ],
      "description": "热度采集日期。",
      "format": "date"
     },
     "appear_precision": {
      "type": [
       "string",
       "null"
      ],
      "description": "出现日期精度。"
     },
     "peak_date": {
      "type": [
       "string",
       "null"
      ],
      "description": "峰值日期。",
      "format": "date"
     },
     "first_seen_on": {
      "type": [
       "string",
       "null"
      ],
      "description": "首次收录日期。",
      "format": "date"
     },
     "last_seen_on": {
      "type": [
       "string",
       "null"
      ],
      "description": "最近发现日期。",
      "format": "date"
     },
     "checked_on": {
      "type": [
       "string",
       "null"
      ],
      "description": "最近复核日期。",
      "format": "date"
     },
     "new_site_count": {
      "type": "integer",
      "description": "SERP 中记录的新网站数。"
     }
    },
    "additionalProperties": false
   },
   "DiscoveryKeywordRelation": {
    "type": "object",
    "required": [
     "keyword",
     "rel",
     "best_rise",
     "best_label",
     "best_rank",
     "seen_days",
     "first_seen_on",
     "last_seen_on",
     "slug",
     "heat_ratio",
     "kind",
     "trend_now",
     "appear_date"
    ],
    "properties": {
     "keyword": {
      "type": "string",
      "description": "关联词。"
     },
     "rel": {
      "type": "string",
      "description": "关系类型：rising、top 或 longtail。"
     },
     "best_rise": {
      "type": [
       "integer",
       "null"
      ],
      "description": "最高涨幅。"
     },
     "best_label": {
      "type": [
       "string",
       "null"
      ],
      "description": "涨幅标签。"
     },
     "best_rank": {
      "type": [
       "integer",
       "null"
      ],
      "description": "最佳排名。"
     },
     "seen_days": {
      "type": "integer",
      "description": "出现天数。"
     },
     "first_seen_on": {
      "type": [
       "string",
       "null"
      ],
      "description": "关系首次发现日期。",
      "format": "date"
     },
     "last_seen_on": {
      "type": [
       "string",
       "null"
      ],
      "description": "关系最近发现日期。",
      "format": "date"
     },
     "slug": {
      "type": [
       "string",
       "null"
      ],
      "description": "词库标识；未收录时为 null。"
     },
     "heat_ratio": {
      "type": [
       "number",
       "null"
      ],
      "description": "热度倍数。"
     },
     "kind": {
      "type": [
       "string",
       "null"
      ],
      "description": "类型。"
     },
     "trend_now": {
      "type": [
       "string",
       "null"
      ],
      "description": "当前走势。"
     },
     "appear_date": {
      "type": [
       "string",
       "null"
      ],
      "description": "出现日期。",
      "format": "date"
     }
    },
    "additionalProperties": false
   },
   "DiscoveryHostedSite": {
    "type": "object",
    "required": [
     "site",
     "platform",
     "first_period",
     "first_seen",
     "months_clicks",
     "peak_clicks",
     "latest28_clicks",
     "months",
     "top_keywords",
     "brand",
     "pages",
     "title",
     "description",
     "detail_api_url",
     "page_url"
    ],
    "properties": {
     "site": {
      "type": "string",
      "description": "网站标识，可能包含路径。"
     },
     "platform": {
      "type": "string",
      "description": "托管平台域名。"
     },
     "first_period": {
      "type": "string",
      "description": "网站或关键词首次收录的月份；该月份的流量仅在账户有权访问时返回。"
     },
     "first_seen": {
      "type": "string",
      "description": "首次出现日期。"
     },
     "months_clicks": {
      "type": "object",
      "additionalProperties": {
       "type": "number"
      },
      "description": "已授权展示周期的估算自然搜索点击；YYYY-MM 或 28d 为键。未提供的周期不等于 0。"
     },
     "peak_clicks": {
      "type": "number",
      "description": "已授权整月记录中的最大值。"
     },
     "latest28_clicks": {
      "type": [
       "number",
       "null"
      ],
      "description": "最新近 28 天报告的估算点击；最新报告未授权时为 null。"
     },
     "months": {
      "type": "integer",
      "description": "有已授权记录的整月数。"
     },
     "top_keywords": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "kw",
        "clicks"
       ],
       "properties": {
        "kw": {
         "type": "string",
         "description": "主要关键词。"
        },
        "clicks": {
         "type": "number",
         "description": "该词在用于排序的已授权报告中的点击合计；滚动窗口不代表独立月份。"
        }
       },
       "additionalProperties": false
      },
      "maxItems": 3
     },
     "brand": {
      "type": "boolean"
     },
     "pages": {
      "type": "integer",
      "description": "已授权记录中的去重页面数。"
     },
     "title": {
      "type": "string",
      "description": "保存的网站标题，缺失为空字符串。"
     },
     "description": {
      "type": "string",
      "description": "保存的网站简介，缺失为空字符串。"
     },
     "detail_api_url": {
      "type": "string",
      "description": "详情 API 相对地址。"
     },
     "page_url": {
      "type": "string",
      "description": "对应网页地址。",
      "format": "uri"
     }
    },
    "additionalProperties": false
   },
   "DiscoveryHostedKeyword": {
    "type": "object",
    "required": [
     "kw",
     "first_period",
     "first_seen",
     "months_clicks",
     "peak_clicks",
     "latest28_clicks",
     "months_sites",
     "sites",
     "top_sites",
     "detail_api_url",
     "page_url"
    ],
    "properties": {
     "kw": {
      "type": "string",
      "description": "关键词。"
     },
     "first_period": {
      "type": "string",
      "description": "网站或关键词首次收录的月份；该月份的流量仅在账户有权访问时返回。"
     },
     "first_seen": {
      "type": "string",
      "description": "首次出现日期。"
     },
     "months_clicks": {
      "type": "object",
      "additionalProperties": {
       "type": "number"
      },
      "description": "已授权展示周期的估算自然搜索点击；YYYY-MM 或 28d 为键。未提供的周期不等于 0。"
     },
     "peak_clicks": {
      "type": "number",
      "description": "已授权整月记录中的最大值。"
     },
     "latest28_clicks": {
      "type": [
       "number",
       "null"
      ],
      "description": "最新近 28 天报告的估算点击；最新报告未授权时为 null。"
     },
     "months_sites": {
      "type": "object",
      "additionalProperties": {
       "type": "number"
      },
      "description": "已授权展示周期的网站数。"
     },
     "sites": {
      "type": "integer",
      "description": "已授权记录中的去重网站数。"
     },
     "top_sites": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "site",
        "clicks"
       ],
       "properties": {
        "site": {
         "type": "string",
         "description": "网站标识。"
        },
        "clicks": {
         "type": "number",
         "description": "用于排序的已授权报告点击合计。"
        }
       },
       "additionalProperties": false
      },
      "maxItems": 5
     },
     "detail_api_url": {
      "type": "string",
      "description": "详情 API 相对地址。"
     },
     "page_url": {
      "type": "string",
      "description": "对应网页地址。",
      "format": "uri"
     }
    },
    "additionalProperties": false
   },
   "DiscoveryIncomeSite": {
    "type": "object",
    "required": [
     "domain",
     "channels",
     "first_period",
     "first_seen",
     "months_visits",
     "months_count",
     "peak_visits",
     "latest_visits",
     "global_rank",
     "category",
     "direction",
     "detail_api_url",
     "page_url"
    ],
    "properties": {
     "domain": {
      "type": "string",
      "description": "网站域名。"
     },
     "channels": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "已授权记录中的渠道。"
      }
     },
     "first_period": {
      "type": "string",
      "description": "网站或关键词首次收录的月份；该月份的流量仅在账户有权访问时返回。"
     },
     "first_seen": {
      "type": "string",
      "description": "首次出现日期。"
     },
     "months_visits": {
      "type": "object",
      "additionalProperties": {
       "type": "number"
      },
      "description": "已授权展示报告的估算访问量，不是营收；滚动 28 天与月报分别列出，不相加。"
     },
     "months_count": {
      "type": "integer",
      "description": "已授权整月数量。"
     },
     "peak_visits": {
      "type": "number",
      "description": "已授权整月访问峰值。"
     },
     "latest_visits": {
      "type": [
       "number",
       "null"
      ],
      "description": "最新展示周期访问量；该周期存在未授权渠道或没有可用周期时为 null。"
     },
     "global_rank": {
      "type": [
       "integer",
       "null"
      ],
      "description": "最新已授权记录中的全球排名。"
     },
     "category": {
      "type": [
       "string",
       "null"
      ],
      "description": "同一记录的分类。"
     },
     "direction": {
      "type": "string",
      "enum": [
       "out",
       "in"
      ],
      "description": "流量方向：out 为支付渠道流向网站，in 为网站流向支付渠道。"
     },
     "detail_api_url": {
      "type": "string",
      "description": "详情 API 相对地址。"
     },
     "page_url": {
      "type": "string",
      "description": "对应网页地址。",
      "format": "uri"
     }
    },
    "additionalProperties": false
   },
   "KeywordSearchSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "items",
       "page",
       "page_size",
       "total",
       "has_more"
      ],
      "properties": {
       "items": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/DiscoveryKeyword"
        },
        "maxItems": 30
       },
       "page": {
        "type": "integer",
        "minimum": 1
       },
       "page_size": {
        "type": "integer",
        "const": 30
       },
       "total": {
        "type": "integer",
        "minimum": 0
       },
       "has_more": {
        "type": "boolean"
       }
      }
     }
    }
   },
   "KeywordDetailSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "word",
       "children",
       "parents",
       "synonyms"
      ],
      "properties": {
       "word": {
        "$ref": "#/components/schemas/DiscoveryKeywordWord"
       },
       "children": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/DiscoveryKeywordRelation"
        }
       },
       "parents": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/DiscoveryKeywordRelation"
        },
        "maxItems": 40
       },
       "synonyms": {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "keyword",
          "slug",
          "heat_ratio",
          "kind"
         ],
         "properties": {
          "keyword": {
           "type": "string",
           "description": "同义词。"
          },
          "slug": {
           "type": "string",
           "description": "词库标识。"
          },
          "heat_ratio": {
           "type": [
            "number",
            "null"
           ],
           "description": "热度倍数。"
          },
          "kind": {
           "type": "string",
           "description": "词类型。"
          }
         },
         "additionalProperties": false
        },
        "maxItems": 40
       }
      }
     }
    }
   },
   "LaunchSearchSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "items",
       "page",
       "page_size",
       "total",
       "has_more"
      ],
      "properties": {
       "items": {
        "type": "array",
        "items": {
         "type": "object",
         "additionalProperties": false,
         "properties": {
          "source": {
           "type": "string",
           "description": "来源平台，如 hacker_news、x；其他来源使用源数据中的平台标识。"
          },
          "source_url": {
           "type": [
            "string",
            "null"
           ],
           "format": "uri",
           "description": "来源帖子链接；未知为null。"
          },
          "title": {
           "type": [
            "string",
            "null"
           ],
           "description": "项目或帖子标题；未知为null。"
          },
          "url": {
           "type": [
            "string",
            "null"
           ],
           "format": "uri",
           "description": "项目目标链接；未知为null。"
          },
          "domain": {
           "type": [
            "string",
            "null"
           ],
           "description": "项目链接域名；未知为null。"
          },
          "link_type": {
           "type": [
            "string",
            "null"
           ],
           "enum": [
            "site",
            "repo",
            "app",
            "other",
            null
           ],
           "description": "目标类型：网站、代码仓库、应用或其他；未知为null。"
          },
          "posted_at": {
           "type": [
            "string",
            "null"
           ],
           "format": "date-time",
           "description": "原帖发布时间，ISO 8601 UTC；未知为null。"
          },
          "score": {
           "type": [
            "integer",
            "null"
           ],
           "minimum": 0,
           "description": "来源保存的帖子评分；不同平台不可直接比较，未知为null。"
          },
          "comment_count": {
           "type": [
            "integer",
            "null"
           ],
           "minimum": 0,
           "description": "保存的评论数量；未知为null。"
          },
          "domain_registered": {
           "type": [
            "string",
            "null"
           ],
           "format": "date",
           "description": "域名注册日期；未知或链接指向公共平台时为null。"
          },
          "monthly_traffic": {
           "type": [
            "string",
            "null"
           ],
           "description": "保存的月流量文本，保留原单位或格式；未知或公共平台链接时为null。"
          },
          "analyzed": {
           "type": "boolean",
           "description": "是否已有保存的分析报告。false 不表示一定会进行分析。"
          },
          "purpose": {
           "type": [
            "string",
            "null"
           ],
           "description": "分析记录中的项目用途；未分析或未提供时为null。"
          },
          "audience": {
           "type": [
            "string",
            "null"
           ],
           "description": "分析记录中的目标用户；未分析或未提供时为null。"
          },
          "category": {
           "type": [
            "string",
            "null"
           ],
           "description": "分析记录中的项目分类；未分析或未提供时为null。"
          },
          "motive_type": {
           "type": [
            "string",
            "null"
           ],
           "description": "分析记录中的创作动机类型；未分析或未提供时为null。"
          },
          "motive_stated": {
           "type": [
            "boolean",
            "null"
           ],
           "description": "作者是否明确表达动机；false表示未明确表达，未分析时为null。"
          },
          "motive": {
           "type": [
            "string",
            "null"
           ],
           "description": "保存的动机说明；未分析或未提供时为null。"
          },
          "motive_evidence": {
           "type": [
            "string",
            "null"
           ],
           "description": "支持动机判断的原文证据；未分析或未提供时为null。"
          },
          "keyword": {
           "type": [
            "string",
            "null"
           ],
           "description": "分析提取的相关关键词；未分析或未提供时为null。"
          },
          "keyword_domain": {
           "type": [
            "boolean",
            "null"
           ],
           "description": "域名主体是否由该关键词组成；未分析或没有关键词时为null。"
          },
          "monetization": {
           "type": [
            "string",
            "null"
           ],
           "description": "分析记录中的变现方式；未分析或未提供时为null。"
          }
         },
         "required": [
          "source",
          "source_url",
          "title",
          "url",
          "domain",
          "link_type",
          "posted_at",
          "score",
          "comment_count",
          "domain_registered",
          "monthly_traffic",
          "analyzed",
          "purpose",
          "audience",
          "category",
          "motive_type",
          "motive_stated",
          "motive",
          "motive_evidence",
          "keyword",
          "keyword_domain",
          "monetization"
         ]
        },
        "maxItems": 30
       },
       "page": {
        "type": "integer",
        "minimum": 1
       },
       "page_size": {
        "type": "integer",
        "const": 30
       },
       "total": {
        "type": "integer",
        "minimum": 0
       },
       "has_more": {
        "type": "boolean"
       }
      }
     }
    }
   },
   "HostedSiteSearchSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "items",
       "page",
       "page_size",
       "total",
       "has_more",
       "periods"
      ],
      "properties": {
       "items": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/DiscoveryHostedSite"
        },
        "maxItems": 50
       },
       "page": {
        "type": "integer",
        "minimum": 1
       },
       "page_size": {
        "type": "integer",
        "const": 50
       },
       "total": {
        "type": "integer",
        "minimum": 0
       },
       "has_more": {
        "type": "boolean"
       },
       "periods": {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "period",
          "as_of",
          "captured_on",
          "platforms"
         ],
         "properties": {
          "period": {
           "type": "string",
           "description": "YYYY-MM 或 28d，对应逐期数值的键。"
          },
          "as_of": {
           "type": [
            "string",
            "null"
           ],
           "description": "近 28 天来源统计截止日期；未知或不一致时为 null。",
           "format": "date"
          },
          "captured_on": {
           "type": [
            "string",
            "null"
           ],
           "description": "近 28 天实际采集日期；不同平台不一致时为 null。",
           "format": "date"
          },
          "platforms": {
           "type": "array",
           "items": {
            "type": "string",
            "description": "该周期已授权的平台。"
           }
          }
         },
         "additionalProperties": false
        }
       }
      }
     }
    }
   },
   "HostedSiteDetailSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "info",
       "periods",
       "pages"
      ],
      "properties": {
       "info": {
        "$ref": "#/components/schemas/DiscoveryHostedSite"
       },
       "periods": {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "period",
          "as_of",
          "captured_on",
          "platforms"
         ],
         "properties": {
          "period": {
           "type": "string",
           "description": "YYYY-MM 或 28d，对应逐期数值的键。"
          },
          "as_of": {
           "type": [
            "string",
            "null"
           ],
           "description": "近 28 天来源统计截止日期；未知或不一致时为 null。",
           "format": "date"
          },
          "captured_on": {
           "type": [
            "string",
            "null"
           ],
           "description": "近 28 天实际采集日期；不同平台不一致时为 null。",
           "format": "date"
          },
          "platforms": {
           "type": "array",
           "items": {
            "type": "string",
            "description": "该周期已授权的平台。"
           }
          }
         },
         "additionalProperties": false
        }
       },
       "pages": {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "url",
          "top_keyword",
          "keywords",
          "months_clicks"
         ],
         "properties": {
          "url": {
           "type": "string",
           "description": "页面地址。"
          },
          "top_keyword": {
           "type": "string",
           "description": "主要关键词。"
          },
          "keywords": {
           "type": [
            "integer",
            "null"
           ],
           "description": "该页的关键词数。"
          },
          "months_clicks": {
           "type": "object",
           "additionalProperties": {
            "type": "number"
           },
           "description": "已授权展示周期的估算自然搜索点击；YYYY-MM 或 28d 为键。未提供的周期不等于 0。"
          }
         },
         "additionalProperties": false
        },
        "maxItems": 200
       }
      }
     }
    }
   },
   "HostedKeywordDetailSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "info",
       "periods",
       "sites"
      ],
      "properties": {
       "info": {
        "$ref": "#/components/schemas/DiscoveryHostedKeyword"
       },
       "periods": {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "period",
          "as_of",
          "captured_on",
          "platforms"
         ],
         "properties": {
          "period": {
           "type": "string",
           "description": "YYYY-MM 或 28d，对应逐期数值的键。"
          },
          "as_of": {
           "type": [
            "string",
            "null"
           ],
           "description": "近 28 天来源统计截止日期；未知或不一致时为 null。",
           "format": "date"
          },
          "captured_on": {
           "type": [
            "string",
            "null"
           ],
           "description": "近 28 天实际采集日期；不同平台不一致时为 null。",
           "format": "date"
          },
          "platforms": {
           "type": "array",
           "items": {
            "type": "string",
            "description": "该周期已授权的平台。"
           }
          }
         },
         "additionalProperties": false
        }
       },
       "sites": {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "site",
          "platform",
          "months_clicks",
          "detail_api_url"
         ],
         "properties": {
          "site": {
           "type": "string",
           "description": "网站标识。"
          },
          "platform": {
           "type": "string",
           "description": "平台域名。"
          },
          "months_clicks": {
           "type": "object",
           "additionalProperties": {
            "type": "number"
           },
           "description": "已授权展示周期的估算自然搜索点击；YYYY-MM 或 28d 为键。未提供的周期不等于 0。"
          },
          "detail_api_url": {
           "type": "string",
           "description": "详情 API 相对地址。"
          }
         },
         "additionalProperties": false
        },
        "maxItems": 200
       }
      }
     }
    }
   },
   "IncomeSiteSearchSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "items",
       "page",
       "page_size",
       "total",
       "has_more",
       "periods"
      ],
      "properties": {
       "items": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/DiscoveryIncomeSite"
        },
        "maxItems": 50
       },
       "page": {
        "type": "integer",
        "minimum": 1
       },
       "page_size": {
        "type": "integer",
        "const": 50
       },
       "total": {
        "type": "integer",
        "minimum": 0
       },
       "has_more": {
        "type": "boolean"
       },
       "periods": {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "host",
          "channel",
          "direction",
          "period",
          "date_28d",
          "source_period"
         ],
         "properties": {
          "host": {
           "type": "string",
           "description": "支付渠道域名。"
          },
          "channel": {
           "type": "string",
           "description": "支付渠道标识。"
          },
          "direction": {
           "type": "string",
           "enum": [
            "out",
            "in"
           ],
           "description": "流量方向：out 为支付渠道流向网站，in 为网站流向支付渠道。"
          },
          "period": {
           "type": "string",
           "description": "主表为 YYYY-MM 或 28d；历史序列为采集日期 YYYY-MM-DD。"
          },
          "date_28d": {
           "type": [
            "string",
            "null"
           ],
           "description": "近 28 天报告的采集日期；月报为 null。",
           "format": "date"
          },
          "source_period": {
           "type": [
            "object",
            "null"
           ],
           "additionalProperties": true,
           "description": "来源保存的统计范围；from/to 可能使用 YYYY|MM|DD，未知为 null。"
          }
         },
         "additionalProperties": false
        }
       }
      }
     }
    }
   },
   "IncomeSiteDetailSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "domain",
       "global_rank",
       "category",
       "profiles",
       "traffic",
       "periods",
       "history_month",
       "history",
       "history_periods",
       "page_url"
      ],
      "properties": {
       "domain": {
        "type": "string",
        "description": "网站域名。"
       },
       "global_rank": {
        "type": [
         "integer",
         "null"
        ],
        "description": "最新已授权排名。"
       },
       "category": {
        "type": "string",
        "description": "网站分类。"
       },
       "profiles": {
        "type": "object",
        "required": [
         "out",
         "in"
        ],
        "properties": {
         "out": {
          "anyOf": [
           {
            "$ref": "#/components/schemas/DiscoveryIncomeSite"
           },
           {
            "type": "null"
           }
          ]
         },
         "in": {
          "anyOf": [
           {
            "$ref": "#/components/schemas/DiscoveryIncomeSite"
           },
           {
            "type": "null"
           }
          ]
         }
        },
        "additionalProperties": false
       },
       "traffic": {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "host",
          "direction",
          "months_visits",
          "shares",
          "children",
          "children_period"
         ],
         "properties": {
          "host": {
           "type": "string",
           "description": "支付渠道域名。"
          },
          "direction": {
           "type": "string",
           "enum": [
            "out",
            "in"
           ],
           "description": "流量方向：out 为支付渠道流向网站，in 为网站流向支付渠道。"
          },
          "months_visits": {
           "type": "object",
           "additionalProperties": {
            "type": "number"
           },
           "description": "各已授权周期的访问量。"
          },
          "shares": {
           "type": "object",
           "additionalProperties": {
            "type": "number"
           },
           "description": "各已授权周期的来源占比；未知时省略键。"
          },
          "children": {
           "type": "array",
           "items": {
            "type": "object",
            "required": [
             "domain",
             "visits",
             "share",
             "is_new"
            ],
            "properties": {
             "domain": {
              "type": "string",
              "description": "子域名。"
             },
             "visits": {
              "type": [
               "number",
               "null"
              ],
              "description": "估算访问量。"
             },
             "share": {
              "type": [
               "number",
               "null"
              ],
              "description": "来源占比。"
             },
             "is_new": {
              "type": "boolean"
             }
            },
            "additionalProperties": false
           }
          },
          "children_period": {
           "type": [
            "string",
            "null"
           ],
           "description": "子站明细所属周期，对应 periods 中该渠道及方向的报告。"
          }
         },
         "additionalProperties": false
        }
       },
       "periods": {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "host",
          "channel",
          "direction",
          "period",
          "date_28d",
          "source_period"
         ],
         "properties": {
          "host": {
           "type": "string",
           "description": "支付渠道域名。"
          },
          "channel": {
           "type": "string",
           "description": "支付渠道标识。"
          },
          "direction": {
           "type": "string",
           "enum": [
            "out",
            "in"
           ],
           "description": "流量方向：out 为支付渠道流向网站，in 为网站流向支付渠道。"
          },
          "period": {
           "type": "string",
           "description": "主表为 YYYY-MM 或 28d；历史序列为采集日期 YYYY-MM-DD。"
          },
          "date_28d": {
           "type": [
            "string",
            "null"
           ],
           "description": "近 28 天报告的采集日期；月报为 null。",
           "format": "date"
          },
          "source_period": {
           "type": [
            "object",
            "null"
           ],
           "additionalProperties": true,
           "description": "来源保存的统计范围；from/to 可能使用 YYYY|MM|DD，未知为 null。"
          }
         },
         "additionalProperties": false
        }
       },
       "history_month": {
        "type": [
         "string",
         "null"
        ],
        "description": "默认历史月份，为最新已授权报告月份。"
       },
       "history": {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "host",
          "direction",
          "months_visits",
          "shares",
          "children",
          "children_period"
         ],
         "properties": {
          "host": {
           "type": "string",
           "description": "支付渠道域名。"
          },
          "direction": {
           "type": "string",
           "enum": [
            "out",
            "in"
           ],
           "description": "流量方向：out 为支付渠道流向网站，in 为网站流向支付渠道。"
          },
          "months_visits": {
           "type": "object",
           "additionalProperties": {
            "type": "number"
           },
           "description": "各已授权周期的访问量。"
          },
          "shares": {
           "type": "object",
           "additionalProperties": {
            "type": "number"
           },
           "description": "各已授权周期的来源占比；未知时省略键。"
          },
          "children": {
           "type": "array",
           "items": {
            "type": "object",
            "required": [
             "domain",
             "visits",
             "share",
             "is_new"
            ],
            "properties": {
             "domain": {
              "type": "string",
              "description": "子域名。"
             },
             "visits": {
              "type": [
               "number",
               "null"
              ],
              "description": "估算访问量。"
             },
             "share": {
              "type": [
               "number",
               "null"
              ],
              "description": "来源占比。"
             },
             "is_new": {
              "type": "boolean"
             }
            },
            "additionalProperties": false
           }
          },
          "children_period": {
           "type": [
            "string",
            "null"
           ],
           "description": "子站明细所属周期，对应 periods 中该渠道及方向的报告。"
          }
         },
         "additionalProperties": false
        }
       },
       "history_periods": {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "host",
          "channel",
          "direction",
          "period",
          "date_28d",
          "source_period"
         ],
         "properties": {
          "host": {
           "type": "string",
           "description": "支付渠道域名。"
          },
          "channel": {
           "type": "string",
           "description": "支付渠道标识。"
          },
          "direction": {
           "type": "string",
           "enum": [
            "out",
            "in"
           ],
           "description": "流量方向：out 为支付渠道流向网站，in 为网站流向支付渠道。"
          },
          "period": {
           "type": "string",
           "description": "主表为 YYYY-MM 或 28d；历史序列为采集日期 YYYY-MM-DD。"
          },
          "date_28d": {
           "type": [
            "string",
            "null"
           ],
           "description": "近 28 天报告的采集日期；月报为 null。",
           "format": "date"
          },
          "source_period": {
           "type": [
            "object",
            "null"
           ],
           "additionalProperties": true,
           "description": "来源保存的统计范围；from/to 可能使用 YYYY|MM|DD，未知为 null。"
          }
         },
         "additionalProperties": false
        }
       },
       "page_url": {
        "type": "string",
        "description": "对应网页地址。",
        "format": "uri"
       }
      }
     }
    }
   },
   "IncomeMonthSummary": {
    "type": "object",
    "additionalProperties": false,
    "required": [
     "month",
     "has_monthly",
     "dates_28d"
    ],
    "properties": {
     "month": {
      "type": "string",
      "pattern": "^\\d{4}-(0[1-9]|1[0-2])$",
      "description": "报告月份YYYY-MM。"
     },
     "has_monthly": {
      "type": "boolean",
      "description": "该月是否有可读取的整月报告。"
     },
     "dates_28d": {
      "type": "array",
      "description": "该月可读取的28d快照采集日期，升序排列。",
      "items": {
       "type": "string",
       "format": "date"
      }
     }
    }
   },
   "IncomeSite": {
    "type": "object",
    "additionalProperties": false,
    "required": [
     "domain",
     "channels",
     "first_period",
     "global_rank",
     "category",
     "traffic",
     "page_url"
    ],
    "properties": {
     "domain": {
      "type": "string",
      "description": "网站域名；同一网站合并为一项。"
     },
     "channels": {
      "type": "array",
      "description": "该网站在所选报告中出现的支付平台标识。",
      "items": {
       "type": "string"
      }
     },
     "first_period": {
      "type": "string",
      "description": "本服务整月报告与每日28d记录中的全局最早月份，跨渠道、跨方向；不参与流量权限判断。"
     },
     "global_rank": {
      "type": [
       "number",
       "null"
      ],
      "description": "选定报告按host、direction排序的首条网站记录中的排名，未知为null。"
     },
     "category": {
      "type": [
       "string",
       "null"
      ],
      "description": "与global_rank取自同一条网站记录的分类。"
     },
     "traffic": {
      "type": "array",
      "description": "按平台域名和方向分别列出流量，不跨平台累加。",
      "items": {
       "type": "object",
       "additionalProperties": false,
       "required": [
        "host",
        "direction",
        "months_visits",
        "shares",
        "children"
       ],
       "properties": {
        "host": {
         "type": "string",
         "description": "该项流量对应的支付平台域名。"
        },
        "direction": {
         "type": "string",
         "enum": [
          "out",
          "in"
         ],
         "description": "相对支付平台的流量方向：in 为进入平台，out 为离开平台。不同方向不合并。"
        },
        "months_visits": {
         "type": "object",
         "description": "报告月份或28d采集日到估算访问量的映射；各平台、方向独立，非营收或付款人数。",
         "additionalProperties": {
          "type": "number"
         }
        },
        "shares": {
         "type": "object",
         "description": "对应时段的来源占比，未知时省略键。",
         "additionalProperties": {
          "type": "number"
         }
        },
        "children": {
         "type": "array",
         "description": "来源记录附带的子域名明细；无记录时为空数组。",
         "items": {
          "type": "object",
          "additionalProperties": false,
          "required": [
           "domain",
           "visits",
           "share",
           "is_new"
          ],
          "properties": {
           "domain": {
            "type": "string",
            "description": "子域名。"
           },
           "visits": {
            "type": "number",
            "description": "来源估算访问量。"
           },
           "share": {
            "type": [
             "number",
             "null"
            ],
            "description": "来源占比；未知为null。"
           },
           "is_new": {
            "type": "boolean",
            "description": "来源是否标记为新出现。"
           }
          }
         }
        }
       }
      }
     },
     "page_url": {
      "type": "string",
      "format": "uri",
      "description": "所选月份或采集日期的网站详情页。"
     }
    }
   },
   "IncomeChannel": {
    "type": "object",
    "additionalProperties": false,
    "required": [
     "host",
     "channel",
     "direction",
     "periods"
    ],
    "properties": {
     "host": {
      "type": "string",
      "description": "受监控的支付平台域名。"
     },
     "channel": {
      "type": "string",
      "description": "支付平台标识。"
     },
     "direction": {
      "type": "string",
      "enum": [
       "out",
       "in"
      ],
      "description": "相对支付平台的流量方向：in 为进入平台，out 为离开平台。不同方向不合并。"
     },
     "periods": {
      "type": "object",
      "description": "月份YYYY-MM或28d采集日期YYYY-MM-DD为键；仅包含已授权且已采集的报告。",
      "additionalProperties": {
       "type": "object",
       "required": [
        "total_visits",
        "site_count"
       ],
       "additionalProperties": false,
       "properties": {
        "total_visits": {
         "type": [
          "number",
          "null"
         ],
         "description": "来源报告的完整渠道访问量，非本页小计；未知为null，不以明细求和替代。"
        },
        "site_count": {
         "type": [
          "integer",
          "null"
         ],
         "description": "来源报告的网站总数，非本页网站数量；未知为null。"
        },
        "from": {
         "type": [
          "string",
          "null"
         ],
         "format": "date",
         "description": "28d来源统计起始日期；未知为null。"
        },
        "to": {
         "type": [
          "string",
          "null"
         ],
         "format": "date",
         "description": "28d来源统计截至日期；未知为null。"
        }
       }
      }
     }
    }
   },
   "IncomeMonthListSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "months",
       "has_more"
      ],
      "properties": {
       "months": {
        "type": "array",
        "description": "本页可读取的报告月份，按月份倒序；最多30项。",
        "maxItems": 30,
        "items": {
         "$ref": "#/components/schemas/IncomeMonthSummary"
        }
       },
       "has_more": {
        "type": "boolean",
        "description": "是否还有下一页；为true时递增请求page。"
       }
      }
     }
    }
   },
   "IncomeMonthDetailSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "page",
       "page_size",
       "has_more",
       "channels",
       "sites"
      ],
      "properties": {
       "page": {
        "type": "integer",
        "minimum": 1,
        "description": "当前页码。"
       },
       "page_size": {
        "type": "integer",
        "const": 50,
        "description": "每页网站上限。"
       },
       "has_more": {
        "type": "boolean",
        "description": "是否还有下一页；为true时递增page。"
       },
       "channels": {
        "type": "array",
        "description": "完整报告的渠道合计，每页重复提供，不应跨页相加。",
        "items": {
         "$ref": "#/components/schemas/IncomeChannel"
        }
       },
       "sites": {
        "type": "array",
        "description": "本页网站，按domain的C排序；最多50个。",
        "maxItems": 50,
        "items": {
         "$ref": "#/components/schemas/IncomeSite"
        }
       }
      }
     }
    }
   },
   "DataServiceMeta": {
    "type": "object",
    "required": [
     "reason",
     "message"
    ],
    "additionalProperties": false,
    "properties": {
     "reason": {
      "type": "string",
      "description": "查询结果或错误的原因码。"
     },
     "message": {
      "type": "string",
      "description": "结果说明及处理建议。"
     }
    }
   },
   "HostedBatchSummary": {
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "finished_at",
     "site_count",
     "keyword_count",
     "page_url"
    ],
    "properties": {
     "id": {
      "type": "string",
      "description": "批次ID，用于详情请求。"
     },
     "finished_at": {
      "type": "string",
      "format": "date-time",
      "description": "批次完成时间，ISO 8601 UTC；不作为报告数据的授权日期。"
     },
     "site_count": {
      "type": [
       "integer",
       "null"
      ],
      "description": "本次可读取的批次网站数量；旧批次名单无法确定时为null。"
     },
     "keyword_count": {
      "type": [
       "integer",
       "null"
      ],
      "description": "本次可读取的批次关键词数量；旧批次名单无法确定时为null。"
     },
     "page_url": {
      "type": "string",
      "format": "uri",
      "description": "NEW批次网页地址。"
     }
    }
   },
   "HostedSite": {
    "type": "object",
    "additionalProperties": false,
    "required": [
     "site",
     "platform",
     "title",
     "description",
     "first_period",
     "months_clicks",
     "months",
     "peak_clicks",
     "latest28_clicks",
     "top_keywords",
     "brand",
     "pages",
     "page_url"
    ],
    "properties": {
     "site": {
      "type": "string",
      "description": "网站标识，可能是子域名或包含路径的项目标识。"
     },
     "platform": {
      "type": "string",
      "description": "网站所属托管平台域名。"
     },
     "title": {
      "type": [
       "string",
       "null"
      ],
      "description": "保存的网站标题；缺失时为null。"
     },
     "description": {
      "type": [
       "string",
       "null"
      ],
      "description": "保存的网站简介；缺失时为null。"
     },
     "first_period": {
      "type": [
       "string",
       "null"
      ],
      "description": "全服务现有整月及每日记录中的最早月份YYYY-MM；不授予该月份数据权限，未知为null。"
     },
     "months_clicks": {
      "type": [
       "object",
       "null"
      ],
      "additionalProperties": {
       "type": "number"
      },
      "description": "统计列到自然搜索估算点击数的映射，键为YYYY-MM或28d；仅含本次授权列，资料缺失为null。"
     },
     "months": {
      "type": [
       "number",
       "null"
      ],
      "description": "可读记录中的整月数量，不含28d，可能多于展示列数；资料缺失为null。"
     },
     "peak_clicks": {
      "type": [
       "number",
       "null"
      ],
      "description": "可读整月记录中的最高月点击数，不含28d；有记录但无整月时为0，资料缺失为null。"
     },
     "latest28_clicks": {
      "type": [
       "number",
       "null"
      ],
      "description": "默认请求为已授权最新28d点击数，指定28d时为所选快照点击数；无可读资料或未授权时为null。"
     },
     "top_keywords": {
      "type": [
       "array",
       "null"
      ],
      "description": "可读资料中排名靠前的至多两个关联关键词，可在本批名单之外；资料缺失为null。",
      "maxItems": 2,
      "items": {
       "type": "object",
       "additionalProperties": false,
       "required": [
        "kw"
       ],
       "properties": {
        "kw": {
         "type": "string",
         "description": "关联关键词。"
        }
       }
      }
     },
     "brand": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "是否按关键词与网站名称匹配或导航意图判定为品牌站；资料缺失为null。"
     },
     "pages": {
      "type": [
       "number",
       "null"
      ],
      "description": "可读记录中去重后的着陆页URL数量，不是全站索引页数；资料缺失为null。"
     },
     "page_url": {
      "type": "string",
      "format": "uri",
      "description": "NEW网站详情页；指定28d时链接包含对应日期。"
     }
    }
   },
   "HostedKeyword": {
    "type": "object",
    "additionalProperties": false,
    "required": [
     "keyword",
     "first_period",
     "months_clicks",
     "months_sites",
     "site_count",
     "peak_clicks",
     "latest28_clicks",
     "top_sites",
     "page_url"
    ],
    "properties": {
     "keyword": {
      "type": "string",
      "description": "关键词。"
     },
     "first_period": {
      "type": [
       "string",
       "null"
      ],
      "description": "全服务现有记录中的最早月份YYYY-MM；与数据权限独立，未知为null。"
     },
     "months_clicks": {
      "type": [
       "object",
       "null"
      ],
      "additionalProperties": {
       "type": "number"
      },
      "description": "本次授权统计列的自然搜索估算点击数，键为YYYY-MM或28d；资料缺失为null。"
     },
     "months_sites": {
      "type": [
       "object",
       "null"
      ],
      "additionalProperties": {
       "type": "number"
      },
      "description": "本次授权统计列中关联网站的去重数量，键与columns.period对应；资料缺失为null。"
     },
     "site_count": {
      "type": [
       "number",
       "null"
      ],
      "description": "可读记录中关联网站的去重总数，可包含本批名单之外的网站；资料缺失为null。"
     },
     "peak_clicks": {
      "type": [
       "number",
       "null"
      ],
      "description": "可读整月记录中的最高月点击数，不含28d；有记录但无整月时为0，资料缺失为null。"
     },
     "latest28_clicks": {
      "type": [
       "number",
       "null"
      ],
      "description": "默认请求为已授权最新28d点击数，指定28d时为所选快照点击数；无可读资料或未授权时为null。"
     },
     "top_sites": {
      "type": [
       "array",
       "null"
      ],
      "description": "可读资料中排名靠前的至多两个关联网站，可在本批名单之外；资料缺失为null。",
      "maxItems": 2,
      "items": {
       "type": "object",
       "additionalProperties": false,
       "required": [
        "site"
       ],
       "properties": {
        "site": {
         "type": "string",
         "description": "关联网站标识。"
        }
       }
      }
     },
     "page_url": {
      "type": "string",
      "format": "uri",
      "description": "NEW关键词详情页；指定28d时链接包含对应日期。"
     }
    }
   },
   "HostedBatchListSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "batches",
       "has_more"
      ],
      "properties": {
       "batches": {
        "type": "array",
        "description": "本页可读取的批次，按完成时间倒序；最多30项。",
        "maxItems": 30,
        "items": {
         "$ref": "#/components/schemas/HostedBatchSummary"
        }
       },
       "has_more": {
        "type": "boolean",
        "description": "是否还有下一页；为true时递增请求page。"
       }
      }
     }
    }
   },
   "HostedBatchDetailSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "columns",
       "batch",
       "sites",
       "keywords"
      ],
      "properties": {
       "columns": {
        "type": "array",
        "description": "本次可读统计列；默认取最近12个月范围内的授权月份和已授权最新28d，指定日期时仅含28d。",
        "items": {
         "type": "object",
         "additionalProperties": false,
         "required": [
          "period",
          "as_of"
         ],
         "properties": {
          "period": {
           "type": "string",
           "description": "YYYY-MM或28d；对应months_clicks、months_sites中的键。"
          },
          "as_of": {
           "type": [
            "string",
            "null"
           ],
           "format": "date",
           "description": "28d来源统计截至日期，不是采集日；月报、未知或来源不一致时为null。"
          }
         }
        }
       },
       "batch": {
        "$ref": "#/components/schemas/HostedBatchSummary",
        "description": "当前请求可读取的批次成员数量及批次信息。"
       },
       "sites": {
        "type": "array",
        "description": "已授权批次成员的网站资料，按网站名称排序，不分页。",
        "items": {
         "$ref": "#/components/schemas/HostedSite"
        }
       },
       "keywords": {
        "type": "array",
        "description": "已授权批次成员的关键词资料，按关键词排序，不分页。",
        "items": {
         "$ref": "#/components/schemas/HostedKeyword"
        }
       },
       "date_28d": {
        "type": "string",
        "format": "date",
        "description": "仅指定28d时返回，本次查询的快照采集日期。"
       },
       "reports": {
        "type": "array",
        "description": "仅指定28d时返回，对应日期的各平台报告元数据。",
        "items": {
         "type": "object",
         "additionalProperties": false,
         "required": [
          "platform",
          "date_28d",
          "captured_at",
          "source_period",
          "total_count",
          "rows_count"
         ],
         "properties": {
          "platform": {
           "type": "string",
           "description": "托管平台域名。"
          },
          "date_28d": {
           "type": "string",
           "format": "date",
           "description": "快照实际采集日期（北京时间）。"
          },
          "captured_at": {
           "type": [
            "string",
            "null"
           ],
           "format": "date-time",
           "description": "记录的采集时间，ISO 8601 UTC；旧报告缺失时为null。"
          },
          "source_period": {
           "type": "object",
           "description": "来源保存的统计窗口原始对象；旧报告缺失时为{}。from/to可能使用YYYY|MM|DD；规范化截至日期见columns.as_of。",
           "additionalProperties": true
          },
          "total_count": {
           "type": [
            "number",
            "null"
           ],
           "description": "来源报告总条数，可能大于已采集条数；未知为null。"
          },
          "rows_count": {
           "type": "integer",
           "description": "该平台当日保存的报告明细行数，不是当前批次网站数。"
          }
         }
        }
       },
       "reports_28d": {
        "type": "array",
        "description": "默认详情中可选的已授权批次28d报告引用；无关联日期时省略。date_28d可用于后续28d参数。",
        "items": {
         "type": "object",
         "additionalProperties": false,
         "required": [
          "platform",
          "date_28d"
         ],
         "properties": {
          "platform": {
           "type": "string",
           "description": "托管平台域名。"
          },
          "date_28d": {
           "type": "string",
           "format": "date",
           "description": "该批次关联的已授权快照采集日期。"
          }
         }
        }
       }
      }
     }
    }
   },
   "BatchSummary": {
    "type": "object",
    "required": [
     "id",
     "finished_at",
     "keyword_count",
     "page_url"
    ],
    "properties": {
     "id": {
      "type": "string",
      "description": "批次ID，用于详情请求；直接使用返回值。"
     },
     "finished_at": {
      "type": "string",
      "format": "date-time",
      "description": "批次完成时间，ISO 8601 UTC。"
     },
     "keyword_count": {
      "type": "integer",
      "minimum": 0,
      "description": "该批次保存的关键词条数。"
     },
     "page_url": {
      "type": "string",
      "format": "uri",
      "description": "NEW批次网页地址；网页访问仍须相应权限。"
     }
    }
   },
   "BatchKeyword": {
    "type": "object",
    "properties": {
     "keyword": {
      "type": "string",
      "description": "关键词。"
     },
     "category": {
      "type": "string",
      "description": "保存的关键词分类；缺失时为空字符串。"
     },
     "kind": {
      "type": "string",
      "description": "批次记录中的关键词类型标识；缺失时为空字符串。"
     },
     "trend_now": {
      "type": "string",
      "description": "当前走势描述；缺失时为空字符串。"
     },
     "heat_ratio": {
      "type": [
       "number",
       "null"
      ],
      "description": "近7天相对GPTs基准词的热度倍数，不是搜索量；未测得时为null。"
     },
     "growth_pct": {
      "type": [
       "number",
       "null"
      ],
      "description": "近7天相对前7天的涨幅，单位为百分比；例如20表示20%，前期为0或未计算时为null。"
     },
     "appear_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "记录的关键词出现日期；未知为null。"
     },
     "burst_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "记录的爆发日期；未知为null。"
     },
     "pushed_on": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "记录的推送日期；未记录时为null。"
     },
     "page_count": {
      "type": "integer",
      "description": "已保存的关联关键词去重数量，可用作内页候选数；缺少记录时为0，不是全网页面总数。"
     },
     "targeted_count": {
      "type": "integer",
      "description": "已保存SERP页面中标记为针对该关键词的页面数；缺少记录时为0。"
     },
     "verdict": {
      "type": "string",
      "description": "保存的机会判断；尚无判断时为空字符串。"
     },
     "verdict_reasons": {
      "type": "array",
      "description": "机会判断的理由；无记录时为空数组。",
      "items": {
       "type": "string"
      }
     },
     "verdict_suggestion": {
      "type": "string",
      "description": "保存的行动建议；无记录时为空字符串。"
     },
     "brief": {
      "type": [
       "object",
       "null"
      ],
      "description": "已保存的关键词分析摘要；无摘要时为null。",
      "properties": {
       "what": {
        "type": "string",
        "description": "关键词所指事物或需求。"
       },
       "want": {
        "type": "string",
        "description": "用户搜索意图和目标。"
       },
       "how": {
        "type": "string",
        "description": "对应的建站或产品建议。"
       }
      }
     },
     "sources": {
      "type": "array",
      "description": "保存的数据来源标识；无记录时为空数组。",
      "items": {
       "type": "string"
      }
     },
     "spark": {
      "type": "array",
      "maxItems": 30,
      "description": "最近最多30个已保存的日趋势值，按时间顺序排列，不是实际搜索量；缺测值可为null。",
      "items": {
       "type": [
        "number",
        "null"
       ]
      }
     },
     "page_url": {
      "type": [
       "string",
       "null"
      ],
      "format": "uri",
      "description": "NEW关键词详情页；缺少词库记录时为null，网页另行判断访问权限。"
     }
    },
    "required": [
     "keyword",
     "category",
     "kind",
     "trend_now",
     "heat_ratio",
     "growth_pct",
     "appear_date",
     "burst_date",
     "pushed_on",
     "page_count",
     "targeted_count",
     "verdict",
     "verdict_reasons",
     "verdict_suggestion",
     "brief",
     "sources",
     "spark",
     "page_url"
    ]
   },
   "LaunchBatchSummary": {
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "finished_at",
     "item_count",
     "page_url"
    ],
    "properties": {
     "id": {
      "type": "string",
      "description": "批次ID，用于详情请求。"
     },
     "finished_at": {
      "type": "string",
      "format": "date-time",
      "description": "批次完成时间，ISO 8601 UTC。"
     },
     "item_count": {
      "type": "integer",
      "minimum": 0,
      "description": "该批次的项目条数，包含未分析项目。"
     },
     "page_url": {
      "type": "string",
      "format": "uri",
      "description": "NEW批次网页地址。"
     }
    }
   },
   "BatchLaunch": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
     "source": {
      "type": "string",
      "description": "来源平台，如 hacker_news、x；其他来源使用源数据中的平台标识。"
     },
     "source_url": {
      "type": [
       "string",
       "null"
      ],
      "format": "uri",
      "description": "来源帖子链接；未知为null。"
     },
     "title": {
      "type": [
       "string",
       "null"
      ],
      "description": "项目或帖子标题；未知为null。"
     },
     "url": {
      "type": [
       "string",
       "null"
      ],
      "format": "uri",
      "description": "项目目标链接；未知为null。"
     },
     "domain": {
      "type": [
       "string",
       "null"
      ],
      "description": "项目链接域名；未知为null。"
     },
     "link_type": {
      "type": [
       "string",
       "null"
      ],
      "enum": [
       "site",
       "repo",
       "app",
       "other",
       null
      ],
      "description": "目标类型：网站、代码仓库、应用或其他；未知为null。"
     },
     "posted_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "原帖发布时间，ISO 8601 UTC；未知为null。"
     },
     "score": {
      "type": [
       "integer",
       "null"
      ],
      "minimum": 0,
      "description": "来源保存的帖子评分；不同平台不可直接比较，未知为null。"
     },
     "comment_count": {
      "type": [
       "integer",
       "null"
      ],
      "minimum": 0,
      "description": "保存的评论数量；未知为null。"
     },
     "domain_registered": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "域名注册日期；未知或链接指向公共平台时为null。"
     },
     "monthly_traffic": {
      "type": [
       "string",
       "null"
      ],
      "description": "保存的月流量文本，保留原单位或格式；未知或公共平台链接时为null。"
     },
     "analyzed": {
      "type": "boolean",
      "description": "是否已有保存的分析报告。false 不表示一定会进行分析。"
     },
     "purpose": {
      "type": [
       "string",
       "null"
      ],
      "description": "分析记录中的项目用途；未分析或未提供时为null。"
     },
     "audience": {
      "type": [
       "string",
       "null"
      ],
      "description": "分析记录中的目标用户；未分析或未提供时为null。"
     },
     "category": {
      "type": [
       "string",
       "null"
      ],
      "description": "分析记录中的项目分类；未分析或未提供时为null。"
     },
     "motive_type": {
      "type": [
       "string",
       "null"
      ],
      "description": "分析记录中的创作动机类型；未分析或未提供时为null。"
     },
     "motive_stated": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "作者是否明确表达动机；false表示未明确表达，未分析时为null。"
     },
     "motive": {
      "type": [
       "string",
       "null"
      ],
      "description": "保存的动机说明；未分析或未提供时为null。"
     },
     "motive_evidence": {
      "type": [
       "string",
       "null"
      ],
      "description": "支持动机判断的原文证据；未分析或未提供时为null。"
     },
     "keyword": {
      "type": [
       "string",
       "null"
      ],
      "description": "分析提取的相关关键词；未分析或未提供时为null。"
     },
     "keyword_domain": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "域名主体是否由该关键词组成；未分析或没有关键词时为null。"
     },
     "monetization": {
      "type": [
       "string",
       "null"
      ],
      "description": "分析记录中的变现方式；未分析或未提供时为null。"
     }
    },
    "required": [
     "source",
     "source_url",
     "title",
     "url",
     "domain",
     "link_type",
     "posted_at",
     "score",
     "comment_count",
     "domain_registered",
     "monthly_traffic",
     "analyzed",
     "purpose",
     "audience",
     "category",
     "motive_type",
     "motive_stated",
     "motive",
     "motive_evidence",
     "keyword",
     "keyword_domain",
     "monetization"
    ]
   },
   "LaunchBatchListSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "batches",
       "has_more"
      ],
      "properties": {
       "batches": {
        "type": "array",
        "description": "本页可读取的批次，按完成时间倒序；最多30项。",
        "maxItems": 30,
        "items": {
         "$ref": "#/components/schemas/LaunchBatchSummary"
        }
       },
       "has_more": {
        "type": "boolean",
        "description": "是否还有下一页；为true时递增请求page。"
       }
      }
     }
    }
   },
   "LaunchBatchDetailSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "batch",
       "items"
      ],
      "properties": {
       "batch": {
        "$ref": "#/components/schemas/LaunchBatchSummary",
        "description": "本次查询的批次信息。"
       },
       "items": {
        "type": "array",
        "description": "批次全部项目，包含未分析项，按原帖发布时间倒序，不分页。",
        "items": {
         "$ref": "#/components/schemas/BatchLaunch"
        }
       }
      }
     }
    }
   },
   "KeywordBatchListSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "batches",
       "has_more"
      ],
      "properties": {
       "batches": {
        "type": "array",
        "description": "本页可读取的批次，按完成时间倒序；最多30项。",
        "maxItems": 30,
        "items": {
         "$ref": "#/components/schemas/BatchSummary"
        }
       },
       "has_more": {
        "type": "boolean",
        "description": "是否还有下一页；为true时递增请求page。"
       }
      }
     }
    }
   },
   "KeywordBatchDetailSuccess": {
    "type": "object",
    "required": [
     "ok",
     "credits",
     "data",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": true
     },
     "credits": {
      "type": "object",
      "required": [
       "charged"
      ],
      "properties": {
       "charged": {
        "type": "integer",
        "const": 0
       }
      }
     },
     "data": {
      "type": "object",
      "required": [
       "batch",
       "keywords"
      ],
      "properties": {
       "batch": {
        "$ref": "#/components/schemas/BatchSummary",
        "description": "本次查询的批次信息。"
       },
       "keywords": {
        "type": "array",
        "description": "批次当前保存的全部关键词及分析资料，不分页。",
        "items": {
         "$ref": "#/components/schemas/BatchKeyword"
        }
       }
      }
     }
    }
   },
   "DataServiceError": {
    "type": "object",
    "required": [
     "ok",
     "code",
     "error",
     "requestId",
     "meta"
    ],
    "properties": {
     "requestId": {
      "type": "string",
      "pattern": "^req_[a-f0-9]{32}$"
     },
     "meta": {
      "$ref": "#/components/schemas/DataServiceMeta"
     },
     "ok": {
      "type": "boolean",
      "const": false
     },
     "code": {
      "type": "string"
     },
     "error": {
      "type": "string"
     }
    }
   },
   "Success": {
    "type": "object",
    "properties": {
     "ok": {
      "type": "boolean"
     },
     "tool": {
      "type": "string"
     },
     "requestId": {
      "type": "string"
     },
     "credits": {
      "type": "object",
      "properties": {
       "charged": {
        "type": "integer"
       }
      }
     },
     "data": {
      "description": "接口结果"
     },
     "markdown": {
      "type": "string",
      "description": "可读报告（部分接口）"
     }
    }
   },
   "Error": {
    "type": "object",
    "properties": {
     "ok": {
      "type": "boolean"
     },
     "error": {
      "type": "string"
     },
     "code": {
      "type": "string"
     },
     "requestId": {
      "type": "string"
     }
    }
   }
  }
 },
 "paths": {
  "/api/v1/keyword_difficulty": {
   "post": {
    "operationId": "keyword_difficulty",
    "summary": "关键词难度（哥飞版 KD）",
    "description": "0-100 难度分、中文判断原因、月搜索量、进入前十的链接预算、前十竞争盘面（DR/流量/域龄/体验分），自动识别品牌词。\n\n计费：2 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "keyword": {
          "type": "string",
          "description": "英文关键词，如 ai image editor"
         },
         "gl": {
          "type": "string",
          "description": "Google 国家代码，默认 us（可选 gb/ca/au/de/jp/sg 等）"
         },
         "hl": {
          "type": "string",
          "description": "语言代码，默认 en"
         },
         "refresh": {
          "type": "boolean",
          "description": "获取新搜索结果并重新计算；同词、国家、语言共享 6 小时间隔"
         },
         "force": {
          "type": "boolean",
          "description": "refresh 的兼容别名，默认 false"
         }
        },
        "required": [
         "keyword"
        ]
       },
       "example": {
        "keyword": "ai image editor",
        "gl": "us"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/domain_overview": {
   "post": {
    "operationId": "domain_overview",
    "summary": "网站流量概览",
    "description": "一个域名的 DR、月访问量与近 6 个月走势、流量来源渠道与地区、用户行为、域龄、主力流量词、AI 引荐来源。\n\n计费：2 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "domain": {
          "type": "string",
          "description": "域名，如 canva.com（不带协议与路径）"
         }
        },
        "required": [
         "domain"
        ]
       },
       "example": {
        "domain": "canva.com"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/website_worth": {
   "post": {
    "operationId": "website_worth",
    "summary": "网站估值",
    "description": "整站价值区间 + 月收入估算 + 成色定性（红旗项），基于实时 DR、流量、来源结构、域龄与市场行情。\n\n计费：2 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "domain": {
          "type": "string",
          "description": "域名"
         },
         "model": {
          "type": "string",
          "description": "变现方式：ai=AI 工具/订阅站（默认），adsense=广告内容站",
          "enum": [
           "ai",
           "adsense"
          ]
         }
        },
        "required": [
         "domain"
        ]
       },
       "example": {
        "domain": "example.com"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/backlink_value": {
   "post": {
    "operationId": "backlink_value",
    "summary": "外链价值评估",
    "description": "从某个站买外链值不值：站点质量一票否决（链接农场/僵尸站识别）+ 8 万条真实挂牌价比价，给合理价区间与报价判断。\n\n计费：2 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "domain": {
          "type": "string",
          "description": "卖外链的网站域名"
         },
         "price": {
          "type": "number",
          "description": "对方报价（美元），不知道就不传"
         },
         "linkType": {
          "type": "string",
          "description": "外链类型：guest（默认）/ home / niche / nav / nofollow",
          "enum": [
           "guest",
           "home",
           "niche",
           "nav",
           "nofollow"
          ]
         }
        },
        "required": [
         "domain"
        ]
       },
       "example": {
        "domain": "example.com",
        "price": 150
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/serp_review": {
   "post": {
    "operationId": "serp_review",
    "summary": "SERP 排名解密",
    "description": "逐位点评一个词谷歌第一页的 10 个结果：凭什么排在那里、哪里可被超越、谁是薄弱占位，附整体难度与一眼结论。\n\n计费：2 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "keyword": {
          "type": "string",
          "description": "英文关键词"
         },
         "gl": {
          "type": "string",
          "description": "Google 国家代码，默认 us（可选 gb/ca/au/de/jp/sg 等）"
         }
        },
        "required": [
         "keyword"
        ]
       },
       "example": {
        "keyword": "ai logo generator"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/page_coach": {
   "post": {
    "operationId": "page_coach",
    "summary": "页面军师",
    "description": "自动推断页面在做什么关键词、核查谷歌实际排位与站内自相竞争，给 P0/P1/P2 分级的优化建议。\n\n计费：3 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "url": {
          "type": "string",
          "description": "完整页面 URL"
         }
        },
        "required": [
         "url"
        ]
       },
       "example": {
        "url": "https://example.com/tool"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/onpage_audit": {
   "post": {
    "operationId": "onpage_audit",
    "summary": "On Page SEO 体检",
    "description": "对一个页面围绕目标关键词做 40+ 项检测：总分、主题聚焦度、分类得分与逐项改进建议。\n\n计费：2 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "url": {
          "type": "string",
          "description": "完整页面 URL"
         },
         "keyword": {
          "type": "string",
          "description": "目标关键词（该页想排名的词）"
         }
        },
        "required": [
         "url",
         "keyword"
        ]
       },
       "example": {
        "url": "https://example.com/tool",
        "keyword": "ai image editor"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/translate_demand": {
   "post": {
    "operationId": "translate_demand",
    "summary": "需求翻译器",
    "description": "一句英文需求 → 有真实搜索支撑的关键词：搜谷歌前十、逐页分析正文与标题结构、交叉验证相关搜索，给分档推荐词。\n\n计费：2 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "query": {
          "type": "string",
          "description": "英文需求描述（≤20 词），如 turn my photo into anime style"
         }
        },
        "required": [
         "query"
        ]
       },
       "example": {
        "query": "turn my photo into anime style"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/adsense_audit": {
   "post": {
    "operationId": "adsense_audit",
    "summary": "AdSense 过审预检",
    "description": "对照 AdSense 官方审核要求逐项体检一个网站：可访问性、政策页、内容量、广告代码、ads.txt、隐私合规等，给修复清单。\n\n计费：3 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "site": {
          "type": "string",
          "description": "网站域名或首页 URL，如 example.com"
         }
        },
        "required": [
         "site"
        ]
       },
       "example": {
        "site": "example.com"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/brand_naming": {
   "post": {
    "operationId": "brand_naming",
    "summary": "网站起名",
    "description": "给产品/网站起英文品牌名，并逐个核查：各后缀能否注册、谷歌会不会把它纠正成别的词、有没有撞名。\n\n计费：2 积分/次 起；起名本身按所用模型档位计，每次域名/撞名核查另计，按实际发生合计",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "brief": {
          "type": "string",
          "description": "产品/网站是做什么的、面向哪个市场、想要什么风格"
         },
         "count": {
          "type": "integer",
          "description": "候选个数，3~12，默认 8"
         },
         "tlds": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "要核查的后缀，默认 ['.com','.ai','.io']"
         }
        },
        "required": [
         "brief"
        ]
       },
       "example": {
        "brief": "AI 简历生成器，面向欧美求职者，专业感强、好记",
        "count": 6
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/domain_review": {
   "post": {
    "operationId": "domain_review",
    "summary": "域名精评",
    "description": "按固定标准给一批域名打分（1~10）：好记、好读、有含义、品牌感、EMD/SEO 潜力，附一句理由与适合做什么。\n\n计费：3 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "domains": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "要评的完整域名，≤60 个"
         },
         "brief": {
          "type": "string",
          "description": "用途/偏好，一句话"
         }
        },
        "required": [
         "domains"
        ]
       },
       "example": {
        "domains": [
         "lvyou.com",
         "getcloud.ai"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/bulk_domain_scan": {
   "post": {
    "operationId": "bulk_domain_scan",
    "summary": "域名批量生成并查注册",
    "description": "按「名称一 + 字典一 + 名称二 + 字典二 + 名称三」五槽规则批量生成域名，实时核查能不能注册。\n\n计费：2 积分/次 起；按实际打到上游的域名数，每 20 个 1.5 积分（缓存命中免费）",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "n1": {
          "type": "string",
          "description": "名称一（固定文本，可空）"
         },
         "dict1": {
          "type": "string",
          "description": "字典一：py 拼音 / py1~py4 一~四位拼音 / pydup 叠拼 / initials 声母 / en 英文单词等，默认 py"
         },
         "custom1": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "dict1 为 custom 时的词表"
         },
         "n2": {
          "type": "string",
          "description": "名称二（可空）"
         },
         "dict2": {
          "type": "string",
          "description": "字典二，默认 none"
         },
         "custom2": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "dict2 为 custom 时的词表"
         },
         "n3": {
          "type": "string",
          "description": "名称三（可空）"
         },
         "tlds": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "后缀，带点，默认 ['.com']"
         },
         "maxLen": {
          "type": "integer",
          "description": "名字总长度上限（不含后缀），0 = 不限"
         },
         "limit": {
          "type": "integer",
          "description": "本次查多少个组合，默认 100，上限 200"
         },
         "offset": {
          "type": "integer",
          "description": "从第几个组合开始（翻页用）"
         },
         "onlyAvailable": {
          "type": "boolean",
          "description": "只返回可注册的，默认 true"
         }
        },
        "required": []
       },
       "example": {
        "n1": "ai",
        "dict1": "py2",
        "tlds": [
         ".com"
        ],
        "limit": 50
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/search_known_sites": {
   "post": {
    "operationId": "search_known_sites",
    "summary": "站点库检索",
    "description": "在本站沉淀的域名档案里按 DR / 月访问量 / 域龄 / 内容词筛站；传 rankingKeyword 可反查谁在某个词上有排名。\n\n计费：1 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "terms": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "匹配词（小写英文，1~4 个，任一命中即可）"
         },
         "rankingKeyword": {
          "type": "string",
          "description": "反查：哪些站在这个词上有排名"
         },
         "registeredWithinMonths": {
          "type": "number",
          "description": "只要最近 N 个月注册的"
         },
         "minVisits": {
          "type": "number",
          "description": "月访问量下限"
         },
         "maxVisits": {
          "type": "number",
          "description": "月访问量上限"
         },
         "minDr": {
          "type": "number",
          "description": "DR 下限"
         },
         "maxDr": {
          "type": "number",
          "description": "DR 上限"
         },
         "orderBy": {
          "type": "string",
          "description": "visits（默认）/ newest",
          "enum": [
           "visits",
           "newest"
          ]
         },
         "limit": {
          "type": "number",
          "description": "返回条数，默认 20，最多 30"
         }
        },
        "required": []
       },
       "example": {
        "terms": [
         "ai",
         "resume"
        ],
        "maxDr": 40,
        "registeredWithinMonths": 12
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/search_known_keywords": {
   "post": {
    "operationId": "search_known_keywords",
    "summary": "关键词库检索",
    "description": "在本站沉淀的关键词里检索：算过哥飞版 KD 的词（分与等级）+ 快照库词表（搜索量、CPC、预筛难度、意图）。\n\n计费：1 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "terms": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "关键词包含匹配（小写英文，1~4 个）"
         },
         "maxScore": {
          "type": "number",
          "description": "哥飞版 KD 上限"
         },
         "minScore": {
          "type": "number",
          "description": "哥飞版 KD 下限"
         },
         "minVolume": {
          "type": "number",
          "description": "月搜索量下限"
         },
         "maxKd": {
          "type": "number",
          "description": "预筛难度上限"
         },
         "intent": {
          "type": "string",
          "description": "搜索意图",
          "enum": [
           "informational",
           "navigational",
           "commercial",
           "transactional"
          ]
         },
         "gl": {
          "type": "string",
          "description": "国家，默认 us；world = 全球合计"
         },
         "limit": {
          "type": "number",
          "description": "返回条数，默认 20，最多 30"
         }
        },
        "required": []
       },
       "example": {
        "terms": [
         "generator"
        ],
        "maxScore": 30
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/stripe_checkout_referrals": {
   "post": {
    "operationId": "stripe_checkout_referrals",
    "summary": "Stripe 引荐流量榜",
    "description": "哪些网站给 Stripe 收银台送去最多付费流量（2024 年 1 月起逐月）：大盘走势、月榜、单站逐月历史、黑马名单。\n\n计费：1 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "view": {
          "type": "string",
          "description": "overview（默认）/ month / site",
          "enum": [
           "overview",
           "month",
           "site"
          ]
         },
         "month": {
          "type": "string",
          "description": "月份 YYYYMM"
         },
         "domain": {
          "type": "string",
          "description": "域名（view=site 必填）"
         },
         "recentMonths": {
          "type": "number",
          "description": "overview 返回最近 N 个月，默认 6，最多 12"
         }
        },
        "required": []
       },
       "example": {
        "view": "overview"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/find_link_prospects": {
   "post": {
    "operationId": "find_link_prospects",
    "summary": "外链资源筛选",
    "description": "在 8 万+ 条 Guest Post 挂牌快照里按 DR / 月流量 / 自然搜索占比 / 价格筛选值得考察的卖链站点。\n\n计费：1 积分/次",
    "tags": [
     "哥飞组装"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "minDr": {
          "type": "number",
          "description": "DR 下限，默认 20"
         },
         "maxDr": {
          "type": "number",
          "description": "DR 上限"
         },
         "minTraffic": {
          "type": "number",
          "description": "月流量下限，默认 1000"
         },
         "minOrganicPct": {
          "type": "number",
          "description": "自然搜索占比下限（%），默认 15"
         },
         "maxPrice": {
          "type": "number",
          "description": "预算上限（美元）"
         },
         "orderBy": {
          "type": "string",
          "description": "dr（默认）/ traffic / price",
          "enum": [
           "dr",
           "traffic",
           "price"
          ]
         },
         "limit": {
          "type": "number",
          "description": "返回条数，默认 12，最多 20"
         }
        },
        "required": []
       },
       "example": {
        "minDr": 40,
        "maxPrice": 100
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/load_guide": {
   "post": {
    "operationId": "load_guide",
    "summary": "方法论手册",
    "description": "站内哥飞 SEO Agent 用的专题手册：该先查什么、各项数据的口径怎么解读、哪些结论不能下。让你自己的 AI 照哥飞的方法做事。\n\n计费：每本 1.5 积分（合计向上取整，最低 1 积分）",
    "tags": [
     "方法论与知识库"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "topics": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "手册名，1~3 本：keyword（选词）/ newwords（新词）/ domains（域名）/ traffic（查流量）/ attribution（流量归因）/ discovery（找站找词）/ backlinks（外链）/ knowledge（知识库引用）/ gsc / chart / memory"
         }
        },
        "required": [
         "topics"
        ]
       },
       "example": {
        "topics": [
         "keyword"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/knowledge_ask": {
   "post": {
    "operationId": "knowledge_ask",
    "summary": "问哥飞",
    "description": "问「哥飞怎么看 / 哥飞说过什么」首选这个：一次调用在哥飞知识库里检索、挑最相关的几篇，把每篇里与问题相关的段落连同出处与日期一起返回。一个问题调一次就够，不用自己再逐篇检索阅读。\n\n计费：8 积分/次",
    "tags": [
     "方法论与知识库"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "question": {
          "type": "string",
          "description": "你的问题，如「怎么找新词」「新站多久开始做外链」"
         },
         "kind": {
          "type": "string",
          "description": "只看某类",
          "enum": [
           "tutorial",
           "experience",
           "post",
           "wechat",
           "daily_summary",
           "chat"
          ]
         },
         "after": {
          "type": "string",
          "description": "只看这个日期之后的，YYYY-MM-DD"
         }
        },
        "required": [
         "question"
        ]
       },
       "example": {
        "question": "怎么找新词"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/knowledge_search": {
   "post": {
    "operationId": "knowledge_search",
    "summary": "哥飞知识库检索",
    "description": "只要线索时用：在哥飞知识库里检索，返回命中文档的标题、日期、链接和简短节选（不是全文）。要答案请直接用 knowledge_ask。\n\n计费：4 积分/次",
    "tags": [
     "方法论与知识库"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "query": {
          "type": "string",
          "description": "检索词，2~6 字/词为佳，如「外链 价格」"
         },
         "kind": {
          "type": "string",
          "description": "只看某类",
          "enum": [
           "tutorial",
           "experience",
           "post",
           "wechat",
           "daily_summary",
           "chat"
          ]
         },
         "after": {
          "type": "string",
          "description": "只看这个日期之后的，YYYY-MM-DD"
         },
         "limit": {
          "type": "integer",
          "description": "最多几条，默认 5，最多 5"
         }
        },
        "required": [
         "query"
        ]
       },
       "example": {
        "query": "新站 外链"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/knowledge_read": {
   "post": {
    "operationId": "knowledge_read",
    "summary": "哥飞知识库阅读",
    "description": "用户追问某一篇的细节时才用：带着问题读一篇知识库文档，只返回文中与问题最相关的段落（不是全文），群聊只提供哥飞本人的发言（及他回答的那条提问，去掉昵称）。\n\n计费：每 200 字 1 积分（按实际返回量计，最低 1 积分）",
    "tags": [
     "方法论与知识库"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "docId": {
          "type": "string",
          "description": "文档 id，来自 knowledge_search 的结果"
         },
         "query": {
          "type": "string",
          "description": "你想从这篇里找什么（用来挑段落）"
         }
        },
        "required": [
         "docId",
         "query"
        ]
       },
       "example": {
        "docId": "doc_xxx",
        "query": "新站多久开始做外链"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/serp": {
   "post": {
    "operationId": "serp",
    "summary": "谷歌搜索结果",
    "description": "谷歌实时搜索结果原始数据：自然结果（含 sitelinks）、相关搜索、People Also Ask、知识面板等（7 天缓存）。\n\n计费：2 积分/次",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "q": {
          "type": "string",
          "description": "搜索词（≤200 字符）"
         },
         "gl": {
          "type": "string",
          "description": "Google 国家代码，默认 us（可选 gb/ca/au/de/jp/sg 等）"
         },
         "hl": {
          "type": "string",
          "description": "语言代码，默认 en"
         },
         "refresh": {
          "type": "boolean",
          "description": "获取新搜索结果；同词、国家、语言共享 6 小时间隔"
         }
        },
        "required": [
         "q"
        ]
       },
       "example": {
        "q": "best ai image editor",
        "gl": "us"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/domain_dr": {
   "post": {
    "operationId": "domain_dr",
    "summary": "Ahrefs DR（域名权重）",
    "description": "批量查询域名的 Ahrefs Domain Rating（0~100），一次最多 100 个。30 天内查过的走缓存不收费；Ahrefs 没有数据的新域名返回 noData（这类结果缓存 7 天）。\n\n计费：每 20 个域名 1.5 积分（合计向上取整，最低 1 积分）；只按真正查询上游并拿到结论的域名计，缓存命中与查询失败不收费",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "domains": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "域名数组，1~100 个（可带 http:// 与路径，会自动规整）"
         }
        },
        "required": [
         "domains"
        ]
       },
       "example": {
        "domains": [
         "canva.com",
         "figma.com"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/domain_traffic": {
   "post": {
    "operationId": "domain_traffic",
    "summary": "网站流量数据",
    "description": "批量查询 SimilarWeb 口径整站流量：月访问量、逐月历史、渠道与地区分布、用户行为、主力流量词、域名注册时间。\n\n计费：每个域名 1.5 积分（合计向上取整，最低 1 积分）",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "domains": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "域名数组，1~50 个"
         },
         "force": {
          "type": "boolean",
          "description": "跳过缓存强制刷新，默认 false"
         }
        },
        "required": [
         "domains"
        ]
       },
       "example": {
        "domains": [
         "canva.com"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/domain_availability": {
   "post": {
    "operationId": "domain_availability",
    "summary": "域名注册状态",
    "description": "批量查询域名能否注册、注册时间与到期时间（缓存优先）。\n\n计费：每 20 个域名 1.5 积分（合计向上取整，最低 1 积分）",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "domains": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "完整域名数组，1~100 个，如 ['mytool.com','mytool.ai']"
         }
        },
        "required": [
         "domains"
        ]
       },
       "example": {
        "domains": [
         "mytool.com",
         "mytool.ai"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/lookup_keywords": {
   "post": {
    "operationId": "lookup_keywords",
    "summary": "关键词库存数据",
    "description": "按关键词精确读本站已存的数据：搜索量、逐月、CPC、意图、预筛难度、哥飞版 KD，每项带入库日期。只读库、不实时查询，库里没有的词返回 found=false。\n\n计费：每 50 个关键词 1.5 积分（合计向上取整，最低 1 积分）",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "keywords": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "关键词数组，1~100 个（精确匹配，不分大小写）"
         },
         "gl": {
          "type": "string",
          "description": "Google 国家代码，默认 us（可选 gb/ca/au/de/jp/sg 等）"
         },
         "hl": {
          "type": "string",
          "description": "语言，默认 en"
         }
        },
        "required": [
         "keywords"
        ]
       },
       "example": {
        "keywords": [
         "ai image generator",
         "pdf to word"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/lookup_domains": {
   "post": {
    "operationId": "lookup_domains",
    "summary": "域名库存数据",
    "description": "按域名精确读本站已存的数据：月访问量、逐月访问、DR、注册与到期日期、自然搜索流量快照，每项带入库日期。只读库、不实时查询，库里没有的域名返回 found=false。\n\n计费：每 50 个域名 1.5 积分（合计向上取整，最低 1 积分）",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "domains": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "域名数组，1~100 个"
         },
         "gl": {
          "type": "string",
          "description": "Google 国家代码，默认 us（可选 gb/ca/au/de/jp/sg 等）"
         },
         "hl": {
          "type": "string",
          "description": "自然流量快照的语言，默认 en"
         }
        },
        "required": [
         "domains"
        ]
       },
       "example": {
        "domains": [
         "canva.com"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/keyword_volume": {
   "post": {
    "operationId": "keyword_volume",
    "summary": "关键词搜索量",
    "description": "Google Ads 关键字规划师口径：月均搜索量、近 12 个月逐月曲线、竞争度、顶部出价区间（14 天缓存）。\n\n计费：2 积分/次 起；视数据口径最高 5 积分/次；gl=world 真打上游时另加 15 积分",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "keywords": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "英文关键词数组，1~50 个"
         },
         "gl": {
          "type": "string",
          "description": "国家代码，默认 us；world = 全球合计（全站共用每日次数额度，用完返回 world_cap，北京时间早上 8 点恢复，可先按国家查）"
         },
         "hl": {
          "type": "string",
          "description": "语言代码，默认 en"
         }
        },
        "required": [
         "keywords"
        ]
       },
       "example": {
        "keywords": [
         "ai photo editor",
         "photo to text"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/google_trends": {
   "post": {
    "operationId": "google_trends",
    "summary": "谷歌趋势",
    "description": "Google Trends 相对热度曲线（0~100）：过去 7 天按小时、30 / 90 天按天、12 个月 / 5 年按周，最后一个没过完的点标 partial；最多 5 个词放进同一次查询对比；单个词可带「上升最快 / 最热门的相关查询」。每次都附一份趋势面判断：是不是新词、处于什么时期、适不适合上站（只看曲线形状）。全站共享缓存优先。\n\n计费：2 积分/次 起；共享缓存命中 2 积分；实时抓取 4 积分；related=true 且相关查询要实时抓取时另加 4 积分；数据不足或取不到不收费（会员价；非会员另计：非会员的积分买得贵，同样一次折成钱花得更多，见接口说明）\n\n上面是会员价。非会员：共享缓存命中 1 积分、实时抓取 2 积分、相关查询要实时抓取另加 2 积分——积分数少，是因为非会员的积分买得贵（积分包 1 元 10 分起，会员 1 元 40 分起），折成钱非会员花得更多：同样实时抓取一次，会员约 ¥0.10，非会员约 ¥0.20。按调用那一刻的身份算，会员过期后按非会员价；接入 MCP 后工具列表里显示的就是你自己身份的价格。实时抓取 = 共享缓存里没有、这次去谷歌趋势现取；缓存按时间范围保留 6 小时（7 天）到 7 天（5 年）。\n\n返回的 data：\n- keywords：这次查询的词：第一个是 keyword，其余是 compare（统一转成小写）\n- geo / range / granularity：地区（空 = 全球）、时间范围、粒度（hour / day / week）\n- source / fetchedAt：live = 这次实时抓取，cache = 全站共享缓存；fetchedAt 是数据取回的时间（Unix 秒）\n- points[]：time（UTC 日期或时间）、timestamp、value（0~100；对比时是第一个词的）、values（对比时每个词一个，顺序同 keywords）、partial（最后一个没过完的时间段，别当成下跌；上游没标的，按取数时间和「最后几个点突然是 0」也会标上）、gap（前后都有像样热度、中间突然掉到 0：谷歌没给数或统计缺口，不是热度掉到 0；只在按小时 / 按天的曲线里认）\n- latestWave：单个词时给：最新一波从哪个时间点起来（start）、哪个时间点到顶（peak）、峰值（peakValue）、起来之前的最高值（before）；没有明显的新一波时不给\n- related：单个词时给：rising[]（上升最快：query、value、breakout、growth）与 top[]（最热门：query、value）、fetchedAt；上升最快偏少（最热门 ≥ 10 个、上升最快不到 5 个，换住宅代理重取过还是少）时带 thin: true 和 note——谷歌趋势网页版上可能更多。共享缓存里有就顺带给、不另收；没有且没带 related=true 时为 null\n- insight：单个词时给的趋势面判断（只看曲线形状，不看搜索量和竞争）：newWord { verdict: new / likely_new / old / unknown, appearedAt, ageDays, why }；stage { key, label, why }（萌芽期、爆发期、上升期、高峰期、平稳期、季节性、回落期、一次性热点、过气、起伏不定、数据太少）；site { verdict: recommended / consider / caution / avoid / unknown, label, why, next }；metrics（峰值、最新值、近期动量 momentumPct、最新 / 峰值 latestVsPeak、波动 volatility、5 年的季节性 seasonality、谷歌没给数的点数 gaps 等；过去 7 天按小时的有昼夜起伏，时期按 24 小时均值判，另给 smoothing（值为 24h）、recentAvg、peakAvg）。partial、gap 的点不参与判断。判新词以 12 个月或 5 年为准，短窗口最多给 likely_new\n- insights：对比时给：按词名各一份 insight。几个词共用一把尺子，小词会被压扁，要判断某个词请单独查它的 12m\n- note / relatedNote：口径说明；相关查询这次没取到时说明原因（没取到的部分不收费）",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "keyword": {
          "type": "string",
          "description": "关键词（英文为主），如 ai video"
         },
         "compare": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "和 keyword 放进同一次查询对比的词，最多 4 个"
         },
         "range": {
          "type": "string",
          "description": "时间范围，默认 12m",
          "enum": [
           "7d",
           "30d",
           "90d",
           "12m",
           "5y"
          ]
         },
         "geo": {
          "type": "string",
          "description": "两位国家代码，如 US；不传 = 全球"
         },
         "related": {
          "type": "boolean",
          "description": "是否同时返回相关查询（上升最快 / 最热门），默认 false；对比时不支持"
         },
         "url": {
          "type": "string",
          "description": "也可以直接给谷歌趋势网址（trends.google.com/trends/explore?…），词、时间范围、地区照网址"
         }
        },
        "required": []
       },
       "example": {
        "keyword": "ai video",
        "range": "12m",
        "related": true
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/trends_rising": {
   "post": {
    "operationId": "trends_rising",
    "summary": "谷歌趋势找新词",
    "description": "一批词根在谷歌趋势里的「上升最快的相关查询」合并排好（Breakout = 涨 5000% 以上），哥飞挖新词的办法；不给词根就用哥飞的工具站词根表（preset=default）或 AI 词根表（preset=ai）。共享缓存里的词根直接用，没缓存的每次最多实时抓取 8 个，其余列在 notReached、下次接着查。排在前面的词如果我们判断过（有人单独查过它的 12 个月），一并带上是不是新词、处于什么时期、适不适合上站。\n\n计费：2 积分/次 起；共享缓存里的词根这次合起来 2 积分；每实时抓取一个词根 4 积分（一次最多 8 个）；取不到不收费（会员价；非会员另计：非会员的积分买得贵，同样一次折成钱花得更多，见接口说明）\n\n上面是会员价。非会员：共享缓存里的合起来 1 积分、每实时抓取一个词根 2 积分——积分数少，是因为非会员的积分买得贵（积分包 1 元 10 分起，会员 1 元 40 分起），折成钱非会员花得更多：每实时抓取一个词根，会员约 ¥0.10，非会员约 ¥0.20。按调用那一刻的身份算，会员过期后按非会员价；接入 MCP 后工具列表里显示的就是你自己身份的价格。\n\n返回的 data：\n- range / geo / preset：时间范围、地区（空 = 全球）、用的预设词根表（给了 roots 时为 null）\n- roots[]：这次查到的词根：root、source（live 实时抓取 / cache 共享缓存）、rising（这个词根有几个上升最快的相关查询）\n- items[]：合并排好的词：query、roots（从哪几个词根冒出来）、rising（Breakout 或 +X%）、breakout、growth（涨幅百分比，Breakout 记 5000）\n- items[].known：前 20 个词里我们判断过的才有：newWord（new / likely_new / old / unknown）、appearedAt、stage（时期）、site（上站结论）、checkedAt（判断的时间）。没有 known 不代表不是新词，只是还没人单独查过它\n- notReached / failed：这次没轮到的词根（再调一次接着查）；没取到的词根和原因（不收费）\n- note：口径说明：飙升只说明最近搜的人在猛涨，不等于新词、更不等于有量",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "roots": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "词根数组，最多 20 个，如 ['generator','ai video']；不传就用预设词根表"
         },
         "preset": {
          "type": "string",
          "description": "预设词根表：default 工具站词根 / ai AI 相关词根",
          "enum": [
           "default",
           "ai"
          ]
         },
         "range": {
          "type": "string",
          "description": "时间范围，默认 30d",
          "enum": [
           "7d",
           "30d",
           "90d"
          ]
         },
         "geo": {
          "type": "string",
          "description": "两位国家代码，如 US；不传 = 全球"
         },
         "max_fetch": {
          "type": "integer",
          "description": "这次最多实时抓取几个没缓存的词根，默认 8，最多 8"
         }
        },
        "required": []
       },
       "example": {
        "preset": "ai",
        "range": "30d"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/keyword_ideas": {
   "post": {
    "operationId": "keyword_ideas",
    "summary": "拓词",
    "description": "关键词快照库拓词：每个词带月搜索量、近 3 月趋势、CPC、竞争度、预筛难度、搜索意图。\n\n计费：每 50 个返回词 7.5 积分（按实际返回量计，最低 8 积分）",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "seeds": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "英文种子词，1~20 个"
         },
         "mode": {
          "type": "string",
          "description": "ideas（同品类，默认）/ suggestions（长尾）/ related（相关搜索）",
          "enum": [
           "ideas",
           "suggestions",
           "related"
          ]
         },
         "gl": {
          "type": "string",
          "description": "国家代码，默认 us；world = 全球合计（全站共用每日次数额度，用完返回 world_cap，北京时间早上 8 点恢复，可先按国家查）"
         },
         "hl": {
          "type": "string",
          "description": "语言代码"
         },
         "limit": {
          "type": "integer",
          "description": "最多几个，默认 50，上限 200"
         },
         "minVolume": {
          "type": "integer",
          "description": "月搜索量下限"
         },
         "maxKd": {
          "type": "integer",
          "description": "预筛难度上限"
         }
        },
        "required": [
         "seeds"
        ]
       },
       "example": {
        "seeds": [
         "ai headshot"
        ],
        "limit": 50
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/site_keywords": {
   "post": {
    "operationId": "site_keywords",
    "summary": "站点出词",
    "description": "一个域名或网页在谷歌排名的关键词：位置、月搜索量、带来的估算流量、预筛难度、意图、落地页，附排名概览。\n\n计费：每 50 个返回词 7.5 积分（按实际返回量计，最低 8 积分）",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "target": {
          "type": "string",
          "description": "域名（整站）或完整网址（单页）"
         },
         "gl": {
          "type": "string",
          "description": "Google 国家代码，默认 us（可选 gb/ca/au/de/jp/sg 等）"
         },
         "hl": {
          "type": "string",
          "description": "语言代码"
         },
         "orderBy": {
          "type": "string",
          "description": "etv（默认）/ volume / position",
          "enum": [
           "etv",
           "volume",
           "position"
          ]
         },
         "limit": {
          "type": "integer",
          "description": "最多几个，默认 50，上限 200"
         }
        },
        "required": [
         "target"
        ]
       },
       "example": {
        "target": "photoroom.com",
        "limit": 50
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/site_history": {
   "post": {
    "operationId": "site_history",
    "summary": "站点搜索流量历史",
    "description": "一个域名逐月的自然搜索排名词数、估算搜索流量、位次分布、新进/掉出（默认 12 个月，上限 24）。\n\n计费：8 积分/次",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "target": {
          "type": "string",
          "description": "域名，如 example.com"
         },
         "gl": {
          "type": "string",
          "description": "Google 国家代码，默认 us（可选 gb/ca/au/de/jp/sg 等）"
         },
         "hl": {
          "type": "string",
          "description": "语言代码"
         },
         "months": {
          "type": "integer",
          "description": "最近几个月，默认 12，上限 24"
         }
        },
        "required": [
         "target"
        ]
       },
       "example": {
        "target": "photoroom.com",
        "months": 12
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/bulk_keyword_difficulty": {
   "post": {
    "operationId": "bulk_keyword_difficulty",
    "summary": "批量难度预筛",
    "description": "一次给最多 200 个词拿快照库口径的难度分（海选预筛用；精评请用 keyword_difficulty）。\n\n计费：5 积分/次",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "keywords": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "关键词数组，1~200 个"
         },
         "gl": {
          "type": "string",
          "description": "Google 国家代码，默认 us（可选 gb/ca/au/de/jp/sg 等）"
         },
         "hl": {
          "type": "string",
          "description": "语言代码"
         }
        },
        "required": [
         "keywords"
        ]
       },
       "example": {
        "keywords": [
         "ai headshot generator",
         "linkedin photo ai"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/search_intent": {
   "post": {
    "operationId": "search_intent",
    "summary": "搜索意图分类",
    "description": "给最多 200 个词判断搜索意图（信息 / 导航 / 商业 / 交易），附置信度与次意图。\n\n计费：5 积分/次",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "keywords": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "关键词数组，1~200 个"
         },
         "hl": {
          "type": "string",
          "description": "语言代码，默认 en"
         }
        },
        "required": [
         "keywords"
        ]
       },
       "example": {
        "keywords": [
         "buy domain",
         "what is seo"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/domain_timeline": {
   "post": {
    "operationId": "domain_timeline",
    "summary": "域名历史快照时间线",
    "description": "Internet Archive 收录时间线：第一次/最近一次快照、分几段在用、每段多久、中间空窗多长，以及当前 whois（7 天缓存）。\n\n计费：2 积分/次",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "domain": {
          "type": "string",
          "description": "裸域名，如 example.com"
         }
        },
        "required": [
         "domain"
        ]
       },
       "example": {
        "domain": "example.com"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/fetch_url": {
   "post": {
    "operationId": "fetch_url",
    "summary": "抓取网页",
    "description": "按搜索引擎首轮抓取口径抓一个 URL（不执行 JS，跟随重定向）：原始源码，或抽取后的可读正文与标题层级。\n\n计费：1 积分/次",
    "tags": [
     "原始数据"
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "url": {
          "type": "string",
          "description": "完整 URL"
         },
         "mode": {
          "type": "string",
          "description": "source=原始源码（默认）/ text=可读正文",
          "enum": [
           "source",
           "text"
          ]
         }
        },
        "required": [
         "url"
        ]
       },
       "example": {
        "url": "https://example.com/",
        "mode": "text"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "成功",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Success"
        }
       }
      }
     },
     "400": {
      "description": "参数错误",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效"
     },
     "402": {
      "description": "积分余额不足（code: quota，不扣费，带购买链接 buy）"
     },
     "429": {
      "description": "每分钟调用次数超限（code: rate），或余额够但当天已到每日上限（code: day_cap，北京时间早上 8 点清零）"
     },
     "502": {
      "description": "上游故障（已自动退回积分）"
     }
    }
   }
  },
  "/api/v1/keywords/batches": {
   "get": {
    "operationId": "keyword_batches",
    "summary": "新词批次列表",
    "description": "查询当前账户有权访问的批次，按完成时间倒序返回，每页最多 30 个批次。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "default": 1,
       "description": "页码，默认 1。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/KeywordBatchListSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/keywords/batches/{id}": {
   "get": {
    "operationId": "keyword_batch",
    "summary": "批次全部关键词",
    "description": "查询指定批次当前保存的全部关键词及分析数据，不分页。批次内容和分析资料可能更新，响应允许缓存1小时。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "description": "批次 ID，取批次列表返回的 id。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/KeywordBatchDetailSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "404": {
      "description": "批次不存在（batch_not_found）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/launches/batches": {
   "get": {
    "operationId": "launch_batches",
    "summary": "新站批次列表",
    "description": "查询当前账户可读取的新站发现批次，按完成时间倒序返回，每页最多 30 个。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "default": 1,
       "description": "页码，默认 1。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LaunchBatchListSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/launches/batches/{id}": {
   "get": {
    "operationId": "launch_batch",
    "summary": "新站批次全部项目",
    "description": "查询指定批次的全部项目及已有分析资料，包含开源仓库和未分析项目，按原帖发布时间倒序返回。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "description": "批次 ID，取批次列表返回的 id。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LaunchBatchDetailSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "404": {
      "description": "批次不存在（batch_not_found）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/hosted/batches": {
   "get": {
    "operationId": "hosted_batches",
    "summary": "网站发现批次列表",
    "description": "查询当前账户可读取的网站发现批次，按完成时间倒序返回，每页最多 30 个。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "default": 1,
       "description": "页码，默认 1。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HostedBatchListSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/hosted/batches/{id}": {
   "get": {
    "operationId": "hosted_batch",
    "summary": "网站发现批次详情",
    "description": "查询指定批次已授权的网站、关键词，不分页，不使用page。省略28d返回已授权的月度数据及最新28d；指定日期仅查询该日采集的滚动28天快照，不是当天数据。整月按报告月份、28d按采集日期开放。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "description": "批次 ID，取批次列表返回的 id。"
      }
     },
     {
      "name": "28d",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "format": "date",
       "description": "可选，快照采集日期 YYYY-MM-DD，取自默认详情的 data.reports_28d[].date_28d；须属于该批次且已获授权。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HostedBatchDetailSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "404": {
      "description": "批次不存在（batch_not_found），或指定日期不属于该批次的28d报告（report_28d_not_found）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）；旧批次缺少名单（batch_members_unavailable）或可核对报告（batch_reports_unavailable）时无法提供详情。",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v2/checkouts/months": {
   "get": {
    "operationId": "income_months_v2",
    "summary": "收入数据月份列表",
    "description": "查询当前账户可读取的报告月份及快照日期，每页最多 30 个月。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 300239975158033,
       "default": 1,
       "description": "页码，默认 1。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IncomeMonthListSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v2/checkouts/months/{month}": {
   "get": {
    "operationId": "income_month_v2",
    "summary": "收入数据月份详情",
    "description": "默认查询指定月份整月报告的渠道汇总及网站流量；28d指定日期时仅查询当天采集的近28天报告。每页最多50个网站，以page和has_more翻页。channels为完整报告合计，不能跨页相加。多次请求之间报告可能更新。无月报返回404/report_not_found，不回退到28d。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 180143985094819,
       "default": 1,
       "description": "页码，默认1，每页最多50个网站；递增至 has_more=false。"
      }
     },
     {
      "name": "month",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-(0[1-9]|1[0-2])$",
       "description": "报告月份 YYYY-MM。"
      }
     },
     {
      "name": "28d",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "format": "date",
       "description": "可选，该月份内的快照采集日期 YYYY-MM-DD；省略时仅查询整月报告。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IncomeMonthDetailSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "404": {
      "description": "指定月报或采集日期报告不存在（report_not_found）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/keywords": {
   "get": {
    "operationId": "keyword_search",
    "summary": "关键词搜索",
    "description": "搜索已授权关键词，默认按热度降序，每页 30 条。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "maxLength": 60,
       "description": "关键词，最多 60 字符；留空不筛选。"
      }
     },
     {
      "name": "tab",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "new",
        "resurgence",
        "evergreen",
        "game",
        "all",
        "skip"
       ],
       "description": "分类。new：新词；resurgence：二次爆火；evergreen：长期大词；game：游戏；all：全部（排除不值得做）；skip：不值得做。默认不筛选，包含不值得做。"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 180143985094819,
       "default": 1,
       "description": "页码，默认 1；超出末页返回空列表。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/KeywordSearchSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/keywords/word/{slug}": {
   "get": {
    "operationId": "keyword_detail",
    "summary": "关键词详情",
    "description": "获取已授权关键词的详情。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 300,
       "description": "关键词标识，取搜索结果的 slug。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/KeywordDetailSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "404": {
      "description": "指定对象不存在（record_not_found）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/launches": {
   "get": {
    "operationId": "launch_search",
    "summary": "新站搜索",
    "description": "搜索 Hacker News 和 X 的已授权项目，按发布时间降序，每页 30 条。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "maxLength": 60,
       "description": "搜索标题、域名、用途或目标关键词，最多 60 字符；留空不筛选。"
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "site",
        "repo",
        "all"
       ],
       "default": "site",
       "description": "类型，默认 site。site：网站和应用；repo：开源仓库；all：全部。"
      }
     },
     {
      "name": "motive",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "keyword",
        "own_need",
        "others_need",
        "hobby",
        "business",
        "unknown"
       ],
       "description": "开发动机，默认不筛选。keyword：关键词需求；own_need：自身需求；others_need：他人需求；hobby：兴趣；business：商业机会；unknown：未说明。"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 180143985094819,
       "default": 1,
       "description": "页码，默认 1；超出末页返回空列表。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LaunchSearchSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/hosted/sites": {
   "get": {
    "operationId": "hosted_site_search",
    "summary": "网站搜索",
    "description": "搜索各托管平台的已授权网站，按首次收录日期降序，每页 50 条。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "maxLength": 60,
       "description": "搜索网站地址或主要关键词，最多 60 字符；留空不筛选。"
      }
     },
     {
      "name": "generic",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "enum": [
        0,
        1
       ],
       "default": 0,
       "description": "默认 0。0：全部；1：仅通用词，排除品牌词和导航词。"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 180143985094819,
       "default": 1,
       "description": "页码，默认 1；超出末页返回空列表。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HostedSiteSearchSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/hosted/site": {
   "get": {
    "operationId": "hosted_site_detail",
    "summary": "网站详情",
    "description": "获取已授权网站的搜索表现和页面明细。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "site",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 500,
       "description": "网站标识，取搜索结果的 site。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HostedSiteDetailSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "404": {
      "description": "指定对象不存在（record_not_found）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/hosted/keyword": {
   "get": {
    "operationId": "hosted_keyword_detail",
    "summary": "网站发现关键词详情",
    "description": "获取关键词的搜索点击量及关联网站。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "keyword",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 300,
       "description": "关键词，取网站主要关键词或批次关键词列表。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HostedKeywordDetailSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "404": {
      "description": "指定对象不存在（record_not_found）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v2/checkouts/sites": {
   "get": {
    "operationId": "income_site_search_v2",
    "summary": "收入网站搜索",
    "description": "搜索从支付渠道获得流量的已授权网站，覆盖全部渠道，排除全球排名前 5000。按首次收录月份降序，每页 50 条。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "maxLength": 60,
       "description": "域名或域名片段，最多 60 字符；留空不筛选。"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 180143985094819,
       "default": 1,
       "description": "页码，默认 1；超出末页返回空列表。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IncomeSiteSearchSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v2/checkouts/site": {
   "get": {
    "operationId": "income_site_detail_v2",
    "summary": "收入网站详情",
    "description": "获取网站与支付渠道的已授权流量。out：渠道 → 网站；in：网站 → 渠道。访问量不代表营收。\n\n访问权限沿用 new.web.cafe 的解锁规则，不额外扣除 SEO 积分。",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "domain",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 253,
       "description": "网站域名，取搜索结果的 domain。"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功",
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IncomeSiteDetailSuccess"
        }
       }
      }
     },
     "400": {
      "description": "参数无效（param）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "401": {
      "description": "令牌无效（auth）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "403": {
      "description": "数据未解锁或账户不可用（data_locked / account_required / account_unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "404": {
      "description": "指定对象不存在（record_not_found）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "405": {
      "description": "请求方法不受支持（method）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "429": {
      "description": "调用频率超限（rate）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       },
       "Retry-After": {
        "description": "重试前等待的秒数",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "503": {
      "description": "服务暂不可用（unavailable）",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      },
      "headers": {
       "X-Request-Id": {
        "description": "本次请求的排查编号。",
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/checkouts/months": {
   "get": {
    "deprecated": true,
    "summary": "收入 V1 已停用",
    "tags": [
     "数据服务"
    ],
    "responses": {
     "410": {
      "description": "api_retired：请使用收入 V2。",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/checkouts/months/{month}": {
   "get": {
    "deprecated": true,
    "summary": "收入 V1 已停用",
    "tags": [
     "数据服务"
    ],
    "parameters": [
     {
      "name": "month",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "410": {
      "description": "api_retired：请使用收入 V2。",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataServiceError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/me": {
   "get": {
    "operationId": "me",
    "summary": "我的积分余额（API 只扣余额）",
    "responses": {
     "200": {
      "description": "成功"
     }
    }
   }
  },
  "/api/v1/usage": {
   "get": {
    "operationId": "usage",
    "summary": "积分扣费明细（网站 + API 同一本账）",
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "default": 50,
       "maximum": 200
      }
     },
     {
      "name": "scope",
      "in": "query",
      "schema": {
       "type": "string",
       "enum": [
        "all",
        "api"
       ],
       "default": "all"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "成功"
     }
    }
   }
  }
 }
}