DEV Community

Donny Nguyen
Donny Nguyen

Posted on

Apollo Lead Scraper: Build a B2B Lead Pipeline in 20 Lines of Code

Building outbound sales? You need leads. Apollo.io is great, but their API starts at $49/month and the free tier is limited.

The Apollo Lead Scraper API gives you direct access to B2B lead data — names, job titles, emails, company info — via a simple REST endpoint.

Quick Start

curl -X GET "https://apollo-lead-scraper.p.rapidapi.com/apollo-lead-scraper/search?query=CTO+fintech+San+Francisco&limit=10" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: apollo-lead-scraper.p.rapidapi.com"
Enter fullscreen mode Exit fullscreen mode

Sample Response:

{
  "results": [
    {
      "name": "Jane Smith",
      "title": "Chief Technology Officer",
      "company": "FinTech Corp",
      "email": "jane.smith@fintechcorp.com",
      "location": "San Francisco, CA"
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

Node.js — Export Leads to CSV

const axios = require('axios');
const fs = require('fs');

async function findLeads(role, industry, city) {
  const { data } = await axios.get(
    'https://apollo-lead-scraper.p.rapidapi.com/apollo-lead-scraper/search',
    {
      params: { query: `${role} ${industry} ${city}`, limit: 25 },
      headers: {
        'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
        'X-RapidAPI-Host': 'apollo-lead-scraper.p.rapidapi.com'
      }
    }
  );

  const verified = data.results.filter(l => l.email?.includes('@'));
  const csv = ['Name,Title,Company,Email'];
  verified.forEach(l => csv.push(`${l.name},${l.title},${l.company},${l.email}`));
  fs.writeFileSync('leads.csv', csv.join('\n'));
  console.log(`Exported ${verified.length} leads to leads.csv`);
  return verified;
}

findLeads('VP of Engineering', 'SaaS', 'Austin TX');
Enter fullscreen mode Exit fullscreen mode

Use Cases

  1. Sales Outreach — Find decision-makers at target companies for cold email campaigns
  2. Recruiting — Source engineering talent by role, location, and industry
  3. Market Mapping — Identify companies hiring for specific roles

Free tier available. Try the Apollo Lead Scraper API on RapidAPI


Related APIs by Donny Digital

Digital Products: Prompt Packs, Notion Templates & More on Gumroad

👉 Browse all APIs on RapidAPI

Top comments (0)