1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "query": "hiring (developer OR engineer OR programmer)",
12 "limiter": {
13 "previousPost": "urn:li:activity:7250170481335758841",
14 "maxTime": null
15 },
16 "filters": {
17 "posterType": "Person",
18 "hasImage": true,
19 "hasVideo": false,
20 "hasDocument": false,
21 "isJobPosting": false,
22 "profile": {
23 "minFollowerCount": 100
24 }
25 }
26};
27
28
29const run = await client.actor("scary_good_apis/linkedin-search-posts").call(input);
30
31
32console.log('Results from dataset');
33console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
34const { items } = await client.dataset(run.defaultDatasetId).listItems();
35items.forEach((item) => {
36 console.dir(item);
37});
38
39