Get Linkedin URL posts from profile/company
1 day trial then $25.00/month - No credit card required now
Get Linkedin URL posts from profile/company
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
You can access the Get Linkedin URL posts from profile/company 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 "url": "https://www.linkedin.com/in/christianlim/",
12 "days_since_post": 14,
13 "cookies": [
14 {
15 "domain": ".linkedin.com",
16 "expirationDate": 1742798742.32278,
17 "hostOnly": false,
18 "httpOnly": false,
19 "name": "test",
20 "path": "/",
21 "sameSite": "no_restriction",
22 "secure": true,
23 "session": false,
24 "storeId": "0",
25 "value": "To be changed. Check readme on how to extract cookie session from browser",
26 "id": 1
27 }
28 ],
29 "proxyConfiguration": {
30 "useApifyProxy": false
31 }
32};
33
34// Run the Actor and wait for it to finish
35const 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)
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Get Linkedin URL posts from profile/company API in JavaScript
The Apify API client for JavaScript is the official library that allows you to use Get Linkedin URL posts from profile/company 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:
Actor Metrics
22 monthly users
-
7 stars
71% runs succeeded
8.8 hours response time
Created in Feb 2024
Modified 4 days ago