1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "assets": [
10 {
11 "lat": 43.0125,
12 "lon": -83.6875,
13 "label": "Flint MI - lead action level exceedance",
14 },
15 {
16 "lat": 40.9793,
17 "lon": -74.1165,
18 "label": "Ridgewood NJ - PFAS detections",
19 },
20 {
21 "lat": 39.7392,
22 "lon": -104.9903,
23 "label": "Denver CO - control",
24 },
25 ],
26 "pwsids": [],
27 "includeViolations": True,
28 "includeLead": True,
29 "includePfas": True,
30 "includeEnforcement": True,
31 "violationYears": 10,
32 "maxViolationDetails": 25,
33 "maxAssets": 250,
34 "runBudgetSeconds": 900,
35 "refreshPfasCache": False,
36 "simulateOutage": "none",
37}
38
39
40run = client.actor("malonestar/epa-drinking-water-quality-screener").call(run_input=run_input)
41
42
43print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
44for item in client.dataset(run["defaultDatasetId"]).iterate_items():
45 print(item)
46
47