1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "c1",
12 "vendor": "Acme SaaS",
13 "customer": "Northwind",
14 "industry": "Retail",
15 "useCase": "AI support",
16 "proofScore": 92,
17 "publishedAt": "2026-09-01",
18 },
19 {
20 "id": "c2",
21 "vendor": "Acme SaaS",
22 "customer": "Contoso",
23 "industry": "Finance",
24 "useCase": "Fraud analytics",
25 "proofScore": 85,
26 "publishedAt": "2026-09-05",
27 },
28 {
29 "id": "c3",
30 "vendor": "Beta Cloud",
31 "customer": "Fabrikam",
32 "industry": "Manufacturing",
33 "useCase": "Data platform",
34 "proofScore": 76,
35 "publishedAt": "2026-09-07",
36 },
37 ],
38 "previousItems": [
39 {
40 "id": "c1",
41 "vendor": "Acme SaaS",
42 "customer": "Northwind",
43 "industry": "Retail",
44 "useCase": "AI support",
45 "proofScore": 80,
46 "publishedAt": "2026-06-01",
47 },
48 {
49 "id": "c4",
50 "vendor": "Acme SaaS",
51 "customer": "OldCo",
52 "industry": "Media",
53 "useCase": "Automation",
54 "proofScore": 65,
55 "publishedAt": "2026-04-01",
56 },
57 ],
58}
59
60
61run = client.actor("quanmatrix/b2b-case-study-win-loss-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