1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "txId": "T1",
12 "politicianFullName": "Member Alpha",
13 "ticker": "NVDA",
14 "txType": "purchase",
15 "txDate": "2026-08-01",
16 "pubDate": "2026-08-20",
17 "amountRange": "$15,001 - $50,000",
18 },
19 {
20 "txId": "T2",
21 "politicianFullName": "Member Beta",
22 "ticker": "NVDA",
23 "txType": "purchase",
24 "txDate": "2026-08-02",
25 "pubDate": "2026-09-25",
26 "amountRange": "$50,001 - $100,000",
27 },
28 {
29 "txId": "T3",
30 "politicianFullName": "Member Alpha",
31 "ticker": "AAPL",
32 "txType": "sale",
33 "txDate": "2026-08-05",
34 "pubDate": "2026-08-15",
35 "amountRange": "$1,001 - $15,000",
36 },
37 ],
38 "previousItems": [{
39 "txId": "T0",
40 "politicianFullName": "Member Alpha",
41 "ticker": "AAPL",
42 "txType": "purchase",
43 "txDate": "2026-07-01",
44 "pubDate": "2026-07-15",
45 "amountRange": "$1,001 - $15,000",
46 }],
47}
48
49
50run = client.actor("quanmatrix/congressional-trades-disclosure-intelligence").call(run_input=run_input)
51
52
53print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
54for item in client.dataset(run.default_dataset_id).iterate_items():
55 print(item)
56
57