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": "secForm4Transaction",
17 "recordId": "example-form4",
18 "parser": {
19 "name": "sec.ownership.form4"
20 },
21 "time": {
22 "filedAt": "2026-07-09T12:00:00Z"
23 },
24 "data": {
25 "issuer": {
26 "cik": "0000320193"
27 },
28 "securityKey": "CUSIP-037833100",
29 "reportingParty": "0001214128",
30 "transaction": {
31 "transactionDate": "2026-07-08",
32 "acquiredDisposedCode": "A",
33 "amount": "10"
34 },
35 "evidence": [
36 "ev-form4"
37 ]
38 }
39 }
40 ]
41 },
42 "subjectFilters": [
43 "0000320193"
44 ]
45};
46
47
48const run = await client.actor("bb-tradetec/sec-ownership-intelligence-aggregator").call(input);
49
50
51console.log('Results from dataset');
52console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
53const { items } = await client.dataset(run.defaultDatasetId).listItems();
54items.forEach((item) => {
55 console.dir(item);
56});
57
58