{ "name": "tiktok-video-comments", "displayName": "TikTok 视频评论查询", "description": "获取指定 TikTok 视频的用户评论列表,支持翻页。用户评论是 VOC 情感分析、痛点挖掘、需求发现的核心英文数据源。适用于品类用户评价采集、竞品带货视频反馈分析。", "category": "social-media", "version": "1.3.0", "endpoint": { "method": "GET", "url": "https://server.fmode.cn/api/voc-social/tiktok/app/v3/fetch_video_comments", "headers": { "Authorization": "Bearer ${vocToken}", "Accept": "application/json" } }, "parameters": { "type": "object", "required": [ "aweme_id" ], "properties": { "aweme_id": { "type": "string", "description": "TikTok 视频唯一 ID" }, "count": { "type": "integer", "description": "每页评论数量", "default": 20, "maximum": 50 }, "cursor": { "type": "integer", "description": "分页游标,首次不传或传 0", "default": 0 } } }, "requestTransform": { "queryParams": { "aweme_id": "{{aweme_id}}", "count": "{{count}}", "cursor": "{{cursor}}" } }, "response": { "type": "object", "description": "评论列表", "properties": { "comments": { "type": "array", "items": { "type": "object", "properties": { "cid": { "type": "string", "description": "评论 ID" }, "text": { "type": "string", "description": "评论内容" }, "digg_count": { "type": "integer", "description": "评论点赞数" }, "reply_comment_total": { "type": "integer", "description": "回复数" }, "create_time": { "type": "integer", "description": "评论时间戳" }, "user": { "type": "object", "properties": { "nickname": { "type": "string", "description": "评论者昵称" }, "unique_id": { "type": "string", "description": "评论者用户名" } } } } } }, "has_more": { "type": "boolean", "description": "是否有更多评论" }, "cursor": { "type": "integer", "description": "下一页游标" }, "total": { "type": "integer", "description": "评论总数" } } }, "usageExamples": [ { "name": "爆款视频用户声音采集", "input": { "aweme_id": "7300000000000000000", "count": 20, "cursor": 0 }, "description": "获取爆款视频前 20 条评论,提取用户对产品的真实英文评价" }, { "name": "翻页采集更多评论", "input": { "aweme_id": "7300000000000000000", "count": 20, "cursor": 20 }, "description": "用上次返回的 cursor 翻页,累计采集更多用户评论" } ], "workflow": { "description": "推荐调用链", "steps": [ "上游: tiktok-video-search(keyword) → 找到高播放量视频 → 取 aweme_id", "上游: tiktok-video-detail(aweme_id) → 确认视频数据规模", "本步: tiktok-video-comments(aweme_id) → 批量采集英文用户评论", "分析: 对评论内容做情感分类和痛点关键词提取" ] }, "reportMapping": { "slides": [ "社媒聆听(Slide14)" ], "dataPoints": [ "用户痛点英文关键词", "正向/负向情感分布", "评论点赞数(热评识别)", "用户购买意向信号" ] }, "timeout": 60000, "retry": { "maxAttempts": 3, "delay": 1500, "backoffMultiplier": 2 }, "tokenConfig": { "type": "bearer", "configFile": "~/.openclaw/voc-credentials.json", "tokenField": "vocToken", "resolutionOrder": [ "configFile" ], "apigId": "Vo3ROWEvDy", "paymentUrlResolution": { "description": "动态构建充值URL:在已存在 session token 时查出用户 objectId,拼接到专属充值页面", "steps": [ "1. 从 voc-credentials.json 获取当前 session token", "2. 调用 GET https://server.fmode.cn/parse/users/me (Header: X-Parse-Application-Id: ncloudmaster, X-Parse-Session-Token: {token})获取用户 objectId", "3. 拼接充值URL: https://app.fmode.cn/dev/apig-pay/?user={objectId}&apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF", "4. 将该URL展示给用户,引导扫码支付" ], "userResolveEndpoint": "https://server.fmode.cn/parse/users/me", "userResolveHeaders": { "X-Parse-Application-Id": "ncloudmaster", "X-Parse-Session-Token": "{vocToken}" }, "paymentBaseUrl": "https://app.fmode.cn/dev/apig-pay/", "paymentParams": { "user": "{resolvedUserId}", "apigid": "Vo3ROWEvDy", "fun_id": "HOkkX72PMF" }, "balanceCheckEndpoint": "https://server.fmode.cn/api/apig/getApig" }, "onMissing": { "action": "showPaymentQR", "qrCodeUrl": "https://app.fmode.cn/dev/apig-pay/?apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF", "title": "扫码开通 VOC-AI 数据服务", "message": "此 Skill 需要有效的 API Token。请先打开充值页面完成登录和充值;当用户提供 session token 后,请由 OpenClaw 运行 node scripts/tools/set-voc-token.js 写入 ~/.openclaw/voc-credentials.json 的 vocToken 字段,再重试当前 Skill。", "tokenSetupCommandTemplate": "node scripts/tools/set-voc-token.js {sessionToken}", "tokenSetupInstructions": "当用户完成登录和充值后,如果用户把 session token 发给你,请直接运行 node scripts/tools/set-voc-token.js 写入 ~/.openclaw/voc-credentials.json,然后重试当前 Skill。" }, "onBalanceInsufficient": { "action": "resolveUserThenShowPayment", "title": "VOC-AI Token 余额不足,请扫码充值", "message": "当前 Token 余额不足,我将为你生成专属充值链接,扫码支付后即可继续使用。" } }, "errorHandling": { "balanceInsufficient": { "conditions": [ { "responseField": "code", "operator": "in", "value": [ -2, -3, -10, 402, 429 ] }, { "responseField": "msg", "operator": "contains", "value": [ "余额不足", "insufficient", "balance", "quota", "没有开通", "权限或余额" ] }, { "responseField": "mess", "operator": "contains", "value": [ "余额不足", "insufficient", "balance", "quota", "没有开通", "权限或余额" ] }, { "responseField": "message", "operator": "contains", "value": [ "余额不足", "insufficient", "balance", "没有开通", "权限或余额" ] } ], "matchMode": "any", "trigger": "tokenConfig.onBalanceInsufficient" }, "unauthorized": { "conditions": [ { "responseField": "code", "operator": "in", "value": [ 401, 403 ] }, { "responseField": "msg", "operator": "contains", "value": [ "unauthorized", "token", "invalid", "auth" ] } ], "matchMode": "any", "trigger": "tokenConfig.onMissing" } } }