1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "language": "pt-BR",
10 "currency": "BRL",
11 "products": [
12 {
13 "name": "Café especial 250 g",
14 "unitCost": 18,
15 "extraVariableCost": 2.5,
16 "monthlyVolume": 300,
17 },
18 {
19 "name": "Kit presente",
20 "unitCost": 45,
21 "extraVariableCost": 6,
22 "monthlyVolume": 80,
23 },
24 {
25 "name": "Workshop online (vaga)",
26 "unitCost": 12,
27 "monthlyVolume": 40,
28 },
29 ],
30 "fixedExpenses": [
31 {
32 "name": "Aluguel",
33 "amount": 3500,
34 },
35 {
36 "name": "Pró-labore",
37 "amount": 6000,
38 },
39 {
40 "name": "Contabilidade",
41 "amount": 600,
42 },
43 {
44 "name": "Software",
45 "amount": 250,
46 },
47 ],
48 "taxRegime": "Simples Nacional",
49 "effectiveTaxRatePct": 6,
50 "cardFeePct": 3.5,
51 "variableExpensesPct": 5,
52 "desiredMarginPct": 20,
53 "openingCashBalance": 10000,
54 "monthlyRevenue": [
55 18000,
56 17500,
57 19000,
58 21000,
59 26000,
60 15000,
61 15500,
62 16000,
63 17000,
64 18500,
65 19000,
66 22000,
67 ],
68 "monthlyExpenses": [
69 16500,
70 16500,
71 17000,
72 17500,
73 19500,
74 15500,
75 15500,
76 15800,
77 16200,
78 16800,
79 17000,
80 18500,
81 ],
82 "startMonth": "2026-11",
83}
84
85
86run = client.actor("kman-br/pricing-cash-flow-calculator").call(run_input=run_input)
87
88
89print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
90for item in client.dataset(run.default_dataset_id).iterate_items():
91 print(item)
92
93