1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "query": "AAPL",
10 "formTypes": [
11 "8-K",
12 "4",
13 "D",
14 "13F-HR",
15 "Litigation",
16 ],
17 "dateFrom": "2026-04-01",
18 "dateTo": "",
19 "maxEventsPerType": 10,
20}
21
22
23run = client.actor("nexgendata/sec-event-router").call(run_input=run_input)
24
25
26print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
27for item in client.dataset(run["defaultDatasetId"]).iterate_items():
28 print(item)
29
30