1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "assets": [
12 {
13 "lat": 40.0143,
14 "lon": -105.2829,
15 "label": "Boulder CO - creekside redevelopment parcel"
16 },
17 {
18 "lat": 29.99091,
19 "lon": -89.93323,
20 "label": "New Orleans East LA - swamp/marsh adjacent site"
21 },
22 {
23 "lat": 33.42931,
24 "lon": -111.98414,
25 "label": "Tempe AZ - parcel inside a mapped desert wash"
26 },
27 {
28 "lat": 35.2,
29 "lon": -115.9,
30 "label": "Mojave NP CA - upland solar reference site"
31 },
32 {
33 "lat": 30.2481,
34 "lon": -88.0783,
35 "label": "Dauphin Island AL - Mobile Bay mouth coastal parcel"
36 }
37 ],
38 "radiusMeters": 1000,
39 "maxResults": 100,
40 "includeNonNetworkFlowlines": true
41};
42
43
44const run = await client.actor("malonestar/nhd-surface-water-404-screener").call(input);
45
46
47console.log('Results from dataset');
48console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
49const { items } = await client.dataset(run.defaultDatasetId).listItems();
50items.forEach((item) => {
51 console.dir(item);
52});
53
54