{ "name": "tiktok-user-profile", "displayName": "TikTok 用户详情", "description": "根据用户名获取 TikTok 用户完整资料(粉丝数/总获赞/作品数/个人简介等)。适用于竞品品牌 TikTok 影响力分析、KOL 达人档案建立、达人商业价値评估。", "category": "social-media", "version": "1.3.0", "endpoint": { "method": "GET", "url": "https://server.fmode.cn/api/voc-social/tiktok/web/fetch_user_profile", "headers": { "Authorization": "Bearer ${vocToken}", "Accept": "application/json" } }, "parameters": { "type": "object", "required": [ "uniqueId" ], "properties": { "uniqueId": { "type": "string", "description": "TikTok 用户名(不含@),如 'nestnewyork'、'dealwhisperer'" } } }, "requestTransform": { "queryParams": { "uniqueId": "{{uniqueId}}" } }, "response": { "type": "object", "description": "用户详情", "properties": { "user": { "type": "object", "properties": { "id": { "type": "string", "description": "用户 ID" }, "uniqueId": { "type": "string", "description": "用户名" }, "nickname": { "type": "string", "description": "昵称" }, "signature": { "type": "string", "description": "个人简介" }, "verified": { "type": "boolean", "description": "是否认证" }, "avatarLarger": { "type": "string", "description": "头像 URL" }, "secUid": { "type": "string", "description": "安全用户 ID(用于获取帖子)" } } }, "stats": { "type": "object", "properties": { "followerCount": { "type": "integer", "description": "粉丝数" }, "followingCount": { "type": "integer", "description": "关注数" }, "heart": { "type": "integer", "description": "获赞总数" }, "heartCount": { "type": "integer", "description": "获赞总数(别名)" }, "videoCount": { "type": "integer", "description": "作品总数" }, "diggCount": { "type": "integer", "description": "点赞数" } } } } }, "notes": "返回的 secUid 可用于 tiktok-user-posts 接口获取用户发布的视频列表。", "usageExamples": [ { "name": "竞品品牌 TikTok 影响力分析", "input": { "uniqueId": "nestnewyork" }, "description": "获取 NEST New York 的 TikTok 粉丝数、获赞总量,评估其社媒平台影响力" }, { "name": "KOL 达人商业价値评估", "input": { "uniqueId": "dealwhisperer" }, "description": "获取达人 @dealwhisperer 的粉丝数、总获赞、作品数,评估带货商业价値" }, { "name": "品类 KOL 批量围筛", "input": { "uniqueId": "达人用户名" }, "description": "为候选达人建立档案,统计粉丝数/获赞数/作品数三维度商业指标" } ], "workflow": { "description": "推荐调用链", "steps": [ "上游: tiktok-user-search(keyword) → 搜索达人 → 取 uniqueId", "上游: tiktok-video-search(keyword) → 视频列表 → 从 author.unique_id 获取", "本步: tiktok-user-profile(uniqueId) → 获取完整账号数据", "下游: tiktok-user-posts(secUid) → 获取达人发布的视频列表" ] }, "reportMapping": { "slides": [ "竞品对标(Slide4)", "红人达人库(Slide11)" ], "dataPoints": [ "TikTok 粉丝规模", "总获赞(内容影响力指标)", "作品发布频率(活跃度)", "KOL 认证状态(verified)" ] }, "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" } } }