1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "releaseId": "p1",
12 "company": "Acme Corp",
13 "headline": "Acme expands AI platform in Europe",
14 "topic": "AI Expansion",
15 "geography": "Europe",
16 "importanceScore": 95,
17 "publishedAt": "2026-09-01",
18 },
19 {
20 "releaseId": "p2",
21 "company": "Acme Corp",
22 "headline": "Acme launches enterprise agent suite",
23 "topic": "AI Agents",
24 "geography": "Global",
25 "importanceScore": 90,
26 "publishedAt": "2026-09-06",
27 },
28 {
29 "releaseId": "p3",
30 "company": "Beta Inc",
31 "headline": "Beta opens new logistics hub",
32 "topic": "Supply Chain",
33 "geography": "US",
34 "importanceScore": 72,
35 "publishedAt": "2026-09-08",
36 },
37 ],
38 "previousItems": [
39 {
40 "releaseId": "p0",
41 "company": "Acme Corp",
42 "headline": "Acme updates legacy analytics platform",
43 "topic": "Analytics",
44 "geography": "US",
45 "importanceScore": 60,
46 "publishedAt": "2026-06-01",
47 },
48 {
49 "releaseId": "p3",
50 "company": "Beta Inc",
51 "headline": "Beta expands regional delivery",
52 "topic": "Supply Chain",
53 "geography": "US",
54 "importanceScore": 68,
55 "publishedAt": "2026-06-10",
56 },
57 ],
58}
59
60
61run = client.actor("quanmatrix/press-release-narrative-shift-intelligence").call(run_input=run_input)
62
63
64print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
65for item in client.dataset(run.default_dataset_id).iterate_items():
66 print(item)
67
68