Linkedin Profile Posts avatar
Linkedin Profile Posts
Try for free

Pay $1.00 for 1,000 responses

View all Actors
Linkedin Profile Posts

Linkedin Profile Posts

breathtaking_chestnut/apify-linkedin-profile-posts
Try for free

Pay $1.00 for 1,000 responses

Scrapes linkedin profile posts from a given linkedin user's profile. If you need to scrape more than 1M Profiles, kindly get a private premium actor from us by opening a new issue with title "Need Premium Actor"

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "url": "https://www.linkedin.com/in/ingmar-klein",
11    "paginationToken": "",
12    "page": 1,
13    "withComments": 2,
14    "withReposts": 2
15};
16
17(async () => {
18    // Run the Actor and wait for it to finish
19    const run = await client.actor("breathtaking_chestnut/apify-linkedin-profile-posts").call(input);
20
21    // Fetch and print Actor results from the run's dataset (if any)
22    console.log('Results from dataset');
23    const { items } = await client.dataset(run.defaultDatasetId).listItems();
24    items.forEach((item) => {
25        console.dir(item);
26    });
27})();
Developer
Maintained by Community
Actor metrics
  • 28 monthly users
  • 98.5% runs succeeded
  • 10.1 days response time
  • Created in Mar 2024
  • Modified 7 days ago