1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "hashtags": [
12 "travel",
13 "food",
14 "photography",
15 "fashion",
16 "fitness",
17 "love",
18 "instagood",
19 "photooftheday",
20 "beautiful",
21 "happy",
22 "cute",
23 "picoftheday",
24 "follow",
25 "me",
26 "selfie",
27 "summer",
28 "art",
29 "instadaily",
30 "friends",
31 "repost",
32 "nature",
33 "girl",
34 "fun",
35 "style",
36 "smile",
37 "food",
38 "family",
39 "travel",
40 "fitness",
41 "foodie",
42 "instafood",
43 "motivation",
44 "lifestyle",
45 "homedesign",
46 "interiordesign",
47 "workout",
48 "gym",
49 "makeup",
50 "skincare",
51 "beauty",
52 "ootd",
53 "streetstyle",
54 "outfit",
55 "shoes",
56 "wedding",
57 "bride",
58 "coffee",
59 "yoga",
60 "sunset",
61 "beach"
62 ],
63 "maxItems": 10,
64 "proxyConfiguration": {
65 "useApifyProxy": true,
66 "apifyProxyGroups": [
67 "RESIDENTIAL"
68 ]
69 }
70};
71
72
73const run = await client.actor("parseforge/instagram-hashtag-analytics-scraper").call(input);
74
75
76console.log('Results from dataset');
77console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
78const { items } = await client.dataset(run.defaultDatasetId).listItems();
79items.forEach((item) => {
80 console.dir(item);
81});
82
83