Step-by-Step Guide
The LinkedIn Sales Navigator Scraper is a set of n8n workflows that allows you to:
- Scrape leads from LinkedIn Sales Navigator search results
- Store the leads in a Supabase database
- Enrich the leads with email addresses and additional data
- Automate your lead generation and enrichment process
Workflow Components
The scraper consists of two main workflows:
Getting Started
- Download both workflow files using the buttons above
- Import the workflows into your n8n instance
- Follow the setup instructions in the next steps
Before you can use the LinkedIn Sales Navigator Scraper, you'll need:
An n8n instance
Self-hosted or cloud versionVisit n8n
A LinkedIn Sales Navigator account
Professional or Team plan recommendedVisit LinkedIn Sales Navigator
An Apify account
For the web scraping functionality. You'll need to use the LinkedIn Sales Navigator Search ScraperVisit Scraper
A Supabase account
To store your lead dataVisit Supabase
An Apollo.io account
For lead enrichment with email addressesVisit Apollo.io
Quick Setup Steps
- Create a new table in your Supabase database with the required structure
- Get your API keys from Apify, Apollo.io, and Supabase
- Configure your credentials in n8n
Database Structure
| Column Name | Type |
|---|---|
| id | uuid |
| first_name | text |
| last_name | text |
| job_title | text |
| company | text |
| company_industry | text |
| location | text |
| linkendInUrl | text |
| text | |
| enriched | boolean |
| enrichment_data | jsonb |
The Lead Generation workflow scrapes LinkedIn Sales Navigator search results and stores them in your Supabase database.
Workflow Steps
- Collect LinkedIn Sales Navigator search URL, cookie, and Apify API key
- Trigger the Apify LinkedIn Sales Navigator Scraper
- Retrieve the scraped data from Apify
- Process and store the leads in your Supabase database
- Trigger the Lead Enrichment workflow
LinkedIn Cookie
To get your LinkedIn cookie in JSON format:
- Log in to LinkedIn Sales Navigator
- Open your browser's developer tools (F12)
- Go to the "Application" tab
- Under "Storage", select "Cookies" and then the LinkedIn domain
- Copy all cookies and format them as a JSON object
The Lead Enrichment workflow enriches your leads with email addresses and additional data using the Apollo.io API.
Workflow Steps
- Retrieve unenriched leads from your Supabase database
- Process the leads in batches
- Call the Apollo.io API to enrich the leads
- Update the leads in your Supabase database with the enriched data
Apollo.io Integration
The workflow uses the Apollo.io API to enrich your leads with:
- Email addresses (personal and work)
- Phone numbers
- Social media profiles
- Company information
You are an assistant that helps with setting up and using the LinkedIn Sales Navigator Scraper workflow. This workflow automates lead generation and enrichment using n8n, Apify, and Apollo.io. WORKFLOW OVERVIEW: The LinkedIn Sales Navigator Scraper consists of two main workflows: 1. Lead Generation - Scrapes LinkedIn Sales Navigator search results and stores them in a Supabase database 2. Lead Enrichment - Enriches the leads with email addresses and additional data using Apollo.io PREREQUISITES: - An n8n instance (self-hosted or cloud) - A LinkedIn Sales Navigator account - An Apify account with access to the LinkedIn Sales Navigator Search Scraper - A Supabase account and database - An Apollo.io account for lead enrichment SETUP INSTRUCTIONS: 1. Create a table in your Supabase database with the following structure: - id (uuid, primary key) - first_name (text) - last_name (text) - job_title (text) - company (text) - company_industry (text) - location (text) - linkendInUrl (text, unique) - email (text) - enriched (boolean, default false) - enrichment_data (jsonb) 2. Get your API keys: - Apify API key from the Apify console - Apollo.io API key from your account settings - Supabase URL and API key from your project settings 3. Import the workflow files into your n8n instance: - Lead_Generation.json - Lead_Enrichment.json 4. Configure your credentials in n8n 5. Get your LinkedIn cookie in JSON format: - Log in to LinkedIn Sales Navigator - Open your browser's developer tools (F12) - Go to the "Application" tab - Under "Storage", select "Cookies" and then the LinkedIn domain - Copy all cookies and format them as a JSON object 6. Run the Lead Generation workflow: - Fill in the form with your LinkedIn cookie, search URL, and Apify API key - Submit the form to start the scraping process 7. The Lead Enrichment workflow will automatically run after the Lead Generation workflow completes TROUBLESHOOTING: - If the workflow fails, check your API keys and LinkedIn cookie format - Ensure your Supabase database has the correct structure - Check the n8n logs for specific error messages When asked questions about this workflow, provide detailed, step-by-step instructions based on this information.
Download the documentation for offline reference.