1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "leadListUrl": "https://www.linkedin.com/sales/lists/people/7477332532636676096",
12 "maxCountSnLeadList": 10,
13 "li_at": "example_li_at",
14 "JSESSIONID": "ajax:example",
15 "bcookie": "example_bcookie",
16 "liap": "true",
17 "li_theme_set": "app",
18 "li_theme": "light",
19 "timezone": "Europe/Paris",
20 "bscookie": "example_bscookie",
21 "li_a": "example_li_a",
22 "user-agent": "Mozilla/5.0 ...",
23 "timezoneOffset": "2",
24 "csrf-token": "ajax:example",
25 "User-Agent": "Mozilla/5.0 ...",
26 "x-li-track": "{\"clientVersion\":\"1.13.455\"}",
27 "x-li-lang": "en_US",
28 "X-Restli-Protocol-Version": "2.0.0",
29 "txSmSelfProfileUrl": "https://www.linkedin.com/in/example-self/",
30 "proxy": {
31 "ip": "http://proxy.example.com",
32 "port": "1080",
33 "username": "example_username",
34 "password": "example_password"
35 }
36};
37
38
39const run = await client.actor("automationagents/linkedin-lead-list-export").call(input);
40
41
42console.log('Results from dataset');
43console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
44const { items } = await client.dataset(run.defaultDatasetId).listItems();
45items.forEach((item) => {
46 console.dir(item);
47});
48
49