1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "searchKeywords": [
12 "source-backed signal",
13 "buyer fit"
14 ],
15 "taskIntent": "buyer-ready-product-run",
16 "sourceMode": "startUrls",
17 "outputMode": "buyer-ready-records",
18 "startUrls": [
19 {
20 "url": "https://ted.europa.eu/en/search/list?scope=LATEST&onlyLatestVersions=true"
21 },
22 {
23 "url": "https://www.grants.gov/search-grants"
24 }
25 ],
26 "requestTimeoutSecs": 30,
27 "maxRequestRetries": 2,
28 "sinceLastRun": false,
29 "deltaMode": true
30};
31
32
33const run = await client.actor("zentrafoundry/govcon-grants-bid-intelligence").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43