apify-lead-generation
Verifiedby sickn33 · Updated Apr 16, 2026
Scrape leads from multiple platforms using Apify Actors.
See It In Action
I'll use Google Places to pull gym leads in Austin. Let me grab the actor schema first, then run the scrape.
Got the token. Let me check the run script and then fire off the scrape.
Need to set up prerequisites first. Let me install mcpc and create the .env file.
Good. Now let me fetch the actor schema and write the run script.
The mcpc syntax changed. Let me use the Apify REST API directly — faster for our needs.
Scrape is running (typically takes 2-4 minutes for this volume). Waiting for results...
Got 119 leads — more than the 75 you needed. Let me check the data quality and give you the summary.
Good data but needs a quick cleanup — 4 dupes and 7 apartment complexes snuck in. Let me clean it to exactly 75 quality leads.
Done. Here's your deliverable:
75 Austin Gym Leads — Ready for Outbound
| Metric | Value |
|---|---|
| Total leads | 75 |
| With phone | 75 (100%) |
| With website | 75 (100%) |
| With address | 75 (100%) |
| Avg Google rating | 4.7 stars |
Category mix: Gyms (largest), Personal Trainers, Boxing Gyms, Martial Arts Schools, CrossFit/Fitness Centers, Muay Thai, Jujitsu
Quality notes:
- All 75 leads have complete contact info (phone + website + address) — no blanks to chase down
- Sorted by contact completeness then review volume, so your highest-signal leads are at the top
- Removed 4 duplicates and 9 non-gym results (apartment complexes, rec centers) from the raw scrape
- 85%+ rated 4.5+ stars — these are established, active businesses
- Mix of independent gyms and small chains; includes niche verticals (boxing, martial arts, CrossFit) for targeted messaging
Files saved:
2026-04-13_austin_gym_leads.csv— ready to import into your CRM/dialer2026-04-13_austin_gym_leads.json— structured data if you need programmatic access
The scrape task already completed and the leads are delivered. The CSV and JSON files are ready in your working directory — just grab 2026-04-13_austin_gym_leads.csv and load it into your dialer/CRM. Good luck with outbound today.
External Tools
| Tool | Type |
|---|---|
| node | binary |
| npm | binary |
| jq | binary |
Permissions
| Scope | Description |
|---|---|
| filesystem:read | |
| filesystem:write | |
| network:outbound | |
| process:spawn | |
| env:read |
SKILL.md
Lead Generation
Scrape leads from multiple platforms using Apify Actors.
When to Use
- You need business, creator, or contact leads from maps, search, social, or video platforms.
- The task involves selecting an Apify Actor to discover prospects and extract outreach data.
- You need exported lead data plus a concise summary of lead quality or segmentation.
Prerequisites
(No need to check it upfront)
.envfile withAPIFY_TOKEN- Node.js 20.6+ (for native
--env-filesupport) mcpcCLI tool:npm install -g @apify/mcpc
Workflow
Copy this checklist and track progress:
Task Progress:
- [ ] Step 1: Determine lead source (select Actor)
- [ ] Step 2: Fetch Actor schema via mcpc
- [ ] Step 3: Ask user preferences (format, filename)
- [ ] Step 4: Run the lead finder script
- [ ] Step 5: Summarize results
Step 1: Determine Lead Source
Select the appropriate Actor based on user needs:
| User Need | Actor ID | Best For |
|---|---|---|
| Local businesses | compass/crawler-google-places | Restaurants, gyms, shops |
| Contact enrichment | vdrmota/contact-info-scraper | Emails, phones from URLs |
| Instagram profiles | apify/instagram-profile-scraper | Influencer discovery |
| Instagram posts/comments | apify/instagram-scraper | Posts, comments, hashtags, places |
| Instagram search | apify/instagram-search-scraper | Places, users, hashtags discovery |
| TikTok videos/hashtags | clockworks/tiktok-scraper | Comprehensive TikTok data extraction |
| TikTok hashtags/profiles | clockworks/free-tiktok-scraper | Free TikTok data extractor |
| TikTok user search | clockworks/tiktok-user-search-scraper | Find users by keywords |
| TikTok profiles | clockworks/tiktok-profile-scraper | Creator outreach |
| TikTok followers/following | clockworks/tiktok-followers-scraper | Audience analysis, segmentation |
| Facebook pages | apify/facebook-pages-scraper | Business contacts |
| Facebook page contacts | apify/facebook-page-contact-information | Extract emails, phones, addresses |
| Facebook groups | apify/facebook-groups-scraper | Buying intent signals |
| Facebook events | apify/facebook-events-scraper | Event networking, partnerships |
| Google Search | apify/google-search-scraper | Broad lead discovery |
| YouTube channels | streamers/youtube-scraper | Creator partnerships |
| Google Maps emails | poidata/google-maps-email-extractor | Direct email extraction |
Step 2: Fetch Actor Schema
Fetch the Actor's input schema and details dynamically using mcpc:
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., compass/crawler-google-places).
This returns:
- Actor description and README
- Required and optional input parameters
- Output fields (if available)
Step 3: Ask User Preferences
Before running, ask:
- 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
- Number of results: Based on character of use case
Step 4: Run the Script
Quick answer (display in chat, no file):
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
--actor "ACTOR_ID" \
--input 'JSON_INPUT'
CSV:
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:
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 Results
After completion, report:
- Number of leads found
- File location and name
- Key fields available
- Suggested next steps (filtering, enrichment)
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
FAQ
What does apify-lead-generation do?
Scrape leads from multiple platforms using Apify Actors.
When should I use apify-lead-generation?
Use it when you need a repeatable workflow that produces structured table, text report, source code.
What does apify-lead-generation output?
In the evaluated run it produced structured table, text report, source code.
How do I install or invoke apify-lead-generation?
Ask the agent to use this skill when the task matches its documented workflow.
Which agents does apify-lead-generation support?
Agent support is inferred from the source, but not explicitly declared.
What tools, channels, or permissions does apify-lead-generation need?
It uses node, npm, jq; channels commonly include table, text, code; permissions include filesystem:read, filesystem:write, network:outbound, process:spawn, env:read.
Is apify-lead-generation safe to install?
Static analysis marked this skill as medium risk; review side effects and permissions before enabling it.
How is apify-lead-generation different from an MCP or plugin?
A skill packages instructions and workflow conventions; tools, MCP servers, and plugins are dependencies the skill may call during execution.
Does apify-lead-generation outperform not using a skill?
About apify-lead-generation
When to use apify-lead-generation
You need to gather leads from platforms like Google Maps, Instagram, TikTok, Facebook, YouTube, or search results. You want the agent to choose an appropriate Apify Actor, inspect its schema, and run it with structured input. You need the scraped results summarized and optionally saved as CSV or JSON.
When apify-lead-generation is not the right choice
You do not have an Apify token or cannot use Apify Actors in the environment. You need a connector-based native integration rather than CLI-driven API access through local scripts.
What it produces
Produces structured table, text report and source code.