Skip to main content

Extract LinkedIn Sales Navigator contacts to Google Sheets with auto pagination

Workflow preview

Workflow preview
100%
Extract LinkedIn Sales Navigator contacts to Google Sheets with auto pagination preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Complete Template Description Automate LinkedIn Sales Navigator contact extraction to Google Sheets This workflow scrapes LinkedIn Sales Navigator search results and automatically saves contact det...

Best for

  • Lead Generation automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.googlesheets, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.wait, n8n-nodes-base.stickynote, n8n-nodes-base.manualtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Naveen Choudhary.

Original n8n.io source

1.1 Workflow description

Title
Extract LinkedIn Sales Navigator contacts to Google Sheets with auto pagination
Workflow name
Extract LinkedIn Sales Navigator contacts to Google Sheets with auto pagination

Complete Template Description

Automate LinkedIn Sales Navigator contact extraction to Google Sheets

This workflow scrapes LinkedIn Sales Navigator search results and automatically saves contact details to Google Sheets with pagination support and rate limiting protection.

Who's it for

Sales teams, recruiters, and business development professionals who need to extract and organize LinkedIn contact data at scale without manual copy-pasting.

What it does

The workflow connects to a LinkedIn scraping API to fetch contact information from Sales Navigator search results. It handles pagination automatically, extracts contact details (name, title, company, location, profile URL), and appends them to a Google Sheet. Built-in rate limiting (30-60 second delays) prevents API blocks and mimics natural browsing behavior.

Requirements

  • Self-hosted n8n instance (this workflow will NOT work on n8n Cloud due to cookie requirements and third-party API usage)
  • LinkedIn Sales Navigator account
  • Google Sheets account
  • EditThisCookie browser extension
  • API access from the creator (1 month free trial available)

How to set up

Step 1: Get API Access Email the creator to request 1 month of free API access using the link in the workflow. You'll receive your API key within 24 hours.

Step 2: Configure API Authentication

  1. Click the "Scrape LinkedIn Contacts API" node
  2. Under Authentication, select "Header Auth"
  3. Create new credential with Name: x-api-key and your received API key as the Value
  4. Save the credential

Step 3: Extract LinkedIn Cookies

  1. Install the EditThisCookie extension
  2. Navigate to LinkedIn Sales Navigator
  3. Click the cookie icon in your browser toolbar
  4. Click "Export" and copy the cookie data
  5. Paste into the cookies field in the "Set Search Parameters" node

Step 4: Configure Your Search In the "Set Search Parameters" node, update:

  • cookies: Your exported LinkedIn cookies
  • url: Your LinkedIn Sales Navigator search URL
  • total_pages: Number of pages to scrape (default: 2, each page = ~25 contacts)

Step 5: Set Up Google Sheets

  1. Make a copy of the template Google Sheet (or create your own with matching column headers)
  2. In the "Save Contacts to Google Sheets" node, connect your Google Sheets account
  3. Select your destination spreadsheet and sheet name

Important Security Note: Keep your LinkedIn cookies private. Never share them with others or commit them to public repositories.

Customization options

  • Adjust total_pages to control how many contacts you scrape
  • Modify the delay in "Rate Limit Delay Between Requests" node (default: 30-60 seconds random) - do not lower this to avoid API blocks
  • Customize which contact fields to save in the Google Sheets column mapping
  • Change the search URL to target different prospect segments or filters

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Scrape LinkedIn Contacts API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - Extract Contact Data Array

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Save Contacts to Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 4 - Check If More Pages Available

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Increment Page Start Parameter

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Rate Limit Delay Between Requests

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Start Workflow

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 14 - Set Search Parameters

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Extract LinkedIn Sales Navigator contacts to Google Sheets with auto pagination
Complexity advanced
Nodes 15
Categories Lead Generation
Author Naveen Choudhary
Published 01 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9136/9136.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Extract LinkedIn Sales Navigator contacts to Google Sheets with auto pagination do?

Complete Template Description Automate LinkedIn Sales Navigator contact extraction to Google Sheets This workflow scrapes LinkedIn Sales Navigator search results and automatically saves contact det...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation use case.