1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "recordInput": {
10 "mode": "inline",
11 "records": [{
12 "schemaVersion": "1.0",
13 "recordType": "secEnforcementEvent",
14 "recordId": "enforcement-1",
15 "parser": { "name": "sec-enforcement-action-normalizer" },
16 "time": { "eventAt": "2026-07-20" },
17 "data": {
18 "subject": { "cik": "0000320193" },
19 "enforcementMatterId": "34-1",
20 "status": "settled",
21 "evidence": ["ev-enforcement-1"],
22 },
23 }],
24 },
25 "subjectFilters": ["0000320193"],
26 "maxOutputRecords": 1,
27 "maxResults": 1,
28}
29
30
31run = client.actor("bb-tradetec/sec-regulatory-risk-aggregator").call(run_input=run_input)
32
33
34print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38