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