Collect LinkedIn Profiles with SerpAPI Google Search and Sheets
    100%
    Automation
    0(0 reviews)
    26 downloads

    Collect LinkedIn Profiles with SerpAPI Google Search and Sheets

    NM

    Curated by n8n Markets team

    Last updated: March 8, 2026

    # [LI] – Search Profiles > ⚠️ Self-hosted disclaimer: > This workflow uses the SerpAPI community node, which is available only on self-hosted n8n instances. > For n8n Cloud, you may need to use an HTTP Request node with the SerpAPI REST API instead. --- ![Screenshot From 20251020 130253.png](fileId:3020) --- ## Who’s it for Recruiters, talent sourcers, SDRs, and anyone who wants to automatically gather public LinkedIn profiles from Google search results based on keywords — across multiple pages — and log them to a Google Sheet for further analysis. --- ## What it does / How it works This workflow extends the standard LinkedIn profile search to include pagination, allowing you to fetch results from multiple Google result pages in one go. Here’s the step-by-step process: 1. Form Trigger – “LinkedIn Search” - Collects: - Keywords (comma separated) – e.g., `python, fintech, warsaw` - Pages to fetch – number of Google pages to scrape (each page ≈ 10 results) - Triggers the workflow when submitted. 2. Format Keywords (Set) - Converts the keywords into a Google-ready query string: ``` ("python") ("fintech") ("warsaw") ``` - These parentheses improve relevance in Google searches. 3. Build Page List (Code) - Creates a list of pages to iterate through. - For example, if “Pages to fetch” = 3, it generates 3 search batches with proper `start` offsets (`0`, `10`, `20`). - Keeps track of: - Grouped keywords (`keywordsGrouped`) - Raw keywords - Submission timestamp 4. Loop Over Items (Split In Batches) - Loops through the page list one batch at a time. - Sends each batch to SerpAPI Search and continues until all pages are processed. 5. SerpAPI Search - Queries Google with: ``` site:pl.linkedin.com/in/ ("keyword1") ("keyword2") ("keyword3") ``` - Fixed to the Warsaw, Masovian Voivodeship, Poland location. - The `start` parameter controls pagination. 6. Check how many results are returned (Switch) - If no results → Triggers No profiles found. - If results found → Passes data forward. 7. Split Out - Extracts each LinkedIn result from the `organic_results` array. 8. Get Full Name to property of object (Code) - Extracts a clean full name from the search result title (text before “–” or “|”). 9. Append profile in sheet (Google Sheets) - Saves the following fields into your connected sheet: | Column | Description | |---------|-------------| | Date | Submission timestamp | | Profile | Public LinkedIn profile URL | | Full name | Extracted candidate name | | Keywords | Original keywords from the form | 10. Loop Over Items (continue) - After writing each batch, it loops to the next Google page until all pages are complete. 11. Form Response (final step) - Sends a confirmation back to the user after all pages are processed: ``` Check linked file ``` --- ## 🧾 Google Sheets Setup Before using the workflow, prepare your Google Sheet with these columns in row 1: | Column Name | Description | |--------------|-------------| | Date | Automatically filled with the form submission time | | Profile | LinkedIn profile link | | Full name | Extracted name from search results | | Keywords | Original search input | > You can expand the sheet to include optional fields like Snippet, Job Title, or Notes if you modify the mapping in the `Append profile in sheet` node. --- ## Requirements - SerpAPI account – with API key stored securely in n8n Credentials. - Google Sheets OAuth2 credentials – connected to your target sheet with edit access. - n8n instance (Cloud or self-hosted) > Note: SerpAPI node is part of the Community package and may require self-hosted n8n. --- ## How to set up 1. Import the `[LI] - Search profiles` workflow into n8n. 2. Connect your credentials: - SerpAPI – use your API key. - Google Sheets OAuth2 – ensure you have write permissions. 3. Update the Google Sheets node to point to your own spreadsheet and worksheet. 4. (Optional) Edit the `location` field in SerpAPI Search for different regions. 5. Activate the workflow and open the public form (via webhook URL). 6. Enter your keywords and specify the number of pages to fetch. --- ## How to customize the workflow - Change search region: Modify the `location` in the SerpAPI node or change the domain to `site:linkedin.com/in/` for global searches. - Add pagination beyond 3–4 pages: Increase “Pages to fetch” — but note that excessive pages may trigger Google rate limits. - Avoid duplicates: Add a Google Sheets → Read + IF node before appending new URLs. - Add notifications: Add Slack, Discord, or Email nodes after Google Sheets to alert your team when new data arrives. - Capture more data: Map additional fields like `title`, `snippet`, or `position` into your Sheet. --- ## Security notes - Never store API keys directly in nodes — always use n8n Creden

    What's Included

    • Complete n8n workflow template with 0 nodes. Ready to import and customize.

    Requirements

    n8n instance (self-hosted or cloud). credentials.

    How to Use

    1. Download the workflow JSON 2. Import into your n8n instance 3. Configure credentials for 4. Activate and enjoy automation

    How to import this template into n8n

    1. Download the workflow JSON file from this page.
    2. In n8n, open Workflows, create a new workflow and choose Import from File.
    3. Open each node that shows a warning and connect your own credentials.
    4. Run the workflow once manually to check the output before you activate it.
    Included in Pro
    • Importable n8n workflow JSON file
    • Download with Builder Pro or Agency Unlimited
    • Built for n8n v1.0++
    • Setup time: 5-15 min

    Included in Builder Pro — $19/mo, 4,177 premium workflows

    Before you activate

    Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.

    Updated Mar 2026
    v1.0
    SSL
    Secure
    GDPR

    100% Secure Checkout

    Refund requests within 7 days of a new subscription

    Dependencies & Requirements

    HTTP Request
    Integration

    ⚠️ 1 service require credentials. Make sure you have accounts set up before importing.

    Reviews

    0

    No reviews yet

    See all 0 reviews ↓
    —

    0 reviews

    5★
    0
    4★
    0
    3★
    0
    2★
    0
    1★
    0

    No reviews yet.

    Questions & Answers

    0

    Log in to ask a question.

    No questions yet. Be the first to ask!

    People Also Bought