LinkedIn Sales Navigator Scraper

Automate your lead generation and enrichment workflow with n8n and LinkedIn Sales Navigator

Step-by-Step Guide

1
Overview
Understand what the LinkedIn Sales Navigator Scraper does

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:

1. Lead Generation Workflow

Scrapes LinkedIn Sales Navigator search results and stores them in your database

2. Lead Enrichment Workflow

Enriches the leads with email addresses and additional data

Getting Started

  1. Download both workflow files using the buttons above
  2. Import the workflows into your n8n instance
  3. Follow the setup instructions in the next steps
2
Prerequisites
What you'll need before getting started

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

3
Setup
Configure your environment and database

Quick Setup Steps

  1. Create a new table in your Supabase database with the required structure
  2. Get your API keys from Apify, Apollo.io, and Supabase
  3. Configure your credentials in n8n

Database Structure

Column NameType
iduuid
first_nametext
last_nametext
job_titletext
companytext
company_industrytext
locationtext
linkendInUrltext
emailtext
enrichedboolean
enrichment_datajsonb
4
Lead Generation
Scrape LinkedIn Sales Navigator search results

The Lead Generation workflow scrapes LinkedIn Sales Navigator search results and stores them in your Supabase database.

Workflow Steps

  1. Collect LinkedIn Sales Navigator search URL, cookie, and Apify API key
  2. Trigger the Apify LinkedIn Sales Navigator Scraper
  3. Retrieve the scraped data from Apify
  4. Process and store the leads in your Supabase database
  5. Trigger the Lead Enrichment workflow

LinkedIn Cookie

To get your LinkedIn cookie in JSON format:

  1. Log in to LinkedIn Sales Navigator
  2. Open your browser's developer tools (F12)
  3. Go to the "Application" tab
  4. Under "Storage", select "Cookies" and then the LinkedIn domain
  5. Copy all cookies and format them as a JSON object
5
Lead Enrichment
Enrich your leads with email addresses and additional data

The Lead Enrichment workflow enriches your leads with email addresses and additional data using the Apollo.io API.

Workflow Steps

  1. Retrieve unenriched leads from your Supabase database
  2. Process the leads in batches
  3. Call the Apollo.io API to enrich the leads
  4. 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
6
FAQ & Troubleshooting
Common questions and solutions

System Prompt for LLMs
Use this system prompt with your favorite LLM to get assistance with the LinkedIn Sales Navigator Scraper
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 Documentation

Download the documentation for offline reference.

Complete Documentation as PDF

Download a PDF containing all documentation sections.

All Documentation Files as ZIP

Download all documentation files in a single ZIP archive.

Individual Documentation Files

Download individual markdown files for specific sections.