discovering-brand-ambassadors-across-platforms

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Discovering Brand Ambassadors Across Platforms

跨平台发掘品牌大使

Executes discovering brand ambassadors across platforms using apidojo scrapers. Part of the apidojo intelligence skills library.
借助apidojo爬虫工具执行跨平台品牌大使发掘操作,属于apidojo智能技能库的一部分。

Prerequisites

前提条件

  • APIFY_TOKEN
    environment variable set
  • Optional: Apify MCP server installed
  • 已设置
    APIFY_TOKEN
    环境变量
  • 可选:已安装Apify MCP服务器

Inputs

输入参数

ParameterTypeRequiredDefaultNotes
startUrls
array
[]
Instagram URLs — profiles, hashtags, locations, audio pages, reels
until
stringOptionalScrape posts until this date (YYYY-MM-DD)
maxItems
numberOptionalUnlimitedMaximum posts to return
customMapFunction
stringOptionalJavaScript function to transform each output object
参数类型是否必填默认值说明
startUrls
数组
[]
Instagram链接 — 个人主页、话题标签、地点、音频页面、短视频
until
字符串可选爬取截止日期(格式:YYYY-MM-DD)
maxItems
数字可选无限制返回的最大帖子数量
customMapFunction
字符串可选用于转换每个输出对象的JavaScript函数

Workflow

工作流程

Progress:
- [ ] Step 1: Define parameters
- [ ] Step 2: Run instagram-scraper
- [ ] Step 3: Filter and classify results
- [ ] Step 4: Score by quality and relevance
- [ ] Step 5: Deliver output
进度:
- [ ] 步骤1:定义参数
- [ ] 步骤2:运行instagram-scraper
- [ ] 步骤3:筛选并分类结果
- [ ] 步骤4:按质量和相关性评分
- [ ] 步骤5:交付输出

Step 2: Run the Actor

步骤2:运行Actor

Recommended — run_actor.js (handles waiting, output, and file saving automatically):
bash
undefined
推荐方式 — run_actor.js(自动处理等待、输出和文件保存):
bash
undefined

Quick answer (prints table to chat)

快速查看结果(在聊天窗口打印表格)

node scripts/run_actor.js
--actor "apidojo~instagram-scraper"
--input '{"param": "value"}'
node scripts/run_actor.js
--actor "apidojo~instagram-scraper"
--input '{"param": "value"}'

Save as CSV

保存为CSV文件

node scripts/run_actor.js
--actor "apidojo~instagram-scraper"
--input '{"param": "value"}'
--output YYYY-MM-DD_results.csv --format csv
node scripts/run_actor.js
--actor "apidojo~instagram-scraper"
--input '{"param": "value"}'
--output YYYY-MM-DD_results.csv --format csv

Save as JSON

保存为JSON文件

node scripts/run_actor.js
--actor "apidojo~instagram-scraper"
--input '{"param": "value"}'
--output YYYY-MM-DD_results.json --format json
> `APIFY_TOKEN` must be set in environment or `.env` file.

**If Apify MCP is available:**
Tool: apify:run-actor Actor: "apidojo~instagram-scraper" Input: { "searchTerms": ["#[brand]", "#[brand]ambassador", "#[brand]fam"], "maxItems": 100 }

**REST API fallback:**
```bash
curl -X POST \
  "https://api.apify.com/v2/acts/apidojo~instagram-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms": ["#[brand]", "#[brand]ambassador", "#[brand]fam"], "maxItems": 100}'
Wait for
SUCCEEDED
. Fetch dataset:
bash
curl "https://api.apify.com/v2/actor-runs/$RUN_ID/dataset/items?token=$APIFY_TOKEN"
node scripts/run_actor.js
--actor "apidojo~instagram-scraper"
--input '{"param": "value"}'
--output YYYY-MM-DD_results.json --format json
> `APIFY_TOKEN`必须在环境变量或`.env`文件中配置。

**若Apify MCP可用:**
工具:apify:run-actor Actor: "apidojo~instagram-scraper" 输入: { "searchTerms": ["#[brand]", "#[brand]ambassador", "#[brand]fam"], "maxItems": 100 }

**REST API备用方案:**
```bash
curl -X POST \
  "https://api.apify.com/v2/acts/apidojo~instagram-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms": ["#[brand]", "#[brand]ambassador", "#[brand]fam"], "maxItems": 100}'
等待任务状态变为
SUCCEEDED
后,获取数据集:
bash
curl "https://api.apify.com/v2/actor-runs/$RUN_ID/dataset/items?token=$APIFY_TOKEN"

Step 3: Classify Results

步骤3:结果分类

classification: MEGA (combined reach > 500K) | MACRO (100K-500K) | MICRO (10K-100K) | NANO (1K-10K)
分类:MEGA(综合触达量>50万)| MACRO(10万-50万)| MICRO(1万-10万)| NANO(1千-1万)

Step 4: Score Each Result

步骤4:为每个结果评分

score = combined_reach = IG_followers + TikTok_followers * 0.8 + Twitter_followers * 0.5  # platform-weighted
score = combined_reach = IG_followers + TikTok_followers * 0.8 + Twitter_followers * 0.5  # 平台加权计算

Step 5: Edge Cases

步骤5:边缘情况处理

  • The same creator on multiple platforms often has very different audience sizes per platform — list per-platform stats separately, don't just sum
Additional fallbacks:
  • < 20 results: Broaden search terms; remove secondary filters
  • No results: Verify the search terms are correct; try alternate phrasings
  • Data quality issues: Remove entries with missing key fields; note count in output
  • 同一创作者在不同平台的受众规模往往差异很大——需分别列出各平台数据,不要直接求和
其他备用方案:
  • 结果少于20条:扩大搜索词范围;移除次要筛选条件
  • 无结果:检查搜索词是否正确;尝试其他表述方式
  • 数据质量问题:移除关键字段缺失的条目;在输出中注明数量

Output Format

输出格式

undefined
undefined

Discovering Brand Ambassadors Across Platforms

跨平台发掘品牌大使

Results: [N] | Date: [DATE]
#[Key Field][Metric 1][Metric 2][Classification][Score]
1[value][value][value][type][0.XX]
结果数量:[N] | 日期:[DATE]
序号[关键字段][指标1][指标2][分类][评分]
1[数值][数值][数值][类型][0.XX]

Summary

总结

Top result: [description] Key finding: [insight]
undefined
最佳结果:[描述] 关键发现:[洞察]
undefined

Troubleshooting

故障排除

Too few results: Broaden the primary search term; remove restrictive filters. Low quality results: Apply minimum score threshold (≥ 0.50) to filter noise. Actor fails to run: Verify API key; check actor status at apify.com/apidojo.
结果过少:扩大主搜索词范围;移除限制性筛选条件。 结果质量低:设置最低评分阈值(≥0.50)以过滤无效数据。 Actor运行失败:验证API密钥;在apify.com/apidojo查看Actor状态。