![Get Linkedin URL posts from profile/company avatar](https://images.apifyusercontent.com/_wtAnfLgG9AUHKdkjX0w3by8XdgRNMDNzqA_DgpT_Fg/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vNEx2UlQ1R04zcmhINlFtWTUvNWdkSlBaUXVQd1lHb0ZZS24tbGlua2VkaW4taWNvbi0yNTZ4MjU2LTZ5cWFrbTdsLnBuZw.webp)
Get Linkedin URL posts from profile/company
Try for free
1 day trial then $25.00/month - No credit card required now
View all Actors![Get Linkedin URL posts from profile/company](https://images.apifyusercontent.com/_wtAnfLgG9AUHKdkjX0w3by8XdgRNMDNzqA_DgpT_Fg/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vNEx2UlQ1R04zcmhINlFtWTUvNWdkSlBaUXVQd1lHb0ZZS24tbGlua2VkaW4taWNvbi0yNTZ4MjU2LTZ5cWFrbTdsLnBuZw.webp)
![Get Linkedin URL posts from profile/company](https://images.apifyusercontent.com/_wtAnfLgG9AUHKdkjX0w3by8XdgRNMDNzqA_DgpT_Fg/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vNEx2UlQ1R04zcmhINlFtWTUvNWdkSlBaUXVQd1lHb0ZZS24tbGlua2VkaW4taWNvbi0yNTZ4MjU2LTZ5cWFrbTdsLnBuZw.webp)
Get Linkedin URL posts from profile/company
saswave/get-linkedin-url-posts-from-profile-company
Try for free
1 day trial then $25.00/month - No credit card required now
Generate a list of posts url from a target profile or company. Extract posts at scale within a date range or a number of days since posting
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 more
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/christianlim/",
11 "days_since_post": 14,
12 "cookies": [
13 {
14 "domain": ".linkedin.com",
15 "expirationDate": 1742798742.32278,
16 "hostOnly": false,
17 "httpOnly": false,
18 "name": "test",
19 "path": "/",
20 "sameSite": "no_restriction",
21 "secure": true,
22 "session": false,
23 "storeId": "0",
24 "value": "To be changed. Check readme on how to extract cookie session from browser",
25 "id": 1
26 }
27 ],
28 "proxyConfiguration": {
29 "useApifyProxy": false
30 }
31};
32
33(async () => {
34 // Run the Actor and wait for it to finish
35 const run = await client.actor("saswave/get-linkedin-url-posts-from-profile-company").call(input);
36
37 // Fetch and print Actor results from the run's dataset (if any)
38 console.log('Results from dataset');
39 console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40 const { items } = await client.dataset(run.defaultDatasetId).listItems();
41 items.forEach((item) => {
42 console.dir(item);
43 });
44})();
45
46// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
- 11 monthly users
- 6 stars
- 35.0% runs succeeded
- 8 hours response time
- Created in Feb 2024
- Modified 15 days ago
Categories