| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- {
- "name": "instagram-user-info",
- "displayName": "Instagram 用户详情",
- "description": "根据用户名获取 Instagram 账号完整资料,包括粉丝数、帖子数、个人简介、认证状态、商业账号类型等。适用于竞品品牌 IG 影响力画像建立、KOL 资质评估、达人商业价弹分析。",
- "category": "social-media",
- "version": "1.3.0",
- "endpoint": {
- "method": "GET",
- "url": "https://server.fmode.cn/api/voc-social/instagram/v1/fetch_user_info_by_username_v3",
- "headers": {
- "Authorization": "Bearer r:a5a19ea9868043b15d9b10423234ca43",
- "Accept": "application/json"
- }
- },
- "parameters": {
- "type": "object",
- "required": [
- "username"
- ],
- "properties": {
- "username": {
- "type": "string",
- "description": "Instagram 用户名(不含@),如 'nestnewyork'、'paddywax'"
- }
- }
- },
- "requestTransform": {
- "queryParams": {
- "username": "{{username}}"
- }
- },
- "response": {
- "type": "object",
- "description": "用户详细资料",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "pk": {
- "type": "string",
- "description": "用户数字 ID"
- },
- "username": {
- "type": "string",
- "description": "用户名"
- },
- "full_name": {
- "type": "string",
- "description": "显示名称"
- },
- "biography": {
- "type": "string",
- "description": "个人简介"
- },
- "follower_count": {
- "type": "integer",
- "description": "粉丝数"
- },
- "following_count": {
- "type": "integer",
- "description": "关注数"
- },
- "media_count": {
- "type": "integer",
- "description": "帖子总数"
- },
- "is_verified": {
- "type": "boolean",
- "description": "是否蓝V认证"
- },
- "is_business": {
- "type": "boolean",
- "description": "是否商业账号"
- },
- "category": {
- "type": "string",
- "description": "账号类别"
- },
- "external_url": {
- "type": "string",
- "description": "外部链接(如品牌官网)"
- },
- "profile_pic_url_hd": {
- "type": "string",
- "description": "高清头像 URL"
- }
- }
- }
- }
- },
- "notes": "返回的 pk(用户数字 ID)可用于 instagram-user-posts 接口获取帖子列表。media_count 对应报告中的帖子数(如 Paddywax 3,095 条)。",
- "usageExamples": [
- {
- "name": "竞品品牌 IG 影响力画像",
- "input": {
- "username": "nestnewyork"
- },
- "description": "获取 NEST New York 的 IG 粉丝数、帖子数、认证状态,建立竞品 IG 影响力画像"
- },
- {
- "name": "竞品组对标数据采集",
- "input": {
- "username": "paddywax"
- },
- "description": "获取 Paddywax 的 IG 数据,用于报告中竞品 Instagram 对标数据填充"
- },
- {
- "name": "KOL 资质评估",
- "input": {
- "username": "达人用户名"
- },
- "description": "获取 KOL 的粉丝数、帖子数、是否商业账号等,评估带货商业指标"
- }
- ],
- "workflow": {
- "description": "推荐调用链",
- "steps": [
- "上游: instagram-search(query, select='users') → 搜索用户 → 取 username",
- "本步: instagram-user-info(username) → 获取完整账号数据(pk/follower_count/media_count)",
- "下游: instagram-user-posts(user_id=pk) → 获取帖子列表分析内容策略"
- ]
- },
- "reportMapping": {
- "slides": [
- "竞品对标(Slide4)",
- "知识中心(Slide11)"
- ],
- "dataPoints": [
- "IG 粉丝规模",
- "帖子总量(内容活跃度)",
- "认证状态(蓝 V/商业账号)",
- "品牌简介分析(biography)",
- "外部链接(官网入口)"
- ]
- },
- "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"
- }
- }
- }
|