1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "queries": [
12 {
13 "requestId": "financials-sub",
14 "datasetVersionId": "financial-statement-data-sets:2026-03-31",
15 "table": "sub",
16 "columns": [
17 "adsh",
18 "cik",
19 "form",
20 "filed"
21 ],
22 "includeAllColumns": false,
23 "filters": [
24 {
25 "field": "cik",
26 "operator": "eq",
27 "value": "320193"
28 }
29 ]
30 }
31 ],
32 "maxResults": 3,
33 "maxSourceRequests": 1,
34 "maxDownloadBytes": 104857600,
35 "maxCompressedBytes": 104857600,
36 "maxUncompressedBytes": 536870912,
37 "outputSchemaVersion": "1.0",
38 "outputMode": "full"
39};
40
41
42const run = await client.actor("bb-tradetec/sec-official-dataset-rows").call(input);
43
44
45console.log('Results from dataset');
46console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
47const { items } = await client.dataset(run.defaultDatasetId).listItems();
48items.forEach((item) => {
49 console.dir(item);
50});
51
52