1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "appleAppIds": [
12 "324684580"
13 ],
14 "appleCountries": [
15 "us"
16 ],
17 "onlyNew": true,
18 "minRating": 1,
19 "maxRating": 5,
20 "lowRatingThreshold": 2,
21 "googlePlaySource": "off",
22 "confirmGooglePlayPageScrape": false,
23 "googlePlayCountries": [
24 "us"
25 ],
26 "stateName": "default",
27 "maxReviewsPerSource": 500,
28 "requestDelayMs": 400,
29 "proxyConfiguration": {
30 "useApifyProxy": false
31 }
32};
33
34
35const run = await client.actor("mmdincer/app-store-play-review-monitor").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