LinkedIn Sales Navigator Profile Scraper

Collect valuable information you need from LinkedIn Sales Navigator profiles, including emails

Share:  
Table of Contents

This API supports email discovery.


Extract info from LinkedIn profiles

When building your CRM, you sometimes need to gather information from LinkedIn contacts/prospects. Don't waste your time copy/pasting anymore. Retrieve all the data you need of the specific LinkedIn profiles you're targeting in a CSV file.

Our Solution

Launch an automated agent that will connect on LinkedIn as you. It will then browse and collect all the info from the designated profiles.

What will you need? ⚙️

  • Session cookie: Your session cookie from LinkedIn.
  • Spreadsheet URL: The link of a Google Spreadsheet with LinkedIn Sales Navigator profile URLs (or regular profile URLs) in it.

(You already have all that? Click straight away on "Use this API")

Which steps to follow?

1. Create an account on Phantombuster.com 💻

If you haven't already, create a FREE account on Phantombuster. Our service will browse the web for you. It’s a website automator which runs in the cloud. Once done we'll follow up.

2. Use this API on your account.👌

Now that you're connected to Phantombuster, Click on the following button (it will open a new tab).

3. Click on Configure me!

You'll now see the 3 configuration dots blinking. Click on them.

4. Linkedin authentication 🔑

Because the script will manipulate LinkedIn for you, it needs to be logged on your LinkedIn account. For that you just need to copy paste your session cookie in the script argument:

  • Using Chrome, go to your LinkedIn homepage and open the inspector
    → Right click anywhere on the page and select “Inspect”
    CMD+OPT+i on macOS
    or
    F12 or CTRL+MAJ+i on Windows

  • Locate the “Application” tab

  • Select “Cookies” > “http://www.linkedin.com” on the left menu.

  • Locate the “li_at” cookie.

  • Copy what’s under “Value” (Double click on it then Ctrl+C) and paste it into your API Configuration

// How to access your cookies with Firefox and Safari //

5. Add a Google Spreadsheet 📑

Below your session cookie you’ll find Spreadsheet URL

Enter in the text field a link of a Google Spreadsheet with this same format (only column A is mandatory):

Add every linkedIn profiles link in column A (one link per row)

Please make sure your file is publicly accessible!

You can also enter a CSV file URL, it will work the same :)

6. Email discovery (optional)

Thanks to our friends at Hunter (an email discovery service), this API can guess the email of each profile it visits.

To use this feature, first create an account at Hunter here. Once done, get your Hunter API key by going to "Dashboard" > "API" > "Copy API key".

Paste your API key in the "Hunter.io API key" field in your API configuration. It will now guess the email of every visited profile! Expect a success rate between 20% and 50%.

Hunter gives you 100 free email guesses per month. After that, you'll have to buy one of their plans or wait a month.

Click on Launch & Enjoy!

It’s done! All that is left to do is to click on "launch" to try your script!

This will launch the bot and, if you didn't already change the spreadsheet URL, will collect the information of the Phantombuster team.

⚙️️Repetition setup ⚙️

Now that your API is ready, you should set up repetitive launches. That way, your scraping will be spread over days, weeks or even months.

Every time the API is launched, it will scrape 10 profiles and then stop. (This number can be changed in the configuration, the maximum is 25 per launch.)

To do so, simply hit the “Settings” button to define when your API is launched:

Then, select a frequency:

Don't forget to click 💾 Save at the bottom of the page!

For example, 10 profiles scraped per launch, 8 launches per day: you'll have a total of 80 profiles per day. We recommend not exceeding these values with this API. (Read more below about LinkedIn's limits.)

Limits

Please be aware that this API, like most of our LinkedIn APIs, will manipulate your own account on your behalf.

⚙ ️HTTP API 🤓

If you want to use this API programmatically you can replace the argument spreadsheetUrl by profileUrls which must be an array of strings. Additionally, you should set noDatabase to true so that the API does not maintain a state on its own (so that you can re-scrape the same profiles).

It should look just like this :
{ "profileUrls": ["www.linkedin.com/in/foo", "www.linkedin.com/in/bar"], "noDatabase": true, "sessionCookie": "xxxx" }

Output

This API will output CSV and/or JSON containing the following fields:

  • salesNavigatorUrl (LinkedIn Sales Navigator profile URL)
  • linkedinProfileUrl (LinkedIn profile URL)
  • description (LinkedIn profile description)
  • firstName
  • lastName
  • name (Full name)
  • numberOfConnections
  • numberOfSharedConnections
  • currentJob
  • currentCompanyUrl
  • currentCompanyName
  • headline
  • industry
  • pastJob
  • pastCompanyUrl
  • pastSchool
  • pastSchoolUrl
  • introducerName (Profile of the best 'path' between you and their profile)
  • introducerProfileUrl
  • introducerReason
  • companyWebsite
  • companyWebsiteHeadquarters
  • location
  • mailFromHunter (Discovered email (see 'Email discovery' section))
  • imgUrl
  • summary

Share this API

Your friends & colleagues need to know about this!