1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "usernames": [
12 "wassup.raipur",
13 "explorewithsparsh",
14 "arya_jain_",
15 "raipur.inn_",
16 "cafe_foodies07",
17 "raipurwale__",
18 "raipurfoodstuff",
19 "anand.unfiltered"
20 ],
21 "sessionId": "34904493140%3AVpGAz1lgPn7ZGH%3A5%3AAYiPOXUuWqhcmzgpI569HWRBsvPYmFth6mGROYyTQ6s",
22 "csrfToken": "tlRQZfaXuW3OcAoIzYANpcX1HQSsCcXa",
23 "mid": "aQBxBQALAAF7qwnWgeTTxrB01TVe",
24 "igDid": "18E1D099-5B68-4C25-9562-48E64897B4A2",
25 "proxyConfiguration": {
26 "useApifyProxy": true,
27 "apifyProxyGroups": [
28 "RESIDENTIAL"
29 ],
30 "apifyProxyCountry": "IN"
31 }
32};
33
34
35const run = await client.actor("barefoot_year/instagram-story-mentions-fetcher").call(input);
36
37
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