Workflow

Export Any LinkedIn Search to Google Sheets

Scrape LinkedIn search results with pagination. Paste a fetch() from DevTools to extract profiles matching your search query.

Needle Team

Last updated

February 4, 2026

Connectors used

Google Sheets

Tags

LinkedInSearch ExportLead GenerationSales ProspectingGoogle SheetsPagination

Key Takeaways

  • Export any LinkedIn people search - Works with any search query you can run on LinkedIn
  • Automatic pagination - Loops through up to 50 pages of results with 3-second delays between requests
  • Real-time export - Profiles are saved to Google Sheets as each page is processed
  • Structured profile data - Extracts name, headline, location, LinkedIn URL, and more
  • DevTools-based - You paste a fetch() request copied from your browser

What This Workflow Does

This workflow takes a LinkedIn search API request (copied from your browser's DevTools), pages through all results, extracts profile data from each page, and saves each profile to Google Sheets in real time. You run a search on LinkedIn, copy the network request, paste it into the workflow, and get a spreadsheet of matching profiles.

Use cases:

  • Build targeted lead lists by job title, location, or industry
  • Source candidates for open roles
  • Export search results that LinkedIn does not let you download natively
  • Create prospecting lists for outreach campaigns

How It Works

StepWhat Happens
1. Manual triggerYou paste a fetch() request copied from LinkedIn DevTools
2. Parse requestCode node extracts the search URL, headers, and CSRF token
3. Loop through pagesFetches each page of results (up to 50 pages, 3-second delay each)
4. Extract profilesCode node pulls name, headline, location, LinkedIn URL per profile
5. Save to Google SheetsGemini Flash writes each profile to your spreadsheet

The loop processes approximately 10 profiles per page, up to a maximum of 50 pages.


Data Extracted

FieldDescription
nameFull name
linkedin_urlProfile URL
headlineProfessional headline
locationGeographic location
public_identifierLinkedIn username
connection_degree1st, 2nd, or 3rd degree
search_queryThe original search keywords

AI Models Used

ModelProviderRole
Gemini 3 FlashGoogleWrites extracted data to Google Sheets

Setup Instructions

  1. Click "Use template" on this page
  2. Copy the template Google Sheet linked inside the workflow and paste your own sheet URL into the AI node
  3. Connect your Google Sheets account
  4. Go to LinkedIn and perform your desired people search
  5. Open DevTools (F12), go to the Network tab, and filter by "graphql" or "voyager"
  6. Find the searchDashClusters request, right-click it, and select "Copy as fetch"
  7. Paste the fetch() into the Manual Trigger node
  8. Run the workflow

Google Sheets Output

ColumnField
Aname
Blinkedin_url
Cheadline
Djob_title
Ecompany
Flocation
Gemail
Hsearch_query

Customization

What You Can ChangeHow
Search queryRun a different LinkedIn search and copy the new fetch() request
Google Sheet columnsModify the AI node prompt to change which columns are written
Delay between pagesEdit the wait node duration (default is 3 seconds)
Max pagesChange the loop condition (default is 50 pages)

FAQ

Q: Does this require LinkedIn Sales Navigator? A: No, it works with a free LinkedIn account. Sales Navigator gives more search filters but is not required.

Q: Why do I need to copy a fetch() from DevTools? A: The workflow uses your authenticated LinkedIn session to make API requests. The fetch() contains your session cookies and CSRF token.

Q: What if I get errors after a while? A: Your LinkedIn session may have expired. Log back in and copy a fresh fetch() request.

Q: Can I search by company or industry? A: Yes. Use LinkedIn's search filters before copying the fetch request. The workflow processes whatever search results the API returns.

Want to showcase your own workflows?

Become a Needle workflow partner and turn your expertise into recurring revenue.

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .