1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "recordInput": {
12 "mode": "inline",
13 "records": [
14 {
15 "schemaVersion": "1.0",
16 "recordType": "secEntity",
17 "recordId": "sec-entity:0000320193",
18 "parser": {
19 "name": "sec-entity-identifier-registry"
20 },
21 "time": {
22 "filedAt": "2026-07-20"
23 },
24 "data": {
25 "entity": {
26 "cik": "0000320193",
27 "name": "Example Issuer"
28 },
29 "evidence": [
30 "ev:entity-1"
31 ]
32 }
33 }
34 ]
35 },
36 "subjectFilters": [
37 "0000320193"
38 ],
39 "maxInputRecords": 1,
40 "maxOutputRecords": 1,
41 "maxResults": 1,
42 "maxSourceRequests": 1,
43 "maxDownloadBytes": 1048576
44};
45
46
47const run = await client.actor("bb-tradetec/sec-company-dossier-aggregator").call(input);
48
49
50console.log('Results from dataset');
51console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
52const { items } = await client.dataset(run.defaultDatasetId).listItems();
53items.forEach((item) => {
54 console.dir(item);
55});
56
57