LinkedIn Scraper: All-in-One Data Extractor & Analyzer avatar

LinkedIn Scraper: All-in-One Data Extractor & Analyzer

Try for free

3 days trial then $20.00/month - No credit card required now

Go to Store
LinkedIn Scraper: All-in-One Data Extractor & Analyzer

LinkedIn Scraper: All-in-One Data Extractor & Analyzer

agent-x/linkedin-multi-functional-scraper
Try for free

3 days trial then $20.00/month - No credit card required now

Scrape & Collect profiles, companies, posts, messages, reactions, and comments efficiently. Save 84% on costs while getting more functionality. Perfect for researchers, recruiters, sales teams, and marketers. Customizable, automated, and easy to integrate.

You can access the LinkedIn Scraper: All-in-One Data Extractor & Analyzer programmatically from your own JavaScript applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6    token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11    "cookie": {
12        "li_at": "AQEDASp5C8kFE-KwAAABjLU1NbIAAAGM2UG5sk4AKQeJJk...",
13        "JSESSIONID": "ajax:853756...."
14    },
15    "operations": {
16        "operations": [
17            {
18                "retrieval_type": "Post_Content",
19                "url": "https://linkedin.com/in/sarah-smith-12345...",
20                "days_to_go_back": 7,
21                "number_of_posts": 5,
22                "deep_search": false,
23                "number_of_comments": 5,
24                "number_of_reactions": 5
25            },
26            {
27                "retrieval_type": "Post_From_URL",
28                "keywords": "artificial intelligence",
29                "extra_filters": ",geoUrn->103644278,network->F",
30                "deep_search": false,
31                "number_of_comments": 1,
32                "number_of_reactions": 1,
33                "number_of_search_pages": 1
34            },
35            {
36                "retrieval_type": "Company",
37                "url": "https://linkedin.com/company/acme-innovations..."
38            },
39            {
40                "retrieval_type": "LinkedIn_Profile",
41                "url": "https://linkedin.com/in/sarah-smith-12345..."
42            },
43            {
44                "retrieval_type": "Conversation_Detail",
45                "profile": "https://linkedin.com/in/sarah-smith-12345..."
46            }
47        ]
48    },
49    "proxyConfiguration": {
50        "useApifyProxy": true
51    },
52    "apifyToken": "apfy_act_1234567890abcdefghijklmn",
53    "webHookUrls": [
54        "https://api.company.com/webhook/linkedin"
55    ]
56};
57
58// Run the Actor and wait for it to finish
59const run = await client.actor("agent-x/linkedin-multi-functional-scraper").call(input);
60
61// Fetch and print Actor results from the run's dataset (if any)
62console.log('Results from dataset');
63console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
64const { items } = await client.dataset(run.defaultDatasetId).listItems();
65items.forEach((item) => {
66    console.dir(item);
67});
68
69// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

LinkedIn Scraper: All-in-One Data Extractor & Analyzer API in JavaScript

The Apify API client for JavaScript is the official library that allows you to use LinkedIn Scraper: All-in-One Data Extractor & Analyzer API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.

Install the apify-client

npm install apify-client

Other API clients include:

Developer
Maintained by Community

Actor Metrics

  • 10 monthly users

  • 1 bookmark

  • 66% runs succeeded

  • 0.45 hours response time

  • Created in Jan 2025

  • Modified 12 days ago