1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "schemaVersion": "1.0",
12 "requestId": "auto",
13 "watchId": "spotify-us-ios",
14 "platform": "apple",
15 "appId": "demo.app",
16 "appName": "Demo App",
17 "releaseAt": "2026-08-08T00:00:00Z",
18 "releaseVersion": "1.0.0",
19 "rows": [
20 {
21 "reviewId": "pre-001",
22 "text": "Useful and stable app",
23 "rating": 4,
24 "reviewedAt": "2026-08-02T10:00:00Z",
25 "version": "1.0.0"
26 },
27 {
28 "reviewId": "pre-002",
29 "text": "Good app",
30 "rating": 4,
31 "reviewedAt": "2026-08-03T10:00:00Z",
32 "version": "1.0.0"
33 },
34 {
35 "reviewId": "pre-003",
36 "text": "The app works well",
37 "rating": 5,
38 "reviewedAt": "2026-08-04T10:00:00Z",
39 "version": "1.0.0"
40 },
41 {
42 "reviewId": "pre-004",
43 "text": "One ad is acceptable",
44 "rating": 4,
45 "reviewedAt": "2026-08-05T10:00:00Z",
46 "version": "1.0.0"
47 },
48 {
49 "reviewId": "pre-005",
50 "text": "Nice experience",
51 "rating": 5,
52 "reviewedAt": "2026-08-06T10:00:00Z",
53 "version": "1.0.0"
54 },
55 {
56 "reviewId": "post-001",
57 "text": "Too many ads after the release",
58 "rating": 2,
59 "reviewedAt": "2026-08-08T10:00:00Z",
60 "version": "1.0.0"
61 },
62 {
63 "reviewId": "post-002",
64 "text": "Ads interrupt every screen",
65 "rating": 1,
66 "reviewedAt": "2026-08-09T10:00:00Z",
67 "version": "1.0.0"
68 },
69 {
70 "reviewId": "post-003",
71 "text": "The advertisements are constant",
72 "rating": 2,
73 "reviewedAt": "2026-08-10T10:00:00Z",
74 "version": "1.0.0"
75 },
76 {
77 "reviewId": "post-004",
78 "text": "Please add an option to remove ads",
79 "rating": 2,
80 "reviewedAt": "2026-08-11T10:00:00Z",
81 "version": "1.0.0"
82 },
83 {
84 "reviewId": "post-005",
85 "text": "Slow but no ads here",
86 "rating": 3,
87 "reviewedAt": "2026-08-12T10:00:00Z",
88 "version": "1.0.0"
89 }
90 ],
91 "options": {
92 "preDays": 7,
93 "postDays": 7,
94 "confirmationDays": 21,
95 "minReviews": 5,
96 "maxRows": 500,
97 "explanation": "off"
98 }
99};
100
101
102const run = await client.actor("zinin/app-release-regression-intelligence").call(input);
103
104
105console.log('Results from dataset');
106console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
107const { items } = await client.dataset(run.defaultDatasetId).listItems();
108items.forEach((item) => {
109 console.dir(item);
110});
111
112