{"code":0,"message":"ok","data":{"openapi":"3.0.3","info":{"title":"见位 GEO 开放平台 API","version":"1.0.0","description":"品牌 GEO 诊断、报告、监测与用量查询 API。所有接口统一返回 {code, message, data, request_id, server_time}，成功时 code=0。","contact":{"name":"见位 GEO","url":"https://geo.touyingpai.com/open-platform/"}},"servers":[{"url":"https://geo.touyingpai.com/open/v1","description":"生产环境"}],"tags":[{"name":"系统"},{"name":"品牌"},{"name":"诊断"},{"name":"监测"},{"name":"用量"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Bearer gsk_live_xxx；也可使用 X-API-Key"}},"schemas":{"Brand":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"industry":{"type":"string"},"site":{"type":"string"},"question_n":{"type":"integer"},"last_activity_at":{"type":"string"}}},"BatchBrief":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"string"},"status":{"type":"string"},"brand_id":{"type":"integer"},"product_id":{"type":"integer"},"batch_no":{"type":"string"},"created_at":{"type":"string"},"finished_at":{"type":"string"},"valid_sample":{"type":"integer"},"expected_sample":{"type":"integer"},"mention_rate":{"type":"number"}}},"CreateBrandDiagnostics":{"type":"object","properties":{"brandId":{"type":"integer","description":"品牌 ID，可从 GET /brands 获取"},"platformIds":{"type":"array","items":{"type":"integer"},"description":"可选，不传则使用团队已配置的 AI 平台"},"questionLimit":{"type":"integer","description":"可选，本次最多抽取的问题数"},"repeat":{"type":"integer","description":"可选，每题重复采样次数"},"reportTemplate":{"type":"string","description":"可选，报告模板 key"},"plan":{"type":"object","description":"可选，高级问题配比 {core,longtail,broad,total}"}},"required":["brandId"]},"CreateProductDiagnostics":{"type":"object","properties":{"productId":{"type":"integer"},"platformIds":{"type":"array","items":{"type":"integer"}}},"required":["productId"]}}},"paths":{"/health":{"get":{"tags":["系统"],"summary":"健康检查","security":[],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object","properties":{"status":{"type":"string"},"service":{"type":"string"},"version":{"type":"string"}}}}}]}}}}}}},"/openapi.json":{"get":{"tags":["系统"],"summary":"OpenAPI 规范","security":[],"responses":{"200":{"description":"OpenAPI 3.0 JSON"}}}},"/me":{"get":{"tags":["系统"],"summary":"当前 Key 与应用信息","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object","properties":{"app":{"type":"object"},"tenant":{"type":"object"},"scopes":{"type":"array","items":{"type":"string"}},"rate_limit_per_min":{"type":"integer"},"usage":{"type":"object"}}}}}]}}}}}}},"/brands":{"get":{"tags":["品牌"],"summary":"品牌列表","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Brand"}},"total":{"type":"integer"}}}}}]}}}}}}},"/brands/{id}":{"get":{"tags":["品牌"],"summary":"品牌详情","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"$ref":"#/components/schemas/Brand"}}}]}}}}}}},"/platforms":{"get":{"tags":["系统"],"summary":"可用 AI 平台与能力","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object"}}}}}}]}}}}}}},"/diagnostics":{"get":{"tags":["诊断"],"summary":"诊断历史","parameters":[{"name":"type","in":"query","schema":{"type":"string","enum":["brand","product"]}},{"name":"brandId","in":"query","schema":{"type":"integer"}},{"name":"limit","in":"query","schema":{"type":"integer","default":20}},{"name":"offset","in":"query","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BatchBrief"}},"total":{"type":"integer"}}}}}]}}}}}},"post":{"tags":["诊断"],"summary":"发起品牌诊断","description":"建议传 Idempotency-Key，避免网络重试导致重复扣减算力。","parameters":[{"name":"Idempotency-Key","in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBrandDiagnostics"}}}},"responses":{"202":{"description":"诊断已进入队列","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object","properties":{"batch_id":{"type":"integer"},"batch_no":{"type":"string"},"expected_sample":{"type":"integer"},"credit_required":{"type":"integer"},"status_url":{"type":"string"},"summary_url":{"type":"string"}}}}}]}}}},"400":{"description":"请求不合法","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{}}]}}}},"401":{"description":"鉴权失败","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{}}]}}}},"403":{"description":"权限或套餐不足","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{}}]}}}},"404":{"description":"不存在","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{}}]}}}},"409":{"description":"冲突","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{}}]}}}},"429":{"description":"限流或额度耗尽","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{}}]}}}}}}},"/diagnostics/latest":{"get":{"tags":["诊断"],"summary":"最近一次诊断","parameters":[{"name":"type","in":"query","schema":{"type":"string","enum":["brand","product"],"default":"brand"}},{"name":"brandId","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/BatchBrief"}],"nullable":true}}}]}}}}}}},"/diagnostics/{id}":{"get":{"tags":["诊断"],"summary":"诊断详情","description":"批次完成后同时返回完整报告摘要 summary；未完成时 summary 为 null。","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object","properties":{"batch":{"$ref":"#/components/schemas/BatchBrief"},"status":{"type":"object"},"summary":{"type":"object","nullable":true}}}}}]}}}}}}},"/diagnostics/{id}/status":{"get":{"tags":["诊断"],"summary":"诊断进度","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object","properties":{"batch_id":{"type":"integer"},"status":{"type":"string"},"phase":{"type":"string"},"platforms":{"type":"array","items":{"type":"object"}}}}}}]}}}}}}},"/diagnostics/{id}/summary":{"get":{"tags":["诊断"],"summary":"诊断报告摘要","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object","description":"见工作台报告同源数据，含总体指标、平台对比、问题明细与引用来源。"}}}]}}}}}}},"/diagnostics/product":{"post":{"tags":["诊断"],"summary":"发起商品诊断","parameters":[{"name":"Idempotency-Key","in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductDiagnostics"}}}},"responses":{"202":{"description":"商品诊断已进入队列","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object"}}}]}}}},"400":{"description":"请求不合法","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{}}]}}}},"401":{"description":"鉴权失败","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{}}]}}}},"403":{"description":"权限或套餐不足","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{}}]}}}},"404":{"description":"不存在","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{}}]}}}},"409":{"description":"冲突","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{}}]}}}},"429":{"description":"限流或额度耗尽","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{}}]}}}}}}},"/monitor/plans":{"get":{"tags":["监测"],"summary":"自动监测计划","parameters":[{"name":"brandId","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object"}}}}}}]}}}}}}},"/monitor/trend":{"get":{"tags":["监测"],"summary":"监测趋势","parameters":[{"name":"planId","in":"query","required":true,"schema":{"type":"integer"}},{"name":"brandId","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object"}}}]}}}}}}},"/monitor/alerts":{"get":{"tags":["监测"],"summary":"监测告警","parameters":[{"name":"planId","in":"query","required":true,"schema":{"type":"integer"}},{"name":"brandId","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object"}}}}}}]}}}}}}},"/usage":{"get":{"tags":["用量"],"summary":"本月用量与配额","parameters":[{"name":"days","in":"query","schema":{"type":"integer","default":14}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"code":{"type":"integer","description":"0 表示成功，其它见错误码"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"},"server_time":{"type":"string","format":"date-time"}}},{"properties":{"data":{"type":"object","properties":{"month":{"type":"object"},"daily":{"type":"array","items":{"type":"object"}}}}}}]}}}}}}}},"x-error-codes":{"API_KEY_REQUIRED":"未传 API Key","API_KEY_INVALID":"Key 不存在或格式错误","API_KEY_DISABLED":"Key 或应用被停用","API_KEY_EXPIRED":"Key 已过期","SCOPE_DENIED":"Key 缺少接口所需权限","PLAN_API_REQUIRED":"套餐不含开放 API 额度","API_QUOTA_EXCEEDED":"本月调用额度已用完","RATE_LIMITED":"超过每分钟限流","BRAND_NOT_FOUND":"品牌不存在或不属于当前团队","PRODUCT_NOT_FOUND":"商品不存在或不属于当前团队","DIAGNOSTICS_NOT_FOUND":"诊断批次不存在或不属于当前团队","DIAGNOSTICS_NOT_READY":"诊断尚未完成，不能读取报告摘要","DIAGNOSTICS_REJECTED":"诊断未能启动，通常是平台凭证或配置不足","IDEMPOTENCY_CONFLICT":"同一 Idempotency-Key 请求内容不一致","IDEMPOTENCY_IN_PROGRESS":"相同请求正在处理中","INVALID_PLAN_ID":"监测接口缺少有效的 planId","TENANT_DISABLED":"团队已被停用","FORBIDDEN":"当前账号无开放平台管理权限","AUTH_REQUIRED":"工作台登录已失效"}},"request_id":"X7ONRVAB","server_time":"2026-11-24T07:04:04.737Z"}