Skip to main content
skill CX Codex

scraping-instagram-users-by-keyword — Claude Code skill

Collects Instagram profiles from keywords, handles, and URLs, with optional follower and following lists. Useful for account data exports and research.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add apidojo-io/apidojo-skills --skill scraping-instagram-users-by-keyword -a claude-code
Open on GitHub

What scraping-instagram-users-by-keyword does

This skill runs the apidojo~instagram-user-scraper actor on Apify and returns Instagram account data. Inputs can include keywords, handles, startUrls, or userIds; getFollowers and getFollowings request related lists, while maxItems caps the result size.

The recommended runner is scripts/run_actor.js, which can print a table or write results.csv and results.json. A REST request is also available with APIFY_TOKEN; when Apify MCP is available, the skill can use its call_actor tool. Returned fields include usernames, bios, follower and post counts, verification state, business-account details, and public contact fields.

Private accounts return profile metadata, but their follower and following lists are not available. A public email is returned when the account exposes one.

What it helps with

  • find Instagram accounts from a keyword
  • collect followers for selected profiles
  • retrieve accounts followed by a profile
  • export profile records as CSV or JSON
  • gather public emails from business accounts

Example prompts for the agent

  • Find Instagram users for these keywords and return their profile data.
  • Collect followers for the handle natgeo, cap the result with maxItems, and save it to results.csv.
  • Fetch the Instagram profile data for this URL, including the username, follower count, bio, and verification status.

How to install scraping-instagram-users-by-keyword

1Skills CLI (Vercel)

npx skills add apidojo-io/apidojo-skills --skill scraping-instagram-users-by-keyword -a claude-code

2Manually: put the files in place

~/.claude/skills/scraping-instagram-users-by-keyword/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/scraping-instagram-users-by-keyword/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about scraping-instagram-users-by-keyword

How do I install scraping-instagram-users-by-keyword in Claude Code?

Run npx skills add apidojo-io/apidojo-skills --skill scraping-instagram-users-by-keyword -a claude-code. Then use the file ~/.claude/skills/scraping-instagram-users-by-keyword/SKILL.md.

What does scraping-instagram-users-by-keyword do?

The skill runs Instagram User Scraper on Apify to collect profiles and, when requested, follower or following lists. Its output includes profile fields, account counts, verification data, and available public contacts.

Can it retrieve followers from a private Instagram account?

No. A private account yields profile metadata, while its follower and following lists are not returned.

Source text

SKILL.md · Apache-2.0
---
name: scraping-instagram-users-by-keyword
description: >
  Extracts Instagram user profiles, followers, and following lists using apidojo's Instagram
  User Scraper on Apify. Triggers when the user asks to: find Instagram users by keyword or name,
  get follower lists for Instagram accounts, get following lists for Instagram accounts, export
  Instagram profile data in bulk, fetch public email addresses from Instagram business profiles,
  search for Instagram users by username or handle, or build a dataset of Instagram account metadata.
  Returns username, follower count, bio, post count, verification status, public email, and more.
  Ideal for influencer researchers, outreach teams, and competitive intelligence analysts.
license: Apache-2.0
metadata:
  author: apidojo
  version: "1.0"
  apify-actor: apidojo/instagram-user-scraper
---

# Scraping Instagram Users By Keyword

Raw data collection. No assumed use case — returns the full dataset for downstream analysis.

---

## Inputs

| Parameter | Type | Required | Default | Notes |
|-----------|------|----------|---------|-------|
| `keywords` | array | Optional | `[]` | Keywords to search for users |
| `handles` | array | Optional | `[]` | Instagram usernames (without @) |
| `startUrls` | array | Optional | `[]` | Instagram profile URLs |
| `userIds` | array | Optional | `[]` | Instagram user IDs |
| `getFollowers` | boolean | Optional | `false` | Extract follower lists for each profile |
| `getFollowings` | boolean | Optional | `false` | Extract following lists for each profile |
| `maxItems` | number | Optional | Unlimited | Maximum users to return |
| `customMapFunction` | string | Optional | — | JavaScript function to transform each output object |

## How to Run

### Using run_actor.js (recommended)

```bash
# Quick answer (table)
node scripts/run_actor.js --actor "apidojo~instagram-user-scraper" --input '{"handles": ["natgeo"], "getFollowers": false, "maxItems": 50}'

# 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

# 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
```

### REST API fallback

```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 `call_actor` tool with actor `apidojo~instagram-user-scraper` and the input above.

---

## Output Fields

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Instagram user ID |
| `username` | string | @username |
| `fullName` | string | Display name |
| `biography` | string | Profile bio text |
| `externalUrl` | string | Link in bio (website) |
| `followerCount` | number | Follower count |
| `followingCount` | number | Following count |
| `postCount` | number | Total posts |
| `isVerified` | boolean | Verification status |
| `isBusinessAccount` | boolean | Business account flag |
| `businessCategoryName` | string | Business category |
| `profilePicUrl` | string | Profile picture URL |
| `profilePicUrlHd` | string | High-resolution profile picture URL |
| `isPrivate` | boolean | Private account flag |
| `publicEmail` | string | Public email (if available) |
| `publicPhoneNumber` | string | Public phone (if available) |
| `contactPhoneNumber` | string | Contact phone (if available) |

## 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.

© apidojo · Apache-2.0 · apidojo-io/apidojo-skills

Similar skills

All skills for Browser and scraping →

From the same set82

monitoring-google-news-coverage-for-brand Searches Google News for brand coverage through Apify, then returns article details and sentiment. Use it for press and reputation monitoring. CX Codex +1 737installs scraping-youtube-channel-data Collects YouTube channel metrics and video catalogs through Apify. Use it to process channels in bulk from URLs or handles. CX Codex +1 733installs finding-digital-agencies-via-google-search Finds digital agencies and web studios in Google Search using Apify. Extracts company domains and snippets while scoring leads for B2B prospecting. CX Codex +1 730installs analyzing-tiktok-hashtag-performance Measures TikTok hashtag reach, engagement, top videos, and creators through Apify. Use it to compare tags or shape a hashtag plan for a post. CX Codex +1 730installs finding-youtube-channels-by-growth-rate Finds YouTube channels with high growth rates in a niche using Apify's YouTube scraper. Useful for spotting rising creators before they get big. CX Codex +1 730installs tracking-product-launch-buzz-on-twitter Tracks product launch tweets via an Apify scraper, categorizing public sentiment and calculating a buzz score. Handy for marketing teams monitoring releases. CX Codex +1 726installs finding-restaurant-brands-on-instagram Discovers restaurant profiles and food brands on Instagram using Apify. Extracts engagement metrics and scores leads for B2B prospecting. CX Codex +1 717installs scraping-urban-dictionary-definitions Extracts slang definitions, context examples, and user votes from Urban Dictionary. Useful for tracking internet culture and online trends. CX Codex +1 698installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor