1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "r1",
12 "title": "battery drain",
13 "reviewCount": 4200,
14 "rating": 2.4,
15 "complaintRate": 74,
16 "featureRequestRate": 58,
17 "bugRate": 62,
18 "velocityPct": 81,
19 },
20 {
21 "id": "r2",
22 "title": "dark mode request",
23 "reviewCount": 1100,
24 "rating": 3.8,
25 "complaintRate": 28,
26 "featureRequestRate": 71,
27 "bugRate": 12,
28 "velocityPct": 34,
29 },
30 ],
31 "previousItems": [{
32 "id": "r1",
33 "title": "battery drain",
34 "reviewCount": 2600,
35 "rating": 3.1,
36 "complaintRate": 55,
37 "featureRequestRate": 41,
38 "bugRate": 43,
39 "velocityPct": 52,
40 }],
41}
42
43
44run = client.actor("quanmatrix/cross-app-review-feature-demand-intelligence").call(run_input=run_input)
45
46
47print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
48for item in client.dataset(run.default_dataset_id).iterate_items():
49 print(item)
50
51