1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "workflow": "export",
12 "apps": [
13 "324684580"
14 ],
15 "countries": [
16 "us"
17 ],
18 "sort": "mostRecent",
19 "maxReviewsPerApp": 100,
20 "maxReviews": 100,
21 "since": "",
22 "minRating": 1,
23 "maxRating": 5,
24 "includeAppMetadata": true,
25 "firstRunBehavior": "emit_current_as_new",
26 "stateNamespace": "default",
27 "maxBuyerChargeUsd": 1,
28 "maxRuntimeSecs": 60
29};
30
31
32const run = await client.actor("luminar/app-store-reviews-change-monitor").call(input);
33
34
35console.log('Results from dataset');
36console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
37const { items } = await client.dataset(run.defaultDatasetId).listItems();
38items.forEach((item) => {
39 console.dir(item);
40});
41
42