1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "schemaVersion": "1.1",
10 "left": [
11 {
12 "signalId": "sig-acme-recall-002",
13 "brandName": "Acme Labs",
14 "eventType": "risk",
15 "severity": "critical",
16 "status": "active",
17 "observedAt": "2026-08-04T13:00:00Z",
18 "sourceUrl": "https://alerts.example.com/acme-recall",
19 },
20 {
21 "signalId": "sig-nike-launch-001",
22 "brandName": "Nike",
23 "eventType": "product_launch",
24 "severity": "high",
25 "status": "active",
26 "observedAt": "2026-08-04T12:00:00Z",
27 "sourceUrl": "https://news.example.com/nike-launch",
28 },
29 {
30 "signalId": "sig-left-only-004",
31 "brandName": "Northstar",
32 "eventType": "review",
33 "severity": "low",
34 "status": "resolved",
35 "observedAt": "2026-02-28T09:00:00Z",
36 "sourceUrl": "https://reviews.example.com/northstar",
37 },
38 ],
39 "right": [
40 {
41 "signalId": "sig-acme-recall-002",
42 "brandName": "Acme Labs",
43 "eventType": "risk",
44 "severity": "high",
45 "status": "active",
46 "observedAt": "2026-08-04T13:00:00Z",
47 "sourceUrl": "https://alerts.example.com/acme-recall-updated",
48 },
49 {
50 "signalId": "sig-nike-launch-001",
51 "brandName": "Nike",
52 "eventType": "product_launch",
53 "severity": "high",
54 "status": "active",
55 "observedAt": "2026-08-04T12:00:00Z",
56 "sourceUrl": "https://news.example.com/nike-launch",
57 },
58 {
59 "signalId": "sig-right-only-003",
60 "brandName": "Contoso",
61 "eventType": "price_change",
62 "severity": "medium",
63 "status": "active",
64 "observedAt": "2026-08-04T14:00:00Z",
65 "sourceUrl": "https://prices.example.com/contoso",
66 },
67 ],
68}
69
70
71run = client.actor("zinin/us-brand-signal-merge-report").call(run_input=run_input)
72
73
74print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
75for item in client.dataset(run.default_dataset_id).iterate_items():
76 print(item)
77
78