apify-audience-analysis

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Audience Analysis

受众分析

Analyze and understand your audience using Apify Actors to extract follower demographics, engagement patterns, and behavior data from multiple platforms.
使用Apify Actors分析并了解你的受众,从多个平台提取粉丝人口统计数据、互动模式和行为数据。

Prerequisites

前提条件

(No need to check it upfront)
  • .env
    file with
    APIFY_TOKEN
  • Node.js 20.6+ (for native
    --env-file
    support)
  • mcpc
    CLI tool:
    npm install -g @apify/mcpc
(无需预先检查)
  • 包含
    APIFY_TOKEN
    .env
    文件
  • Node.js 20.6+(支持原生
    --env-file
    功能)
  • mcpc
    CLI工具:
    npm install -g @apify/mcpc

Workflow

工作流程

Copy this checklist and track progress:
Task Progress:
- [ ] Step 1: Identify audience analysis type (select Actor)
- [ ] Step 2: Fetch Actor schema via mcpc
- [ ] Step 3: Ask user preferences (format, filename)
- [ ] Step 4: Run the analysis script
- [ ] Step 5: Summarize findings
复制此清单并跟踪进度:
Task Progress:
- [ ] Step 1: Identify audience analysis type (select Actor)
- [ ] Step 2: Fetch Actor schema via mcpc
- [ ] Step 3: Ask user preferences (format, filename)
- [ ] Step 4: Run the analysis script
- [ ] Step 5: Summarize findings

Step 1: Identify Audience Analysis Type

步骤1:确定受众分析类型

Select the appropriate Actor based on analysis needs:
User NeedActor IDBest For
Facebook follower demographics
apify/facebook-followers-following-scraper
FB followers/following lists
Facebook engagement behavior
apify/facebook-likes-scraper
FB post likes analysis
Facebook video audience
apify/facebook-reels-scraper
FB Reels viewers
Facebook comment analysis
apify/facebook-comments-scraper
FB post/video comments
Facebook content engagement
apify/facebook-posts-scraper
FB post engagement metrics
Instagram audience sizing
apify/instagram-profile-scraper
IG profile demographics
Instagram location-based
apify/instagram-search-scraper
IG geo-tagged audience
Instagram tagged network
apify/instagram-tagged-scraper
IG tag network analysis
Instagram comprehensive
apify/instagram-scraper
Full IG audience data
Instagram API-based
apify/instagram-api-scraper
IG API access
Instagram follower counts
apify/instagram-followers-count-scraper
IG follower tracking
Instagram comment export
apify/export-instagram-comments-posts
IG comment bulk export
Instagram comment analysis
apify/instagram-comment-scraper
IG comment sentiment
YouTube viewer feedback
streamers/youtube-comments-scraper
YT comment analysis
YouTube channel audience
streamers/youtube-channel-scraper
YT channel subscribers
TikTok follower demographics
clockworks/tiktok-followers-scraper
TT follower lists
TikTok profile analysis
clockworks/tiktok-profile-scraper
TT profile demographics
TikTok comment analysis
clockworks/tiktok-comments-scraper
TT comment engagement
根据分析需求选择合适的Actor:
用户需求Actor ID适用场景
Facebook粉丝人口统计数据
apify/facebook-followers-following-scraper
Facebook粉丝/关注列表
Facebook互动行为
apify/facebook-likes-scraper
Facebook帖子点赞分析
Facebook视频受众
apify/facebook-reels-scraper
Facebook Reels观众
Facebook评论分析
apify/facebook-comments-scraper
Facebook帖子/视频评论
Facebook内容互动
apify/facebook-posts-scraper
Facebook帖子互动指标
Instagram受众规模统计
apify/instagram-profile-scraper
Instagram账号人口统计数据
Instagram基于位置的分析
apify/instagram-search-scraper
Instagram带地理标签的受众
Instagram标签网络分析
apify/instagram-tagged-scraper
Instagram标签网络分析
Instagram全面分析
apify/instagram-scraper
Instagram完整受众数据
Instagram基于API的分析
apify/instagram-api-scraper
Instagram API访问
Instagram粉丝数量跟踪
apify/instagram-followers-count-scraper
Instagram粉丝跟踪
Instagram评论导出
apify/export-instagram-comments-posts
Instagram评论批量导出
Instagram评论分析
apify/instagram-comment-scraper
Instagram评论情感分析
YouTube观众反馈
streamers/youtube-comments-scraper
YouTube评论分析
YouTube频道受众
streamers/youtube-channel-scraper
YouTube频道订阅者
TikTok粉丝人口统计数据
clockworks/tiktok-followers-scraper
TikTok粉丝列表
TikTok账号分析
clockworks/tiktok-profile-scraper
TikTok账号人口统计数据
TikTok评论分析
clockworks/tiktok-comments-scraper
TikTok评论互动分析

Step 2: Fetch Actor Schema

步骤2:获取Actor架构

Fetch the Actor's input schema and details dynamically using mcpc:
bash
export $(grep APIFY_TOKEN .env | xargs) && mcpc --json mcp.apify.com --header "Authorization: Bearer $APIFY_TOKEN" tools-call fetch-actor-details actor:="ACTOR_ID" | jq -r ".content"
Replace
ACTOR_ID
with the selected Actor (e.g.,
apify/facebook-followers-following-scraper
).
This returns:
  • Actor description and README
  • Required and optional input parameters
  • Output fields (if available)
使用mcpc动态获取Actor的输入架构和详细信息:
bash
export $(grep APIFY_TOKEN .env | xargs) && mcpc --json mcp.apify.com --header "Authorization: Bearer $APIFY_TOKEN" tools-call fetch-actor-details actor:="ACTOR_ID" | jq -r ".content"
ACTOR_ID
替换为所选的Actor(例如:
apify/facebook-followers-following-scraper
)。
此命令将返回:
  • Actor描述和README
  • 必填和可选输入参数
  • 输出字段(如果可用)

Step 3: Ask User Preferences

步骤3:询问用户偏好

Before running, ask:
  1. Output format:
    • Quick answer - Display top few results in chat (no file saved)
    • CSV - Full export with all fields
    • JSON - Full export in JSON format
  2. Number of results: Based on character of use case
运行之前,询问以下内容:
  1. 输出格式
    • 快速回答 - 在聊天中显示前几条结果(不保存文件)
    • CSV - 包含所有字段的完整导出
    • JSON - JSON格式的完整导出
  2. 结果数量:根据使用场景的特点确定

Step 4: Run the Script

步骤4:运行脚本

Quick answer (display in chat, no file):
bash
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
  --actor "ACTOR_ID" \
  --input 'JSON_INPUT'
CSV:
bash
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
  --actor "ACTOR_ID" \
  --input 'JSON_INPUT' \
  --output YYYY-MM-DD_OUTPUT_FILE.csv \
  --format csv
JSON:
bash
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
  --actor "ACTOR_ID" \
  --input 'JSON_INPUT' \
  --output YYYY-MM-DD_OUTPUT_FILE.json \
  --format json
快速回答(在聊天中显示,不生成文件):
bash
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
  --actor "ACTOR_ID" \
  --input 'JSON_INPUT'
CSV格式:
bash
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
  --actor "ACTOR_ID" \
  --input 'JSON_INPUT' \
  --output YYYY-MM-DD_OUTPUT_FILE.csv \
  --format csv
JSON格式:
bash
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
  --actor "ACTOR_ID" \
  --input 'JSON_INPUT' \
  --output YYYY-MM-DD_OUTPUT_FILE.json \
  --format json

Step 5: Summarize Findings

步骤5:总结分析结果

After completion, report:
  • Number of audience members/profiles analyzed
  • File location and name
  • Key demographic insights
  • Suggested next steps (deeper analysis, segmentation)
完成后,报告以下内容:
  • 分析的受众成员/账号数量
  • 文件位置和名称
  • 关键人口统计洞察
  • 建议的后续步骤(深入分析、受众细分)

Error Handling

错误处理

APIFY_TOKEN not found
- Ask user to create
.env
with
APIFY_TOKEN=your_token
mcpc not found
- Ask user to install
npm install -g @apify/mcpc
Actor not found
- Check Actor ID spelling
Run FAILED
- Ask user to check Apify console link in error output
Timeout
- Reduce input size or increase
--timeout
APIFY_TOKEN not found
- 请用户创建包含
APIFY_TOKEN=your_token
.env
文件
mcpc not found
- 请用户执行
npm install -g @apify/mcpc
进行安装
Actor not found
- 检查Actor ID的拼写
Run FAILED
- 请用户查看错误输出中的Apify控制台链接
Timeout
- 减小输入规模或增加
--timeout
参数