1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "apps": [
12 "https://apps.apple.com/us/app/whatsapp-messenger/id310633997",
13 "https://play.google.com/store/apps/details?id=com.whatsapp"
14 ],
15 "competitors": [
16 "https://apps.apple.com/us/app/telegram-messenger/id686449807",
17 "https://play.google.com/store/apps/details?id=org.telegram.messenger"
18 ],
19 "reviewSample": 100,
20 "country": "us",
21 "language": "english",
22 "ratingDropAlert": 0.1,
23 "recentRatingDropAlert": 0.5,
24 "negativeSpikePoints": 15,
25 "newOneStarAlert": 5,
26 "versionRegressionDrop": 0.5,
27 "slackWebhookUrl": "",
28 "discordWebhookUrl": "",
29 "webhookUrl": "",
30 "onlyAlerts": false,
31 "resetBaseline": false,
32 "keepHistory": 60,
33 "stateStoreName": "app-review-alerts-state",
34 "concurrency": 3,
35 "proxyConfiguration": {
36 "useApifyProxy": false
37 }
38};
39
40
41const run = await client.actor("that_red_bird/app-review-alerts").call(input);
42
43
44console.log('Results from dataset');
45console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
46const { items } = await client.dataset(run.defaultDatasetId).listItems();
47items.forEach((item) => {
48 console.dir(item);
49});
50
51