1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "targets": [
12 {
13 "name": "Notion",
14 "website": "https://notion.so",
15 "appStoreId": "1232780281",
16 "googlePlayId": "notion.id"
17 },
18 {
19 "name": "Slack",
20 "website": "https://slack.com",
21 "appStoreId": "618783545",
22 "googlePlayId": "com.Slack"
23 }
24 ],
25 "sources": [
26 "trustpilot",
27 "appstore",
28 "googleplay"
29 ],
30 "countries": [
31 "us",
32 "gb",
33 "sa",
34 "ae",
35 "eg"
36 ],
37 "proxyConfiguration": {
38 "useApifyProxy": true
39 }
40};
41
42
43const run = await client.actor("almoutasem_nabil/review-intelligence").call(input);
44
45
46console.log('Results from dataset');
47console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
48const { items } = await client.dataset(run.defaultDatasetId).listItems();
49items.forEach((item) => {
50 console.dir(item);
51});
52
53