1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "requests": [
12 "attic 40 x 30 ft in Columbus, Ohio, ridge vent and soffit vents, 4 inches of old fiberglass",
13 "attic ventilation for a 1,500 sq ft attic, 3 box vents, 6 16x8 soffit vents",
14 "how much blown fiberglass for a 1,200 sq ft attic in zone 6, R-19 batts now",
15 "attic fan for a 2,000 sq ft attic, dark shingles",
16 "1,800 sq ft attic, 1/300, 40 ft of ridge vent, 60 ft of soffit vent",
17 "insulation for a 1,000 sq ft attic in Miami, no insulation, batts",
18 {
19 "length": 50,
20 "width": 28,
21 "shape": "gable",
22 "exhaust": "ridge",
23 "intake": "soffit",
24 "zone": 4,
25 "existingDepth": 6,
26 "existingMaterial": "cellulose"
27 }
28 ]
29};
30
31
32const run = await client.actor("jumblemog/attic-ventilation-calculator").call(input);
33
34
35console.log('Results from dataset');
36console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
37const { items } = await client.dataset(run.defaultDatasetId).listItems();
38items.forEach((item) => {
39 console.dir(item);
40});
41
42