No-Code LinkedIn API Scraper

Download Data to Excel & CSV Files

Legally scrape LinkedIn data from the Official Website without violating its Terms of Service using HAR Files.

🚫 This means no wasting time with broken screen scrapers, installing software, getting blocked or overpriced proxies.

XhDqk2MfcYE ▶️
Steve Spagnola
Written by Steve Spagnola
Last updated April 13, 2024

Scraping the LinkedIn API

LinkedIn scraping can be an uphill battle, as the company has made clear through legal actions that it does not want its data scraped.

Export LinkedIn Search Results to Excel

However, there is a 100% legal (and undetectable) way to scrape basic LinkedIn data without violating their Terms of Service using a little-known technique involving HAR files with our LinkedIn web scraper.

In order to legally scrape LinkedIn, we’ll need to scrape a recording of the data they send to our browser instead of scraping the actual LinkedIn website.

This means that (1) LinkedIn can never detect the scraping (as we are just passively recording) and (2) the LinkedIn web scraping occurs on a recording of LinkedIn network traffic and cannot be governed under their Terms of Service.

To get started, simply head to LinkedIn and perform a search for people, jobs, companies or posts you’re interested in. You can also navigate to a company page and then browse through people, posts & jobs there as an alternative.

Browse LinkedIn While Recording

When you have the data you want to scrape on the screen, right click in the browser and hit “Inspect” to open up developer tools. This will begin recording the network traffic that LinkedIn sends to your browser with the raw LinkedIn data in it.

You’ll then want to refresh the page to force LinkedIn to reload the data (now that you’re recording) and then proceed to scroll down and paginate through the results (keep clicking next). You should be able to browse to a few hundred items of whatever you’re scraping.

2. Export a HAR File

Once you’ve browsed through the data you want to scrape, find the Network tab under developer tools and click the down arrow labeled “Export HAR…” to download a HAR file containing a copy of all the data LinkedIn sent to your browser.

Click Parse Group to Download Data

Upload that file to the HAR File Web Scraper and look for the group labeled /voyager/api/graphql or similar (as pictured above). This contains all of the pages of data you browsed with the data you want. Click the “Parse Group” button for that group to access the data.

3. Download LinkedIn Data

The data you want should be in the included collection. However, it’s a little tricky as the first 10 rows will appear to all be blank, but if you hover your mouse over the navigationUrl or title.text column, you can see a distribution of all the values and verify that the data is there from our LinkedIn data scraper.

Download LinkedIn Data to a CSV File

The files will contain basic information about the people (with job titles & company), jobs or posts you’re scraping - basically anything that was presented in the search results or listings will appear in the LinkedIn data scraping output.

The navigationUrl column is useful as it links to the resource included in the scrape. So for example if you’re trying to do outreach to lead lists matching your search, you can save the URLs to a spreadsheet and then divide up that work and track progress that way.

URLs to Scraped LinkedIn Profiles

Please note that our LinkedIn scraping tool will not capture contact information like phone numbers or emails. To get those, you must manually visit each profile (with the navigationUrl) and see what the LinkedIn user makes publicly available or use another email finder like LinkedIn Sales Navigator.

It’s no secret that LinkedIn doesn’t like when people scrape its public data. If you need to know more, simply see the HiQ vs. LinkedIn Lawsuit on the legality of scraping public data. While the courts are favoring HiQ’s right to scrape LinkedIn as a first party, the ruling is irrelevant for third party tools like our service which help you with web scraping LinkedIn. It’s still illegal for a tool to help you violate another company’s Terms of Service (but it’s not illegal if you web scrape LinkedIn yourself).

If you do scrape LinkedIn data (legally with our service of course), you need to be extremely careful about republishing the data in public as it contains personally identifiable information. However, we usually see our customers use this data strictly for private research and use, so it generally does not become an issue.

Sign Up to Scrape Data from LinkedIn