1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "contactEmail": "you@example.com",
10 "mode": "filings",
11 "companies": ["AAPL"],
12 "formTypes": [
13 "10-K",
14 "10-Q",
15 "8-K",
16 ],
17 "maxFilingsPerCompany": 10,
18 "maxItems": 50,
19 "maxTokensPerSection": 0,
20 "maxHoldingsPerFiling": 0,
21 "statements": [
22 "income",
23 "balance",
24 "cashflow",
25 ],
26 "periods": "both",
27 "yearsBack": 5,
28 "monitorName": "default",
29 "stateStoreName": "sec-edgar-monitor-state",
30 "lookbackDaysFirstRun": 3,
31 "maxRequestsPerSecond": 8,
32 "proxyConfiguration": { "useApifyProxy": False },
33}
34
35
36run = client.actor("tiger19935/sec-edgar-scraper").call(run_input=run_input)
37
38
39print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43