One command in Claude Code. Local businesses from Google Maps, creators from Instagram, TikTok, YouTube. It even finds their emails and writes your outreach for you.
Apify is a web scraping platform that pulls data from Google Maps, Instagram, TikTok, YouTube, and hundreds of other sites. Claude Code is Anthropic's AI tool that runs in your terminal. This guide connects them together so you can type something like "find me 500 plumbers in Sydney" and get a CSV full of names, phone numbers, websites, and ratings in minutes.
Claude Code is Anthropic's command-line tool. It runs in your terminal and can read, write, and reason about files on your computer.
On Mac or Linux, open Terminal and paste this:
npm install -g @anthropic-ai/claude-code
Once installed, start it up:
claude
It'll ask you to log in the first time. Sign in with your Anthropic account and you're set.
Apify is the scraping engine that does the heavy lifting. It pulls data from Google Maps, Instagram, and other platforms. You get $5 in free credit every month, enough for hundreds of leads.
Sign up here:
Use Google or email. Either works. Once you're logged in, move to the next step.
The API token is what lets Claude Code talk to Apify on your behalf. You only need to do this once.
Go to your integrations page:
console.apify.com/settings/integrations
You'll see a section called Personal API token. Click Copy next to it. Keep it handy. You'll paste it in the next step.
This tells Claude Code where to find Apify. One command, paste your token when asked, and you're done forever.
In your terminal (not inside Claude Code, exit first if you're in it):
claude mcp add apify -e APIFY_TOKEN=your-token-here -- npx -y @apify/actors-mcp-server
Replace your-token-here with the API token you copied in Step 3. No quotes needed.
That's Apify connected. Now let's install the skill that makes it all work.
This installs a skill that teaches Claude Code how to find leads, pick the right scraper, format the results, and optionally find emails and write outreach messages. One command.
curl -fsSL https://raw.githubusercontent.com/daniel9834/claude-skills/main/install.sh | bash -s scrape-leads
You'll see it download the skill files. Takes about 5 seconds.
Open Claude Code (or restart it if it's already open) and type:
/scrape-leads
Here's what happens:
Claude will ask you four quick questions, one at a time:
After you answer, it scrapes, shows you a formatted table in the terminal, and saves everything to a CSV file on your computer.
Next time, just tell it what you want:
find me 200 plumbers in Melbourne
It'll confirm what you asked for, check if you want enrichment, and go. You can search for something different every time. It always asks before scraping.
What you get in the CSV:
Here are four searches worth running. Pick the one closest to what you actually need. These aren't demos, they'll produce real leads you can use today.
find me 100 dentists in Miami with at least 4 stars
find fitness influencers on Instagram with 10k to 100k followers
find me 50 marketing agencies in London, enrich with emails and write outreach messages
/scrape-leads
Real estate agents scraping property managers. SaaS founders finding early adopters on Instagram. Freelancers building client lists from Google Maps. Agencies running competitor research across 5 platforms at once.
No spreadsheet gymnastics. No $200/month lead gen subscriptions. One command, real data, straight to CSV.