1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "username": "beth.mcll",
12 "max_limit": 1000,
13 "proxyGroups": [],
14 "cookies": [
15 {
16 "name": "datr",
17 "value": "sL_rZ1VMWqwRVcCuWXiAQmZX",
18 "domain": ".instagram.com",
19 "path": "/",
20 "expires": 1778063286.150982,
21 "httpOnly": true,
22 "secure": true
23 },
24 {
25 "name": "ig_did",
26 "value": "1C8AA31D-EA64-4F7A-BFB7-A5E4CFB044A2",
27 "domain": ".instagram.com",
28 "path": "/",
29 "expires": 1775039289.586829,
30 "httpOnly": true,
31 "secure": true
32 },
33 {
34 "name": "mid",
35 "value": "Z-u_sAALAAFLVNABqbKzftY5QmVX",
36 "domain": ".instagram.com",
37 "path": "/",
38 "expires": 1778063286.151132,
39 "httpOnly": true,
40 "secure": true
41 },
42 {
43 "name": "csrftoken",
44 "value": "K2icskn2peDTQSn8Fpc4d0UeXI5gvHUA",
45 "domain": ".instagram.com",
46 "path": "/",
47 "expires": 1774971325.552493,
48 "httpOnly": false,
49 "secure": true
50 },
51 {
52 "name": "ds_user_id",
53 "value": "73139193689",
54 "domain": ".instagram.com",
55 "path": "/",
56 "expires": 1751297725.552724,
57 "httpOnly": false,
58 "secure": true
59 },
60 {
61 "name": "sessionid",
62 "value": "73539491489%3A377qgGLgpVU9QO%3A18%3AAYdYA1n9adejJUjkr8k17j3-LCTLoeEC2wsBnd-_oA",
63 "domain": ".instagram.com",
64 "path": "/",
65 "expires": 1775039435.486017,
66 "httpOnly": true,
67 "secure": true
68 },
69 {
70 "name": "wd",
71 "value": "1358x642",
72 "domain": ".instagram.com",
73 "path": "/",
74 "expires": 1744126523,
75 "httpOnly": false,
76 "secure": true,
77 "sameSite": "Lax"
78 },
79 {
80 "name": "rur",
81 "value": "\"RVA\\05473539498689\\0541775057726:01f7831497b9bd63ed547dedca6805d32284ae9700d432ff00bfdd136ae1c88416ec2841\"",
82 "domain": ".instagram.com",
83 "path": "/",
84 "expires": -1,
85 "httpOnly": true,
86 "secure": true,
87 "sameSite": "Lax"
88 }
89 ]
90};
91
92
93const run = await client.actor("coderx/instagram-followers-list-scraper").call(input);
94
95
96console.log('Results from dataset');
97console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
98const { items } = await client.dataset(run.defaultDatasetId).listItems();
99items.forEach((item) => {
100 console.dir(item);
101});
102
103