LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments avatar
LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments

Pricing

$20.00/month + usage

Go to Store
LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments

LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments

Developed by

Agent-X

Agent-X

Maintained by Community

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.

5.0 (1)

Pricing

$20.00/month + usage

5

Total users

41

Monthly users

20

Runs succeeded

74%

Issue response

2.6 days

Last modified

2 months ago

You can access the LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments programmatically from your own 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.

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

LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments API in Python

The Apify API client for Python is the official library that allows you to use LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments API in Python, providing convenience functions and automatic retries on errors.

Install the apify-client

$pip install apify-client

Other API clients include: