1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "companyProfile": {
12 "name": "Cascadia Civil Engineering",
13 "description": "Civil engineering firm with 40 staff, NAICS 541330, SBA small business, serving the Pacific Northwest; past EPA and USDA rural water and wastewater grants.",
14 "capabilities": [
15 "water infrastructure design",
16 "wastewater treatment",
17 "stormwater management",
18 "rural water systems",
19 "environmental engineering"
20 ],
21 "naicsCodes": [
22 "541330",
23 "237110"
24 ],
25 "setAsides": [
26 "SBA"
27 ],
28 "organizationType": "small business",
29 "businessSize": "small",
30 "locations": [
31 "WA",
32 "OR",
33 "ID"
34 ],
35 "keywords": [
36 "water",
37 "wastewater",
38 "infrastructure",
39 "drinking water",
40 "rural"
41 ],
42 "pastAwards": [
43 "EPA Water Infrastructure Improvements for the Nation",
44 "USDA Rural Development Water and Waste Disposal"
45 ],
46 "budgetRange": {
47 "min": 50000,
48 "max": 5000000
49 }
50 },
51 "searchTerms": [
52 "water infrastructure"
53 ],
54 "sources": [
55 "grantsGov"
56 ],
57 "oppStatuses": [
58 "posted"
59 ],
60 "postedWithinDays": 30,
61 "maxOpportunities": 25,
62 "scorer": "rules"
63};
64
65
66const run = await client.actor("owlabee/gov-opportunity-fit-scorer").call(input);
67
68
69console.log('Results from dataset');
70console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
71const { items } = await client.dataset(run.defaultDatasetId).listItems();
72items.forEach((item) => {
73 console.dir(item);
74});
75
76