1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "appName": "Acme Mobile",
12 "releases": [
13 {
14 "version": "2.0.0",
15 "releaseDate": "2026-08-01",
16 "releaseNotes": "New sync engine and redesigned login."
17 }
18 ],
19 "reviews": [
20 {
21 "text": "Stable and fast.",
22 "rating": 5,
23 "date": "2026-07-20",
24 "version": "1.9.0"
25 },
26 {
27 "text": "Works well, love it.",
28 "rating": 4,
29 "date": "2026-07-24",
30 "version": "1.9.0"
31 },
32 {
33 "text": "Reliable app.",
34 "rating": 5,
35 "date": "2026-07-28",
36 "version": "1.9.0"
37 },
38 {
39 "text": "Crashes after the new update.",
40 "rating": 1,
41 "date": "2026-08-03",
42 "version": "2.0.0"
43 },
44 {
45 "text": "Crashing on launch, login broken.",
46 "rating": 1,
47 "date": "2026-08-04",
48 "version": "2.0.0"
49 },
50 {
51 "text": "Sync is slow and the app freezes.",
52 "rating": 2,
53 "date": "2026-08-06",
54 "version": "2.0.0"
55 }
56 ]
57};
58
59
60const run = await client.actor("egeusta/app-release-customer-reaction-monitor").call(input);
61
62
63console.log('Results from dataset');
64console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
65const { items } = await client.dataset(run.defaultDatasetId).listItems();
66items.forEach((item) => {
67 console.dir(item);
68});
69
70