Skip to main content

Scrape LinkedIn profiles into Google Sheets using Google Custom Search

Workflow preview

Workflow preview
100%
Scrape LinkedIn profiles into Google Sheets using Google Custom Search preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Who’s it for This template is ideal for recruiters, founders, sales teams, and lead generation specialists who want to quickly collect LinkedIn profiles based on role, industry, and region. It is p...

Best for

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

Tools used

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

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Scrape LinkedIn profiles into Google Sheets using Google Custom Search
Workflow name
Scrape LinkedIn profiles into Google Sheets using Google Custom Search

Who’s it for

This template is ideal for recruiters, founders, sales teams, and lead-generation specialists who want to quickly collect LinkedIn profiles based on role, industry, and region. It is perfect for users who want profile lists for outreach, research, hiring, or market analysis without manually searching LinkedIn.

What it does / How it works

This workflow begins with a web form where you enter three inputs: position, industry, and region.
Once the form is submitted, the workflow performs a Google Custom Search query restricted to LinkedIn profile URLs.
The results are processed to extract structured profile information such as:

  • Name
  • Job title (cleaned using custom logic)
  • LinkedIn profile link
  • Description / bio snippet
  • Profile image URL

The workflow automatically handles pagination by detecting whether more results are available and continues fetching until the limit is reached.
All extracted profiles are appended or updated in a Google Sheet so you always maintain an organized and deduplicated list.

Requirements

  • Google Sheets OAuth2 credentials
  • Google Custom Search API key
  • Google CSE (Custom Search Engine) ID
  • A Google Sheet with the required columns (name, title, profile link, description, image link, searched position, searched industry, searched region)

How to set up

  1. Connect your Google Sheets credentials.
  2. Add your Custom Search API key and CSE ID inside the HTTP Request node.
  3. Select your target Google Sheet in the “Append or update row in sheet” node.
  4. Open the form URL and submit your position, industry, and region.
  5. Run the workflow to begin scraping profiles.

How to customize the workflow

  • Modify search query structure for niche industries
  • Add enrichment tools (Hunter.io, Clearbit, People Data)
  • Expand pagination limit beyond the default
  • Add filters to remove non-relevant results
  • Output data to CRM tools like HubSpot, Notion, Airtable, or Sheets

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 - HTTP Request

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

Block 2 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 3 - Code in JavaScript

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

Block 4 - Wait

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

Block 5 - Code in JavaScript1

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

Block 6 - Edit Fields

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

Block 7 - Pagination Check

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

Block 8 - Append or update row in sheet

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

Block 9 - Edit Fields1

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

Block 10 - Sticky Note

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

Block 11 - Sticky Note1

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

Block 12 - Sticky Note2

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

3. Summary Table

Workflow Scrape LinkedIn profiles into Google Sheets using Google Custom Search
Complexity intermediate
Nodes 12
Categories Lead Generation
Author Pixcels Themes
Published 11 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11693/11693.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 Scrape LinkedIn profiles into Google Sheets using Google Custom Search do?

Who’s it for This template is ideal for recruiters, founders, sales teams, and lead generation specialists who want to quickly collect LinkedIn profiles based on role, industry, and region. It is p...

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.