1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "requests": [{
10 "requestId": "plan-1",
11 "intent": "analyze_ownership",
12 "subjects": [{
13 "identifierType": "cik",
14 "identifier": "0000320193",
15 }],
16 "period": {
17 "from": "2025-01-01",
18 "to": "2026-07-26",
19 },
20 "constraints": {
21 "maximumTotalChargeUsd": "0.050000",
22 "maximumRecords": 1000,
23 "preferExistingPublicActors": True,
24 "requireCompleteCoverage": False,
25 },
26 }],
27 "catalogVersion": "1.0",
28}
29
30
31run = client.actor("bb-tradetec/sec-ai-query-planner").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