scraping-instagram-users-by-keyword
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseScraping Instagram Users By Keyword
按关键词抓取Instagram用户
Raw data collection. No assumed use case — returns the full dataset for downstream analysis.
原始数据收集,不预设使用场景——返回完整数据集以供下游分析。
Inputs
输入参数
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| array | Optional | | Keywords to search for users |
| array | Optional | | Instagram usernames (without @) |
| array | Optional | | Instagram profile URLs |
| array | Optional | | Instagram user IDs |
| boolean | Optional | | Extract follower lists for each profile |
| boolean | Optional | | Extract following lists for each profile |
| number | Optional | Unlimited | Maximum users to return |
| string | Optional | — | JavaScript function to transform each output object |
| 参数 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
| 数组 | 可选 | | 用于搜索用户的关键词 |
| 数组 | 可选 | | Instagram用户名(不含@) |
| 数组 | 可选 | | Instagram个人主页URL |
| 数组 | 可选 | | Instagram用户ID |
| 布尔值 | 可选 | | 提取每个账号的粉丝列表 |
| 布尔值 | 可选 | | 提取每个账号的关注列表 |
| 数字 | 可选 | 无限制 | 返回的最大用户数量 |
| 字符串 | 可选 | — | 用于转换每个输出对象的JavaScript函数 |
How to Run
运行方式
Using run_actor.js (recommended)
使用run_actor.js(推荐)
bash
undefinedbash
undefinedQuick answer (table)
Quick answer (table)
node scripts/run_actor.js --actor "apidojo~instagram-user-scraper" --input '{"handles": ["natgeo"], "getFollowers": false, "maxItems": 50}'
node scripts/run_actor.js --actor "apidojo~instagram-user-scraper" --input '{"handles": ["natgeo"], "getFollowers": false, "maxItems": 50}'
Save as CSV
Save as CSV
node scripts/run_actor.js --actor "apidojo~instagram-user-scraper" --input '{"handles": ["natgeo"], "getFollowers": false, "maxItems": 50}' --output results.csv --format csv
node scripts/run_actor.js --actor "apidojo~instagram-user-scraper" --input '{"handles": ["natgeo"], "getFollowers": false, "maxItems": 50}' --output results.csv --format csv
Save as JSON
Save as JSON
node scripts/run_actor.js --actor "apidojo~instagram-user-scraper" --input '{"handles": ["natgeo"], "getFollowers": false, "maxItems": 50}' --output results.json --format json
undefinednode scripts/run_actor.js --actor "apidojo~instagram-user-scraper" --input '{"handles": ["natgeo"], "getFollowers": false, "maxItems": 50}' --output results.json --format json
undefinedREST API fallback
备用REST API方式
bash
curl -X POST "https://api.apify.com/v2/acts/apidojo~instagram-user-scraper/runs" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"handles": ["natgeo"], "getFollowers": false, "maxItems": 50}'If Apify MCP is available:
Use the Apify MCP tool with actor and the input above.
call_actorapidojo~instagram-user-scraperbash
curl -X POST "https://api.apify.com/v2/acts/apidojo~instagram-user-scraper/runs" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"handles": ["natgeo"], "getFollowers": false, "maxItems": 50}'如果Apify MCP可用:
使用Apify MCP的工具,指定actor为并传入上述输入参数。
call_actorapidojo~instagram-user-scraperOutput Fields
输出字段
| Field | Type | Description |
|---|---|---|
| string | Instagram user ID |
| string | @username |
| string | Display name |
| string | Profile bio text |
| string | Link in bio (website) |
| number | Follower count |
| number | Following count |
| number | Total posts |
| boolean | Verification status |
| boolean | Business account flag |
| string | Business category |
| string | Profile picture URL |
| string | High-resolution profile picture URL |
| boolean | Private account flag |
| string | Public email (if available) |
| string | Public phone (if available) |
| string | Contact phone (if available) |
| 字段 | 类型 | 说明 |
|---|---|---|
| 字符串 | Instagram用户ID |
| 字符串 | @用户名 |
| 字符串 | 显示名称 |
| 字符串 | 个人简介文本 |
| 字符串 | 简介中的链接(网站) |
| 数字 | 粉丝数量 |
| 数字 | 关注数量 |
| 数字 | 帖子总数 |
| 布尔值 | 认证状态 |
| 布尔值 | 商业账号标识 |
| 字符串 | 商业分类 |
| 字符串 | 头像URL |
| 字符串 | 高清头像URL |
| 布尔值 | 私人账号标识 |
| 字符串 | 公开邮箱(如有) |
| 字符串 | 公开电话(如有) |
| 字符串 | 联系电话(如有) |
Edge Cases
边缘情况
- Private account: Returns profile metadata but no followers/following.
- No public email: publicEmail field absent — normal for personal accounts.
- Large follower list: Set maxItems limit to avoid excessive cost.
- Account not found: Returns empty result. Check handle spelling.
- Keyword returns many: Use maxItems to cap results.
- 私人账号:返回账号元数据,但无法获取粉丝/关注列表。
- 无公开邮箱:publicEmail字段不存在——个人账号通常如此。
- 粉丝列表庞大:设置maxItems限制以避免过高成本。
- 账号未找到:返回空结果,请检查用户名拼写。
- 关键词返回结果过多:使用maxItems限制结果数量。