1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "filings",
10 "companies": ["AAPL"],
11 "formTypes": [
12 "10-K",
13 "10-Q",
14 "8-K",
15 ],
16 "includeAmendments": True,
17 "concepts": [
18 "Revenues",
19 "RevenueFromContractWithCustomerExcludingAssessedTax",
20 "NetIncomeLoss",
21 "Assets",
22 "EarningsPerShareDiluted",
23 ],
24 "periodType": "all",
25 "latestValueOnly": True,
26 "searchQuery": "\"artificial intelligence\"",
27 "managers": ["1067983"],
28 "quarters": 1,
29 "maxResults": 100,
30}
31
32
33run = client.actor("sian.agency/sec-edgar-scraper").call(run_input=run_input)
34
35
36print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40