1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "valuationInput": {
12 "company": "Example Technology Inc.",
13 "period": "Last 12 months - end of June 2026",
14 "currency": "USD",
15 "stage": "seed",
16 "sector": "saas",
17 "anchorValuation": 25000000,
18 "financials": {
19 "netSales": 4800000,
20 "grossProfit": 3600000,
21 "ebitda": -900000,
22 "netProfit": -1250000,
23 "cash": 2500000,
24 "financialDebt": 600000,
25 "equity": 1900000
26 },
27 "growth": {
28 "priorYearNetSales": 2100000,
29 "annualRevenueGrowth": null
30 },
31 "multiples": {
32 "revenueMultiple": null,
33 "ebitdaMultiple": null
34 },
35 "berkus": {
36 "idea": 80,
37 "prototype": 85,
38 "team": 70,
39 "strategicRelationships": 55,
40 "firstSales": 75
41 },
42 "scorecard": {
43 "team": 1.2,
44 "marketSize": 1.15,
45 "product": 1.1,
46 "competition": 0.9,
47 "salesChannel": 0.95,
48 "additionalInvestment": 0.9,
49 "other": 1
50 },
51 "riskFactors": {
52 "management": 1,
53 "stageRisk": 0,
54 "regulation": 0,
55 "manufacturing": 1,
56 "sales": -1,
57 "funding": -1,
58 "competitionRisk": 0,
59 "technology": 1,
60 "litigation": 0,
61 "international": -1,
62 "reputation": 0,
63 "exit": 1
64 },
65 "vc": {
66 "exitYear": 5,
67 "exitRevenue": 120000000,
68 "exitMultiple": 4,
69 "targetReturnMultiple": 12,
70 "dilution": 30
71 },
72 "dcf": {
73 "discountRate": null,
74 "terminalGrowth": null,
75 "taxRate": null,
76 "freeCashFlow": [
77 null,
78 null,
79 null,
80 null,
81 null
82 ],
83 "revenueGrowth": 60,
84 "targetEbitdaMargin": 22
85 },
86 "round": {
87 "roundSize": 6000000
88 }
89 }
90};
91
92
93const run = await client.actor("bloom-consulting/startup-valuation").call(input);
94
95
96console.log('Results from dataset');
97console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
98const { items } = await client.dataset(run.defaultDatasetId).listItems();
99items.forEach((item) => {
100 console.dir(item);
101});
102
103