| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- {
- "name": "douyin-user-profile",
- "displayName": "抖音用户信息查询",
- "description": "根据 sec_user_id 获取抖音用户完整主页数据,包括粉丝数、总获赞数、作品数、个人简介、认证信息等。适用于KOL档案建立、竞品品牌账号分析、达人粉丝画像评估。",
- "category": "douyin",
- "version": "1.3.0",
- "endpoint": {
- "method": "GET",
- "url": "https://server.fmode.cn/api/voc-social/douyin/app/v3/handler_user_profile",
- "headers": {
- "Authorization": "Bearer r:a5a19ea9868043b15d9b10423234ca43",
- "Accept": "application/json"
- }
- },
- "parameters": {
- "type": "object",
- "required": [
- "sec_user_id"
- ],
- "properties": {
- "sec_user_id": {
- "type": "string",
- "description": "抖音用户 sec_user_id"
- }
- }
- },
- "requestTransform": {
- "queryParams": {
- "sec_user_id": "{{sec_user_id}}"
- }
- },
- "response": {
- "type": "object",
- "description": "用户完整资料",
- "properties": {
- "data": {
- "type": "object",
- "description": "用户信息,包括昵称、粉丝数、获赞数、作品数、个人简介、头像等"
- }
- }
- },
- "usageExamples": [
- {
- "name": "KOL达人档案建立",
- "input": {
- "sec_user_id": "MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y"
- },
- "description": "获取达人完整主页数据,建立KOL档案:粉丝规模、获赞总量、内容数量、个人定位"
- },
- {
- "name": "竞品品牌账号分析",
- "input": {
- "sec_user_id": "竞品品牌抖音sec_user_id"
- },
- "description": "分析竞品品牌抖音账号的粉丝规模、内容体量、账号认证状态"
- }
- ],
- "workflow": {
- "description": "推荐调用链",
- "steps": [
- "上游: douyin-user-search(keyword) → 搜索达人 → 取 sec_uid",
- "上游: douyin-general-search(keyword) → 获取视频列表 → 从 author.sec_uid 获取",
- "本步: douyin-user-profile(sec_user_id) → 获取完整账号数据",
- "下游: 结合粉丝数/获赞数评估KOL商业价值"
- ]
- },
- "reportMapping": {
- "slides": [
- "社媒聆听(Slide14)"
- ],
- "dataPoints": [
- "KOL粉丝规模",
- "账号总获赞(影响力指标)",
- "作品发布频率(活跃度)",
- "账号认证类型(品牌/个人/机构)",
- "达人个人定位(简介分析)"
- ]
- },
- "timeout": 60000,
- "retry": {
- "maxAttempts": 3,
- "delay": 1500,
- "backoffMultiplier": 2
- },
- "tokenConfig": {
- "type": "bearer",
- "configFile": "~/.openclaw/voc-credentials.json",
- "tokenField": "vocToken",
- "currentToken": "r:858b3ee92314d5447d1fc3cdc10462d7",
- "resolutionOrder": ["configFile", "currentToken"],
- "onMissing": {
- "action": "showPaymentQR",
- "qrCodeUrl": "https://pwa.fmode.cn/apig-pay.html?user={{user}}&apigid={{apigid}}&fun_id=HOkkX72PMF",
- "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
- "pollingIntervalMs": 3000,
- "pollingTimeoutMs": 300000,
- "onPaymentSuccess": "retrySkillWithNewToken",
- "title": "扫码开通 VOC-AI 数据服务",
- "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
- },
- "onBalanceInsufficient": {
- "action": "showPaymentQR",
- "qrCodeUrl": "https://pwa.fmode.cn/apig-pay.html?user={{user}}&apigid={{apigid}}&fun_id=HOkkX72PMF",
- "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
- "pollingIntervalMs": 3000,
- "pollingTimeoutMs": 300000,
- "onPaymentSuccess": "retrySkillWithNewToken",
- "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": "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"
- }
- }
- }
|