1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "dataRoom": {
12 "company": "Example Technology Inc.",
13 "stage": "seed",
14 "roundTarget": "Seed - USD 1.5M",
15 "flags": {
16 "regulated": false,
17 "physicalProduct": false,
18 "incentive": true
19 },
20 "statuses": {
21 "01-01": {
22 "status": "have",
23 "date": "2026-03-10",
24 "note": ""
25 },
26 "01-02": {
27 "status": "have",
28 "date": "2026-03-10",
29 "note": ""
30 },
31 "01-05": {
32 "status": "missing",
33 "date": null,
34 "note": ""
35 },
36 "02-01": {
37 "status": "have",
38 "date": "2026-02-28",
39 "note": "Audited"
40 },
41 "02-04": {
42 "status": "partial",
43 "date": "2026-06-30",
44 "note": "Q2 pending"
45 },
46 "03-01": {
47 "status": "have",
48 "date": "2025-11-15",
49 "note": "Needs refresh"
50 },
51 "08-01": {
52 "status": "missing",
53 "date": null,
54 "note": ""
55 }
56 }
57 }
58};
59
60
61const run = await client.actor("bloom-consulting/investor-data-room-check").call(input);
62
63
64console.log('Results from dataset');
65console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
66const { items } = await client.dataset(run.defaultDatasetId).listItems();
67items.forEach((item) => {
68 console.dir(item);
69});
70
71