1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "requests": [
9 "we use 800 gallons of heating oil a year at $3.90/gal, what would a heat pump cost at 15 cents/kWh?",
10 "we spend $2,400 a year on propane at $2.90/gal, compare propane vs heat pump vs pellets",
11 "2,000 sq ft house in Ohio, natural gas $1.30/therm, electricity $0.16/kWh",
12 "1,100 therms of natural gas a year, 80% furnace",
13 "4 cords of oak a year, wood $280/cord, heat pump hspf 9",
14 "old 1,800 sq ft farmhouse in zone 6, heat pump install $14,000, currently heating with oil",
15 {
16 "loadMMBtu": 60,
17 "current": "electric resistance",
18 "prices": { "electricity": 0.2 },
19 "fuels": [
20 "electric resistance",
21 "heat pump",
22 "propane",
23 ],
24 "only": True,
25 },
26 ] }
27
28
29run = client.actor("jumblemog/heating-cost-calculator").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36