1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "keywords": [
12 "cybersecurity",
13 "IT services",
14 "audit",
15 "construction",
16 "HVAC",
17 "renovation"
18 ],
19 "rfpSources": [
20 "highergov_federal",
21 "highergov_sled",
22 "phada_housing"
23 ],
24 "states": [
25 "VA",
26 "MD",
27 "TX",
28 "CA",
29 "FL",
30 "IN"
31 ],
32 "vendorCapabilities": "IT Managed Services, Construction Contracting & Financial Audit Advisory",
33 "maxResults": 20,
34 "proxyConfiguration": {
35 "useApifyProxy": true
36 }
37};
38
39
40const run = await client.actor("unique_dev/ai-federal-state-public-housing-rfp-bid-no-bid-capture-agent").call(input);
41
42
43console.log('Results from dataset');
44console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
45const { items } = await client.dataset(run.defaultDatasetId).listItems();
46items.forEach((item) => {
47 console.dir(item);
48});
49
50