1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "seedProfiles": [
12 "hubspot",
13 "semrush"
14 ],
15 "maxResultsPerSeed": 30,
16 "maxCallsPerSeed": 3,
17 "searchDepth": "1",
18 "depth2ProfilesPerSeed": 5,
19 "minSeedOverlap": 1,
20 "maxTotalResults": 0,
21 "includeProfileDetails": true,
22 "includePostStats": false,
23 "includeAccountAbout": false,
24 "onlyVerified": false,
25 "excludePrivate": false,
26 "minFollowers": 0,
27 "maxFollowers": 0,
28 "accountTypes": [],
29 "contactFilter": "any",
30 "mustHaveWebsite": false,
31 "includeKeywords": [],
32 "excludeKeywords": [],
33 "keywordsIn": "any",
34 "minEngagementRate": 0,
35 "maxDaysSinceLastPost": 0,
36 "excludeUsernames": [],
37 "excludeSeedsFromResults": true,
38 "outputMode": "unique",
39 "onlyNewProfilesStore": "",
40 "maxDetailLookups": 0,
41 "maxConcurrency": 6,
42 "includeRunSummary": true
43};
44
45
46const run = await client.actor("apimy/instagram-similar-accounts-scraper").call(input);
47
48
49console.log('Results from dataset');
50console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
51const { items } = await client.dataset(run.defaultDatasetId).listItems();
52items.forEach((item) => {
53 console.dir(item);
54});
55
56