
LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments
3 days trial then $20.00/month - No credit card required now

LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments
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.
Actor Metrics
14 monthly users
5.0 / 5 (1)
2 bookmarks
73% runs succeeded
0.45 hours response time
Created in Jan 2025
Modified 6 days 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.
1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json << 'EOF'
6{
7 "cookie": {
8 "li_at": "AQEDASp5C8kFE-KwAAABjLU1NbIAAAGM2UG5sk4AKQeJJk...",
9 "JSESSIONID": "ajax:853756...."
10 },
11 "operations": {
12 "operations": [
13 {
14 "retrieval_type": "Post_Content",
15 "url": "https://linkedin.com/in/sarah-smith-12345...",
16 "days_to_go_back": 7,
17 "number_of_posts": 5,
18 "deep_search": false,
19 "number_of_comments": 5,
20 "number_of_reactions": 5
21 },
22 {
23 "retrieval_type": "Post_From_URL",
24 "keywords": "artificial intelligence",
25 "extra_filters": ",geoUrn->103644278,network->F",
26 "deep_search": false,
27 "number_of_comments": 1,
28 "number_of_reactions": 1,
29 "number_of_search_pages": 1
30 },
31 {
32 "retrieval_type": "Company",
33 "url": "https://linkedin.com/company/acme-innovations..."
34 },
35 {
36 "retrieval_type": "LinkedIn_Profile",
37 "url": "https://linkedin.com/in/sarah-smith-12345..."
38 },
39 {
40 "retrieval_type": "Conversation_Detail",
41 "profile": "https://linkedin.com/in/sarah-smith-12345..."
42 }
43 ]
44 },
45 "proxyConfiguration": {
46 "useApifyProxy": true
47 },
48 "apifyToken": "apfy_act_1234567890abcdefghijklmn",
49 "webHookUrls": [
50 "https://api.company.com/webhook/linkedin"
51 ]
52}
53EOF
54
55# Run the Actor using an HTTP API
56# See the full API reference at https://docs.apify.com/api/v2
57curl "https://api.apify.com/v2/acts/agent-x~linkedin-multi-functional-scraper/runs?token=$API_TOKEN" \
58 -X POST \
59 -d @input.json \
60 -H 'Content-Type: application/json'
LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments API
Below, you can find a list of relevant HTTP API endpoints for calling the LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments Actor. For this, you’ll need an Apify account. Replace <YOUR_API_TOKEN> in the URLs with your Apify API token, which you can find under Integrations in Apify Console. For details, see the API reference.
Run Actor
https://api.apify.com/v2/acts/agent-x~linkedin-multi-functional-scraper/runs?token=<YOUR_API_TOKEN>
Note: By adding the method=POST
query parameter, this API endpoint can be called using a GET request and thus used in third-party webhooks. Please refer to our Run Actor API documentation.
Run Actor synchronously and get dataset items
https://api.apify.com/v2/acts/agent-x~linkedin-multi-functional-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>
Note: This endpoint supports both POST and GET request methods. However, only the POST method allows you to pass input data. For more information, please refer to our Run Actor synchronously and get dataset items API documentation.
Get Actor
https://api.apify.com/v2/acts/agent-x~linkedin-multi-functional-scraper?token=<YOUR_API_TOKEN>
For more information, please refer to our Get Actor API documentation.
Actors can be used to scrape web pages, extract data, or automate browser tasks. Use the LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments API programmatically via the Apify API.
You can choose from:
LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments API in Python
LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments API in JavaScript
LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments API through CLI
LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments OpenAPI definition
You can start LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments with the Apify API by sending an HTTP POST request to the Run Actorendpoint. An Actor’s input and its content type can be passed as a payload of the POST request, and additional options can be specified using URL query parameters. The LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments is identified within the API by its ID, which is the creator’s username and the name of the Actor.
When the LinkedIn Scrape: Profiles, Posts, Messages, Reactions, Comments run finishes you can list the data from its default dataset(storage) via the API or you can preview the data directly on Apify Console.