{"openapi":"3.1.0","info":{"title":"Yeehai SEO Board 查询 API","version":"1.0.0","description":"统一只读 Key，无项目隔离；响应为持久化数据。公开文档：/api-docs；查阅无需登录，数据调用需要 API Key。"},"servers":[{"url":"/api/v1"}],"security":[{"ApiKey":[]}],"paths":{"/projects":{"get":{"operationId":"projects","summary":"项目列表","description":"仅返回已确认且启用的项目；所有 Key 的读取范围相同。","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"上页 meta.next_cursor，原样传回"}],"responses":{"200":{"description":"仅返回已确认且启用的项目；所有 Key 的读取范围相同。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","name","domain","slug","status","created_at","updated_at"],"properties":{"id":{"type":["number","null"],"description":"稳定的资源整数 ID。不同资源类型的 ID 不可互换。"},"name":{"type":["string","null"],"description":"项目名称。"},"domain":{"type":["string","null"],"description":"项目或站外平台的域名。"},"slug":{"type":["string","null"],"description":"报告 URL 使用的项目标识。"},"status":{"type":["string","null"],"description":"资源业务状态，项目 active；文章 active/inactive；报告 draft/generated/published/archived；第三方观测 active。"},"created_at":{"type":["string","null"],"description":"记录建立时间，UTC。"},"updated_at":{"type":["string","null"],"description":"记录最后修改时间，UTC；不一定等于指标采集时间。"}}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/metrics/monthly":{"get":{"operationId":"projects_projectId_metrics_monthly","summary":"月度 GA4/GSC 指标","description":"已保存的自然月快照；from/to 必填，最多 24 个月。GA4 自然搜索与全渠道字段分开。","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"limit","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"上页 meta.next_cursor，原样传回"},{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^20[0-9]{2}-(0[1-9]|1[0-2])$"},"description":"含首尾，合计最多 24 个月"},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^20[0-9]{2}-(0[1-9]|1[0-2])$"},"description":"含首尾，合计最多 24 个月"}],"responses":{"200":{"description":"已保存的自然月快照；from/to 必填，最多 24 个月。GA4 自然搜索与全渠道字段分开。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","required":["month","ga4_organic_sessions","ga4_total_users","ga4_new_users","ga4_engaged_sessions","ga4_engagement_rate","ga4_key_events","ga4_average_session_duration","gsc_clicks","gsc_impressions","gsc_ctr","gsc_position","gsc_visible_queries","gsc_top30_queries","gsc_top10_queries","gsc_visible_pages","gsc_queries_truncated","gsc_pages_truncated","ga4_organic_bounce_rate","ga4_all_sessions","ga4_all_users","ga4_all_bounce_rate","ga4_all_average_session_duration","data_filter_revision","synced_at"],"properties":{"month":{"type":["string","null"],"description":"指标月份 YYYY-MM。"},"ga4_organic_sessions":{"type":["number","null"],"description":"GA4 Organic Search 会话次数。"},"ga4_total_users":{"type":["number","null"],"description":"自然搜索活跃用户数；跨月不能直接视为去重人数。"},"ga4_new_users":{"type":["number","null"],"description":"自然搜索新用户数。"},"ga4_engaged_sessions":{"type":["number","null"],"description":"自然搜索互动会话次数。"},"ga4_engagement_rate":{"type":["number","null"],"description":"自然搜索互动会话比例，0–1。"},"ga4_key_events":{"type":["number","null"],"description":"项目配置范围内的 GA4 关键事件次数；月度汇总为自然搜索口径。"},"ga4_average_session_duration":{"type":["number","null"],"description":"自然搜索平均会话持续秒数。"},"gsc_clicks":{"type":["number","null"],"description":"GSC 搜索点击次数。"},"gsc_impressions":{"type":["number","null"],"description":"GSC 搜索展现次数。"},"gsc_ctr":{"type":["number","null"],"description":"点击/展现比例，0–1。"},"gsc_position":{"type":["number","null"],"description":"按展现加权的平均最高排名位置，数值越小越靠前。"},"gsc_visible_queries":{"type":["number","null"],"description":"有展现且 API 可返回的搜索词数，不含未披露词。"},"gsc_top30_queries":{"type":["number","null"],"description":"可返回词中月平均排名在 30 以内的数量。"},"gsc_top10_queries":{"type":["number","null"],"description":"可返回词中月平均排名在 10 以内的数量。"},"gsc_visible_pages":{"type":["number","null"],"description":"有展现且可返回的页面数，不是索引量。"},"gsc_queries_truncated":{"type":["number","null"],"description":"1 表示搜索词采集达到限制，0 表示未标记截断。"},"gsc_pages_truncated":{"type":["number","null"],"description":"1 表示页面采集达到限制，0 表示未标记截断。"},"ga4_organic_bounce_rate":{"type":["number","null"],"description":"自然搜索非互动会话比例，0–1。"},"ga4_all_sessions":{"type":["number","null"],"description":"全部渠道会话次数。"},"ga4_all_users":{"type":["number","null"],"description":"全部渠道活跃用户数。"},"ga4_all_bounce_rate":{"type":["number","null"],"description":"全部渠道非互动会话比例，0–1。"},"ga4_all_average_session_duration":{"type":["number","null"],"description":"全部渠道平均会话持续秒数。"},"data_filter_revision":{"type":["number","null"],"description":"生成月度指标时的取数过滤版本；与项目详情的 data_filters.revision 比较。"},"synced_at":{"type":["string","null"],"description":"保存此次采集结果的 UTC 时间，不能代替数据截止日期。"}}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/reports":{"get":{"operationId":"projects_projectId_reports","summary":"报告目录","description":"月报、季报、半年报的持久化目录，不会生成或刷新报告。","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"limit","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"上页 meta.next_cursor，原样传回"}],"responses":{"200":{"description":"月报、季报、半年报的持久化目录，不会生成或刷新报告。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","period_key","report_type","title","status","generated_at","updated_at"],"properties":{"id":{"type":["number","null"],"description":"稳定的资源整数 ID。不同资源类型的 ID 不可互换。"},"period_key":{"type":["string","null"],"description":"报告周期标识；月报为 YYYYMM，周期报告应读取 months，不自行猜测日期范围。"},"report_type":{"type":["string","null"],"description":"monthly / quarterly / semiannual / annual；annual 是预留类型，本版本不提供年报生成。"},"title":{"type":["string","null"],"description":"项目文章或报告标题，可以为空。"},"status":{"type":["string","null"],"description":"资源业务状态，项目 active；文章 active/inactive；报告 draft/generated/published/archived；第三方观测 active。"},"generated_at":{"type":["string","null"],"description":"报告生成记录时间，内容与指标可能随后独立修改。"},"updated_at":{"type":["string","null"],"description":"记录最后修改时间，UTC；不一定等于指标采集时间。"}}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/keywords":{"get":{"operationId":"projects_projectId_keywords","summary":"目标关键词规则","description":"规则配置；实际表现通过报告 modules/target_keyword_status 读取。","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"limit","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"上页 meta.next_cursor，原样传回"}],"responses":{"200":{"description":"规则配置；实际表现通过报告 modules/target_keyword_status 读取。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","label","match_type","expression","enabled","sort_order","updated_at"],"properties":{"id":{"type":["number","null"],"description":"稳定的资源整数 ID。不同资源类型的 ID 不可互换。"},"label":{"type":["string","null"],"description":"规则或页面的显示名称。"},"match_type":{"type":["string","null"],"description":"目标规则匹配方式：exact / contains / regex。"},"expression":{"type":["string","null"],"description":"匹配表达式；regex 使用 RE2 规则。"},"enabled":{"type":["number","null"],"description":"整数开关，1 启用，0 停用。"},"sort_order":{"type":["number","null"],"description":"配置排序序号；API 分页仍按 ID 升序。"},"updated_at":{"type":["string","null"],"description":"记录最后修改时间，UTC；不一定等于指标采集时间。"}}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitored-urls":{"get":{"operationId":"projects_projectId_monitored_urls","summary":"重点页面和月报文章规则","description":"月报重点页面/文章配置，与独立文章登记库不同。","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"limit","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"上页 meta.next_cursor，原样传回"}],"responses":{"200":{"description":"月报重点页面/文章配置，与独立文章登记库不同。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","category","label","url","published_at","enabled","sort_order","updated_at"],"properties":{"id":{"type":["number","null"],"description":"稳定的资源整数 ID。不同资源类型的 ID 不可互换。"},"category":{"type":["string","null"],"description":"priority_page / site_article；月报规则分类。"},"label":{"type":["string","null"],"description":"规则或页面的显示名称。"},"url":{"type":["string","null"],"description":"登记的完整文章或页面 URL。"},"published_at":{"type":["string","null"],"description":"登记的发布日期 YYYY-MM-DD；null 为未填写。"},"enabled":{"type":["number","null"],"description":"整数开关，1 启用，0 停用。"},"sort_order":{"type":["number","null"],"description":"配置排序序号；API 分页仍按 ID 升序。"},"updated_at":{"type":["string","null"],"description":"记录最后修改时间，UTC；不一定等于指标采集时间。"}}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/articles":{"get":{"operationId":"projects_projectId_articles","summary":"站内文章","description":"包含已停用的历史登记；SEO/GEO 标签不自动筛除文章。metrics_dirty=1 时指标可能等待刷新。","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"limit","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"上页 meta.next_cursor，原样传回"}],"responses":{"200":{"description":"包含已停用的历史登记；SEO/GEO 标签不自动筛除文章。metrics_dirty=1 时指标可能等待刷新。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","url","title","copywriter","published_at","status","identity_seo","identity_geo","special_test_id","metrics_dirty","last_synced_at","created_at","updated_at"],"properties":{"id":{"type":["number","null"],"description":"稳定的资源整数 ID。不同资源类型的 ID 不可互换。"},"url":{"type":["string","null"],"description":"登记的完整文章或页面 URL。"},"title":{"type":["string","null"],"description":"项目文章或报告标题，可以为空。"},"copywriter":{"type":["string","null"],"description":"项目文案师名称，可能为空。"},"published_at":{"type":["string","null"],"description":"登记的发布日期 YYYY-MM-DD；null 为未填写。"},"status":{"type":["string","null"],"description":"资源业务状态，项目 active；文章 active/inactive；报告 draft/generated/published/archived；第三方观测 active。"},"identity_seo":{"type":["number","null"],"description":"整数标签，1 表示属于 SEO。"},"identity_geo":{"type":["number","null"],"description":"整数标签，1 表示属于 GEO。"},"special_test_id":{"type":["number","null"],"description":"GEO 专项 ID，null 表示未指派。"},"metrics_dirty":{"type":["number","null"],"description":"1 表示配置已变化，保存指标可能等待刷新；不应据此自动触发同步。"},"last_synced_at":{"type":["string","null"],"description":"该文章最近的采集记录时间。"},"created_at":{"type":["string","null"],"description":"记录建立时间，UTC。"},"updated_at":{"type":["string","null"],"description":"记录最后修改时间，UTC；不一定等于指标采集时间。"}}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/external-articles":{"get":{"operationId":"projects_projectId_external_articles","summary":"站外文章","description":"站外登记清单；不宣称具有文章级独占流量归因。","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"limit","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"上页 meta.next_cursor，原样传回"}],"responses":{"200":{"description":"站外登记清单；不宣称具有文章级独占流量归因。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","domain","url","title","copywriter","published_at","status","identity_seo","identity_geo","special_test_id","created_at","updated_at"],"properties":{"id":{"type":["number","null"],"description":"稳定的资源整数 ID。不同资源类型的 ID 不可互换。"},"domain":{"type":["string","null"],"description":"项目或站外平台的域名。"},"url":{"type":["string","null"],"description":"登记的完整文章或页面 URL。"},"title":{"type":["string","null"],"description":"项目文章或报告标题，可以为空。"},"copywriter":{"type":["string","null"],"description":"项目文案师名称，可能为空。"},"published_at":{"type":["string","null"],"description":"登记的发布日期 YYYY-MM-DD；null 为未填写。"},"status":{"type":["string","null"],"description":"资源业务状态，项目 active；文章 active/inactive；报告 draft/generated/published/archived；第三方观测 active。"},"identity_seo":{"type":["number","null"],"description":"整数标签，1 表示属于 SEO。"},"identity_geo":{"type":["number","null"],"description":"整数标签，1 表示属于 GEO。"},"special_test_id":{"type":["number","null"],"description":"GEO 专项 ID，null 表示未指派。"},"created_at":{"type":["string","null"],"description":"记录建立时间，UTC。"},"updated_at":{"type":["string","null"],"description":"记录最后修改时间，UTC；不一定等于指标采集时间。"}}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/external-metrics":{"get":{"operationId":"projects_projectId_external_metrics","summary":"第三方指标","description":"仅返回 active 观测值，包含历史月份；不执行报告的历史沿用逻辑。Semrush/Moz 是估算。","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"limit","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"上页 meta.next_cursor，原样传回"}],"responses":{"200":{"description":"仅返回 active 观测值，包含历史月份；不执行报告的历史沿用逻辑。Semrush/Moz 是估算。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","provider","metric_key","metric_label","value_number","unit","period_key","country_database","device","scope","scope_key","source_url","source_updated_at","is_estimate","collection_method","status","created_at"],"properties":{"id":{"type":["number","null"],"description":"稳定的资源整数 ID。不同资源类型的 ID 不可互换。"},"provider":{"type":["string","null"],"description":"第三方来源，例如 semrush、moz。"},"metric_key":{"type":["string","null"],"description":"供应商指标标识，例如 estimated_traffic、organic_keywords、authority_score、domain_authority。"},"metric_label":{"type":["string","null"],"description":"供应商指标显示名称。"},"value_number":{"type":["number","null"],"description":"观测数值，结合 unit 与 metric_key 解读。"},"unit":{"type":["string","null"],"description":"指标单位标识，采用供应商配置。"},"period_key":{"type":["string","null"],"description":"报告周期标识；月报为 YYYYMM，周期报告应读取 months，不自行猜测日期范围。"},"country_database":{"type":["string","null"],"description":"第三方国家数据库，空字符串表示未指定。"},"device":{"type":["string","null"],"description":"all / desktop / mobile / tablet。"},"scope":{"type":["string","null"],"description":"root_domain / subdomain / url。"},"scope_key":{"type":["string","null"],"description":"用于区分供应商观测范围的稳定组合标识。"},"source_url":{"type":["string","null"],"description":"来源页面地址。"},"source_updated_at":{"type":["string","null"],"description":"来源标记的数据更新时间，可能为空。"},"is_estimate":{"type":["number","null"],"description":"1 为估算，不能与 GA4/GSC 实测值直接替换。"},"collection_method":{"type":["string","null"],"description":"manual / csv / api / browser。"},"status":{"type":["string","null"],"description":"资源业务状态，项目 active；文章 active/inactive；报告 draft/generated/published/archived；第三方观测 active。"},"created_at":{"type":["string","null"],"description":"记录建立时间，UTC。"}}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}":{"get":{"operationId":"projects_projectId","summary":"项目详情","description":"项目基础信息与当前取数过滤配置（不包含 Google 账号标识）。","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"项目基础信息与当前取数过滤配置（不包含 Google 账号标识）。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["id","name","domain","slug","status","created_at","updated_at","data_filters"],"properties":{"id":{"type":["number","null"],"description":"稳定的资源整数 ID。不同资源类型的 ID 不可互换。"},"name":{"type":["string","null"],"description":"项目名称。"},"domain":{"type":["string","null"],"description":"项目或站外平台的域名。"},"slug":{"type":["string","null"],"description":"报告 URL 使用的项目标识。"},"status":{"type":["string","null"],"description":"资源业务状态，项目 active；文章 active/inactive；报告 draft/generated/published/archived；第三方观测 active。"},"created_at":{"type":["string","null"],"description":"记录建立时间，UTC。"},"updated_at":{"type":["string","null"],"description":"记录最后修改时间，UTC；不一定等于指标采集时间。"},"data_filters":{"type":"object","properties":{"country_mode":{"type":"string","enum":["all","include","exclude"]},"country_codes":{"type":"array","items":{"type":"string"}},"hostname_mode":{"type":"string","enum":["all","include","exclude"]},"hostnames":{"type":"array","items":{"type":"string"}},"revision":{"type":"integer"},"updated_at":{"type":["string","null"]}}}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/reports/{reportId}":{"get":{"operationId":"projects_projectId_reports_reportId","summary":"报告保存内容","description":"人工摘要、分析、行动、图文正文和月份组成；不包含分享凭据、资产地址或自动生成摘要。","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"reportId","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"人工摘要、分析、行动、图文正文和月份组成；不包含分享凭据、资产地址或自动生成摘要。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["id","period_key","report_type","title","status","generated_at","updated_at","module_config","months","manual_summary","analyses","action_plan","custom_section","custom_modules"],"properties":{"id":{"type":["number","null"],"description":"稳定的资源整数 ID。不同资源类型的 ID 不可互换。"},"period_key":{"type":["string","null"],"description":"报告周期标识；月报为 YYYYMM，周期报告应读取 months，不自行猜测日期范围。"},"report_type":{"type":["string","null"],"description":"monthly / quarterly / semiannual / annual；annual 是预留类型，本版本不提供年报生成。"},"title":{"type":["string","null"],"description":"项目文章或报告标题，可以为空。"},"status":{"type":["string","null"],"description":"资源业务状态，项目 active；文章 active/inactive；报告 draft/generated/published/archived；第三方观测 active。"},"generated_at":{"type":["string","null"],"description":"报告生成记录时间，内容与指标可能随后独立修改。"},"updated_at":{"type":["string","null"],"description":"记录最后修改时间，UTC；不一定等于指标采集时间。"},"module_config":{"type":"object","additionalProperties":true},"months":{"type":"array","items":{"type":"string"}},"manual_summary":{"anyOf":[{"type":"object","required":["title","content","updated_at"],"properties":{"title":{"type":["string","null"],"description":"项目文章或报告标题，可以为空。"},"content":{"type":["string","null"],"description":"content"},"updated_at":{"type":["string","null"],"description":"记录最后修改时间，UTC；不一定等于指标采集时间。"}}},{"type":"null"}]},"analyses":{"type":"array","items":{"type":"object","required":["section_id","content","updated_at"],"properties":{"section_id":{"type":["string","null"],"description":"section_id"},"content":{"type":["string","null"],"description":"content"},"updated_at":{"type":["string","null"],"description":"记录最后修改时间，UTC；不一定等于指标采集时间。"}}}},"action_plan":{"anyOf":[{"type":"object","required":["content","updated_at"],"properties":{"content":{"type":["string","null"],"description":"content"},"updated_at":{"type":["string","null"],"description":"记录最后修改时间，UTC；不一定等于指标采集时间。"}}},{"type":"null"}]},"custom_section":{"anyOf":[{"type":"object","required":["section_title","module_title","content","updated_at"],"properties":{"section_title":{"type":["string","null"],"description":"section_title"},"module_title":{"type":["string","null"],"description":"module_title"},"content":{"type":["string","null"],"description":"content"},"updated_at":{"type":["string","null"],"description":"记录最后修改时间，UTC；不一定等于指标采集时间。"}}},{"type":"null"}]},"custom_modules":{"type":"array","items":{"type":"object","required":["section_id","section_title","module_title","content","updated_at"],"properties":{"section_id":{"type":["string","null"],"description":"section_id"},"section_title":{"type":["string","null"],"description":"section_title"},"module_title":{"type":["string","null"],"description":"module_title"},"content":{"type":["string","null"],"description":"content"},"updated_at":{"type":["string","null"],"description":"记录最后修改时间，UTC；不一定等于指标采集时间。"}}}}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/reports/{reportId}/modules/{moduleKey}":{"get":{"operationId":"projects_projectId_reports_reportId_modules_moduleKey","summary":"报告模块快照","description":"仅月报的已保存模块，附带 config_version/source_synced_at；季报/半年报不伪装为独立快照。","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"reportId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"moduleKey","in":"path","required":true,"schema":{"type":"string","enum":["search_visibility","query_page_leaders","target_keyword_status","priority_page_status","site_article_status","keyword_movements","traffic_structure","quality_comparison"]}}],"responses":{"200":{"description":"仅月报的已保存模块，附带 config_version/source_synced_at；季报/半年报不伪装为独立快照。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["module_key","config_version","source_synced_at","payload"],"properties":{"module_key":{"type":["string","null"],"description":"module_key"},"config_version":{"type":["number","null"],"description":"config_version"},"source_synced_at":{"type":["string","null"],"description":"source_synced_at"},"payload":{"description":"版本化模块数据；结构随 config_version，业务榜单与状态由各 module_key 决定。移除了内部错误诊断和凭据相关字段。","type":"object","additionalProperties":true}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/articles/{articleId}/metrics":{"get":{"operationId":"projects_projectId_articles_articleId_metrics","summary":"站内文章快照","description":"from/to 必填；返回完整月与本月分区，另附临时观察窗口，禁止直接相加。","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"articleId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^20[0-9]{2}-(0[1-9]|1[0-2])$"},"description":"含首尾，合计最多 24 个月"},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^20[0-9]{2}-(0[1-9]|1[0-2])$"},"description":"含首尾，合计最多 24 个月"}],"responses":{"200":{"description":"from/to 必填；返回完整月与本月分区，另附临时观察窗口，禁止直接相加。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["article_id","status","metrics_dirty"],"properties":{"article_id":{"type":["number","null"],"description":"article_id"},"status":{"type":["string","null"],"description":"资源业务状态，项目 active；文章 active/inactive；报告 draft/generated/published/archived；第三方观测 active。"},"metrics_dirty":{"type":["number","null"],"description":"1 表示配置已变化，保存指标可能等待刷新；不应据此自动触发同步。"},"queries":{"type":"object","additionalProperties":true,"description":"文章发布日期至 GSC 最新可取日的可见查询词去重快照，不按月相加；含统计范围、采集时间、分页限制及旧值标记。"},"monthly":{"type":"array","items":{"type":"object","required":["month","range_start","range_end","gsc_clicks","ga4_views","ga4_key_events","gsc_state","ga4_views_state","ga4_key_events_state","synced_at","ga4_views_quality","ga4_key_events_quality","gsc_impressions","gsc_impressions_end_date"],"properties":{"month":{"type":["string","null"],"description":"指标月份 YYYY-MM。"},"range_start":{"type":["string","null"],"description":"该条数据的统计起始日期（包含）。"},"range_end":{"type":["string","null"],"description":"该条数据的统计结束日期（包含）；GEO 还应读取 source_ranges 的指标级截止。"},"gsc_clicks":{"type":["number","null"],"description":"GSC 搜索点击次数。"},"ga4_views":{"type":["number","null"],"description":"文章自身的 screenPageViews；所有地区、所有渠道，包含入口及会话后续浏览。"},"ga4_key_events":{"type":["number","null"],"description":"所选关键事件的着陆页统计次数；所有地区、所有渠道，不继承月报国家或额外主机名筛选。"},"gsc_state":{"type":["string","null"],"description":"pending / complete / unavailable / error；仅 complete 表示该指标本次成功。"},"ga4_views_state":{"type":["string","null"],"description":"pending / complete / unavailable / error。"},"ga4_key_events_state":{"type":["string","null"],"description":"pending / complete / unconfigured / unavailable / error。"},"synced_at":{"type":["string","null"],"description":"保存此次采集结果的 UTC 时间，不能代替数据截止日期。"},"ga4_views_quality":{"type":["object","null"],"additionalProperties":true,"description":"浏览次数的数据质量信息；possiblyIncomplete=true 表示可能不完整，limitations 按查询类型标记 thresholding（隐私阈值）或 other（明细合并）。这些已返回值按现有规则参与达标。null 表示无已记录的抽样标记（旧数据不代表已确认未抽样）。sampled=true 时值为 GA4 已推算的估算值；sampling 按查询类型记录 minRatio/maxRatio（0–1），samples 含实际样本量、总体量和查询日期。"},"ga4_key_events_quality":{"type":["object","null"],"additionalProperties":true,"description":"关键事件数据质量信息；possiblyIncomplete/limitations 描述阈值或 other 影响，已返回值按现有规则参与达标；sampling.keyEvents 是关键事件查询比例，sampling.entryHosts 是入口域名核验查询比例；后者抽样可能漏掉入口域名。估算值按现有规则参与达标判断，比例不是准确率，不应再据此放大数值。"},"gsc_impressions":{"type":["number","null"],"description":"文章 GSC 曝光量，读取最后成功快照；未采集为 null，真实零为 0。失败保留旧值，请结合 gsc_impressions_end_date 判断截止日。"},"gsc_impressions_end_date":{"type":["string","null"],"description":"曝光量实际成功取数截止日期；旧快照可能早于本次尝试。"}}}},"current":{"type":"array","items":{"type":"object","required":["month","range_start","gsc_end_date","ga4_end_date","gsc_clicks","ga4_views","ga4_key_events","gsc_state","ga4_views_state","ga4_key_events_state","synced_at","ga4_views_quality","ga4_key_events_quality","gsc_impressions","gsc_impressions_end_date"],"properties":{"month":{"type":["string","null"],"description":"指标月份 YYYY-MM。"},"range_start":{"type":["string","null"],"description":"该条数据的统计起始日期（包含）。"},"gsc_end_date":{"type":["string","null"],"description":"本月 GSC 实际覆盖截止日期。"},"ga4_end_date":{"type":["string","null"],"description":"本月 GA4 实际覆盖截止日期。"},"gsc_clicks":{"type":["number","null"],"description":"GSC 搜索点击次数。"},"ga4_views":{"type":["number","null"],"description":"文章自身的 screenPageViews；所有地区、所有渠道，包含入口及会话后续浏览。"},"ga4_key_events":{"type":["number","null"],"description":"所选关键事件的着陆页统计次数；所有地区、所有渠道，不继承月报国家或额外主机名筛选。"},"gsc_state":{"type":["string","null"],"description":"pending / complete / unavailable / error；仅 complete 表示该指标本次成功。"},"ga4_views_state":{"type":["string","null"],"description":"pending / complete / unavailable / error。"},"ga4_key_events_state":{"type":["string","null"],"description":"pending / complete / unconfigured / unavailable / error。"},"synced_at":{"type":["string","null"],"description":"保存此次采集结果的 UTC 时间，不能代替数据截止日期。"},"ga4_views_quality":{"type":["object","null"],"additionalProperties":true,"description":"浏览次数的数据质量信息；possiblyIncomplete=true 表示可能不完整，limitations 按查询类型标记 thresholding（隐私阈值）或 other（明细合并）。这些已返回值按现有规则参与达标。null 表示无已记录的抽样标记（旧数据不代表已确认未抽样）。sampled=true 时值为 GA4 已推算的估算值；sampling 按查询类型记录 minRatio/maxRatio（0–1），samples 含实际样本量、总体量和查询日期。"},"ga4_key_events_quality":{"type":["object","null"],"additionalProperties":true,"description":"关键事件数据质量信息；possiblyIncomplete/limitations 描述阈值或 other 影响，已返回值按现有规则参与达标；sampling.keyEvents 是关键事件查询比例，sampling.entryHosts 是入口域名核验查询比例；后者抽样可能漏掉入口域名。估算值按现有规则参与达标判断，比例不是准确率，不应再据此放大数值。"},"gsc_impressions":{"type":["number","null"],"description":"文章 GSC 曝光量，读取最后成功快照；未采集为 null，真实零为 0。失败保留旧值，请结合 gsc_impressions_end_date 判断截止日。"},"gsc_impressions_end_date":{"type":["string","null"],"description":"曝光量实际成功取数截止日期；旧快照可能早于本次尝试。"}}}},"provisional":{"type":"array","items":{"type":"object","required":["month","source","range_start","attempt_end_date","attempt_value","attempt_state","attempted_at","data_quality","gsc_impressions","gsc_impressions_end_date"],"properties":{"month":{"type":["string","null"],"description":"指标月份 YYYY-MM。"},"source":{"type":["string","null"],"description":"source"},"range_start":{"type":["string","null"],"description":"该条数据的统计起始日期（包含）。"},"attempt_end_date":{"type":["string","null"],"description":"attempt_end_date"},"attempt_value":{"type":["number","null"],"description":"attempt_value"},"attempt_state":{"type":["string","null"],"description":"attempt_state"},"attempted_at":{"type":["string","null"],"description":"attempted_at"},"data_quality":{"type":["object","null"],"additionalProperties":true,"description":"该次返回值的 GA4 数据质量信息；sampled/sampling/samples 表示抽样，possiblyIncomplete/limitations 标记阈值或 other 影响。null 表示未记录质量标记。"},"gsc_impressions":{"type":["number","null"],"description":"文章 GSC 曝光量，读取最后成功快照；未采集为 null，真实零为 0。失败保留旧值，请结合 gsc_impressions_end_date 判断截止日。"},"gsc_impressions_end_date":{"type":["string","null"],"description":"曝光量实际成功取数截止日期；旧快照可能早于本次尝试。"}}}}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/articles/{articleId}/geo-metrics":{"get":{"operationId":"projects_projectId_articles_articleId_geo_metrics","summary":"GEO 文章快照","description":"from/to 必填；只返回已勾选 GEO 的站内文章；AI 引用/提及未接入。","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"articleId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^20[0-9]{2}-(0[1-9]|1[0-2])$"},"description":"含首尾，合计最多 24 个月"},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^20[0-9]{2}-(0[1-9]|1[0-2])$"},"description":"含首尾，合计最多 24 个月"}],"responses":{"200":{"description":"from/to 必填；只返回已勾选 GEO 的站内文章；AI 引用/提及未接入。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["article_id","status","metrics_dirty"],"properties":{"article_id":{"type":["number","null"],"description":"article_id"},"status":{"type":["string","null"],"description":"资源业务状态，项目 active；文章 active/inactive；报告 draft/generated/published/archived；第三方观测 active。"},"metrics_dirty":{"type":["number","null"],"description":"1 表示配置已变化，保存指标可能等待刷新；不应据此自动触发同步。"},"monthly":{"type":"array","items":{"type":"object","required":["month","range_start","range_end","ai_sessions","ai_views","ai_key_events","sessions_state","views_state","key_events_state","config_revision","project_revision","synced_at","source_ranges"],"properties":{"month":{"type":["string","null"],"description":"指标月份 YYYY-MM。"},"range_start":{"type":["string","null"],"description":"该条数据的统计起始日期（包含）。"},"range_end":{"type":["string","null"],"description":"该条数据的统计结束日期（包含）；GEO 还应读取 source_ranges 的指标级截止。"},"ai_sessions":{"type":["number","null"],"description":"由 AI 来源会话着陆到该文章的次数。"},"ai_views":{"type":["number","null"],"description":"AI 来源会话在该文章的页面浏览次数。"},"ai_key_events":{"type":["number","null"],"description":"AI 来源会话在该文章发生的已配置关键事件次数。"},"sessions_state":{"type":["string","null"],"description":"AI 着陆会话采集状态。"},"views_state":{"type":["string","null"],"description":"AI 页面浏览采集状态。"},"key_events_state":{"type":["string","null"],"description":"AI 关键事件采集状态，可能 unconfigured。"},"config_revision":{"type":["number","null"],"description":"产生记录时的来源/外链取数配置版本。"},"project_revision":{"type":["number","null"],"description":"产生 GEO 记录时的项目统计配置版本。"},"synced_at":{"type":["string","null"],"description":"保存此次采集结果的 UTC 时间，不能代替数据截止日期。"},"source_ranges":{"type":"object","additionalProperties":true}}}},"current":{"type":"array","items":{"type":"object","required":["month","range_start","range_end","ai_sessions","ai_views","ai_key_events","sessions_state","views_state","key_events_state","config_revision","project_revision","synced_at","source_ranges"],"properties":{"month":{"type":["string","null"],"description":"指标月份 YYYY-MM。"},"range_start":{"type":["string","null"],"description":"该条数据的统计起始日期（包含）。"},"range_end":{"type":["string","null"],"description":"该条数据的统计结束日期（包含）；GEO 还应读取 source_ranges 的指标级截止。"},"ai_sessions":{"type":["number","null"],"description":"由 AI 来源会话着陆到该文章的次数。"},"ai_views":{"type":["number","null"],"description":"AI 来源会话在该文章的页面浏览次数。"},"ai_key_events":{"type":["number","null"],"description":"AI 来源会话在该文章发生的已配置关键事件次数。"},"sessions_state":{"type":["string","null"],"description":"AI 着陆会话采集状态。"},"views_state":{"type":["string","null"],"description":"AI 页面浏览采集状态。"},"key_events_state":{"type":["string","null"],"description":"AI 关键事件采集状态，可能 unconfigured。"},"config_revision":{"type":["number","null"],"description":"产生记录时的来源/外链取数配置版本。"},"project_revision":{"type":["number","null"],"description":"产生 GEO 记录时的项目统计配置版本。"},"synced_at":{"type":["string","null"],"description":"保存此次采集结果的 UTC 时间，不能代替数据截止日期。"},"source_ranges":{"type":"object","additionalProperties":true}}}},"current_source_revision":{"type":["integer","null"]},"current_project_revision":{"type":["integer","null"]},"citations":{"type":"null"},"mentions":{"type":"null"},"citation_state":{"const":"not_connected"}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/external-links":{"get":{"operationId":"projects_projectId_external_links","summary":"外链平台日度快照","description":"month 必填；按平台域名和日期分页；跨日用户数不能当成跨日去重人数。","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"limit","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"上页 meta.next_cursor，原样传回"},{"name":"month","in":"query","required":true,"schema":{"type":"string","pattern":"^20[0-9]{2}-(0[1-9]|1[0-2])$"}}],"responses":{"200":{"description":"month 必填；按平台域名和日期分页；跨日用户数不能当成跨日去重人数。","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","required":["domain","date","ga4_users","ga4_key_events","config_revision","fetched_at"],"properties":{"domain":{"type":["string","null"],"description":"项目或站外平台的域名。"},"date":{"type":["string","null"],"description":"date"},"ga4_users":{"type":["number","null"],"description":"ga4_users"},"ga4_key_events":{"type":["number","null"],"description":"项目配置范围内的 GA4 关键事件次数；月度汇总为自然搜索口径。"},"config_revision":{"type":["number","null"],"description":"产生记录时的来源/外链取数配置版本。"},"fetched_at":{"type":["string","null"],"description":"fetched_at"}}}},"meta":{"type":"object","properties":{"request_id":{"type":"string"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"参数错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"认证失败","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"未找到","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"只支持 GET","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"响应过大","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"限流，按 Retry-After 重试","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"等待秒数"}}},"500":{"description":"服务错误","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"ApiKey":{"type":"http","scheme":"bearer","bearerFormat":"API Key"}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}