🎣 Export LinkedIn search results to Google Sheets using ConnectSafely.ai API

⚡ 89 views · 🎣 Lead Generation & Enrichment

💡 Pro Tip — If you’re pulling LinkedIn data through HTTP requests or dealing with API restrictions, there’s a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search — you just pass a URL and get structured data back.

View All Scrapers

Description

Who’s it for

This workflow is built for sales professionals, recruiters, founders, and growth marketers who need to build targeted prospect lists from LinkedIn without risking their accounts. Perfect for anyone who wants to find decision-makers, build lead lists, or research target audiences at scale.

If you’re running outbound campaigns, building ABM lists, sourcing candidates, or doing competitive research, this automation handles LinkedIn searches and exports results directly to your Google Sheet—no browser cookies, no session hijacking, no ban risk.

How it works

The workflow automates LinkedIn people searches by leveraging ConnectSafely.ai’s compliant API, then exports structured results to Google Sheets or JSON files.

The process flow:

  1. Define your search parameters (keywords, location, job title, result limit)
  2. Execute the search via ConnectSafely.ai API
  3. Process and normalize the response data
  4. Export to Google Sheets for CRM import or further automation
  5. Optionally save as JSON file for data backup or processing

No LinkedIn cookies required. No browser automation. Platform-compliant searches that won’t get your account restricted.

Watch the complete step-by-step implementation guide:

LinkedIn Search Export Automation Tutorial


Setup steps

Step 1: Get Your ConnectSafely.ai API Credentials

Obtain API Key:

  1. Log into ConnectSafely.ai Dashboard
  2. Navigate to Settings → API Keys
  3. Generate a new API key
  4. Copy your API key (you’ll need this in the next step)

Add Bearer Auth Credential in n8n:

  1. Go to Credentials in n8n
  2. Click Add Credential → HTTP Bearer Auth
  3. Paste your ConnectSafely.ai API key
  4. Save the credential

Step 2: Configure Search Parameters

Open the Set Search Parameters node and customize your search:

ParameterDescriptionExample
keywordsSearch terms for profilesCEO SaaS, Marketing Director
locationGeographic filterUnited States, San Francisco Bay Area
titleJob title filterHead of Growth, VP Sales
limitMaximum results to return100 (max varies by plan)

Pro Tips:


Step 3: Configure Google Sheets Integration

3.1 Connect Google Sheets Account

  1. Go to Credentials → Add Credential → Google Sheets OAuth2
  2. Follow the OAuth flow to connect your Google account
  3. Grant access to Google Sheets

3.2 Prepare Your Google Sheet

Create a new Google Sheet with the following columns (the workflow will auto-populate these):

Column NameDescription
profileUrlLinkedIn profile URL
fullNameContact’s full name
firstNameFirst name
lastNameLast name
headlineLinkedIn headline/tagline
currentPositionCurrent job title
companyCompany name (extracted from headline)
locationGeographic location
connectionDegree1st, 2nd, or 3rd degree connection
isPremiumLinkedIn Premium member (true/false)
isOpenToWorkOpen to work badge (true/false)
profilePictureProfile image URL
extractedAtTimestamp of extraction

3.3 Configure the Export Node

  1. Open the Export to Google Sheets node
  2. Select your Google Sheets credential
  3. Enter your Document ID (from the sheet URL)
  4. Select the Sheet Name
  5. The column mapping is pre-configured for auto-mapping

Step 4: Test the Workflow

  1. Click the Manual Trigger node
  2. Click Test Workflow
  3. Verify:
    • Search executes successfully
    • Results appear in the Format Results output
    • Data exports to your Google Sheet
    • JSON file is generated (optional)

Customization

Search Parameter Combinations

Sales Prospecting:

keywords: "B2B SaaS"
location: "United States"
title: "VP of Sales"
limit: 100

Recruiting:

keywords: "Python Machine Learning"
location: "San Francisco Bay Area"
title: "Senior Engineer"
limit: 50

Founder Networking:

keywords: "Seed Series A"
location: "New York City"
title: "Founder CEO"
limit: 100

Extending the Workflow

Add to CRM: Connect the Format Results output to HubSpot, Salesforce, or Pipedrive nodes

Enrich Data: Add a loop to fetch full profile details for each result using the /linkedin/profile endpoint

Chain with Outreach: Connect to the LinkedIn Connection Request Workflow to automatically send personalized invites to your search results

Schedule Searches: Replace Manual Trigger with a Schedule Trigger to run daily/weekly searches


Output Data Format

Each result includes:

{
  "profileUrl": "https://www.linkedin.com/in/johndoe",
  "profileId": "johndoe",
  "profileUrn": "urn:li:member:123456789",
  "fullName": "John Doe",
  "firstName": "John",
  "lastName": "Doe",
  "headline": "VP of Sales at TechCorp | B2B SaaS",
  "currentPosition": "VP of Sales",
  "company": "TechCorp",
  "location": "San Francisco, California",
  "connectionDegree": "2nd",
  "isPremium": true,
  "isOpenToWork": false,
  "profilePicture": "https://media.licdn.com/...",
  "extractedAt": "2024-01-15T10:30:00.000Z"
}

Use Cases

Sales Prospecting: Build targeted lead lists of decision-makers at companies matching your ICP

Recruiting & Talent Sourcing: Find passive candidates with specific skills and experience levels

Market Research: Analyze competitor employee profiles and organizational structures

Event Planning: Build invite lists for webinars, conferences, or virtual events

Partnership Development: Identify potential partners and integration opportunities

Investor Research: Find founders and executives at companies in specific stages/verticals


Troubleshooting

Common Issues & Solutions

Issue: “No results found” error

Issue: Empty company field in results

Issue: API authentication errors

Issue: Google Sheets not updating

Issue: Fewer results than expected

Issue: Rate limit errors


Documentation & Resources

Official Documentation

Support Channels


Connect With Us

Stay updated with the latest automation tips, LinkedIn strategies, and platform updates:


Need Custom Workflows?

Looking to build sophisticated LinkedIn automation workflows tailored to your business needs?

Contact our team for custom automation development, strategy consulting, and enterprise solutions.

We specialize in:

đź”— Nodes Used

Google Sheets, HTTP Request, Convert to File

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup