1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "organization": {
12 "name": "Example Studio",
13 "entity_type": "company",
14 "geographies": [
15 "IT",
16 "EU"
17 ],
18 "capabilities": [
19 "osint",
20 "geospatial",
21 "software"
22 ],
23 "min_funding_usd": 10000
24 },
25 "opportunity": {
26 "title": "EU geospatial intelligence tender",
27 "url": "https://example.org/tender/123",
28 "deadline": "2026-10-01",
29 "eligible_geographies": [
30 "EU"
31 ],
32 "eligible_entity_types": [
33 "company"
34 ],
35 "required_capabilities": [
36 "osint",
37 "geospatial"
38 ],
39 "disciplines": [
40 "osint",
41 "geospatial"
42 ],
43 "funding_amount_usd": 50000,
44 "source_url": "https://example.org/tender/123",
45 "source_reliability": "official",
46 "verified": true
47 }
48};
49
50
51const run = await client.actor("suezcanal.xyz/opportunity-fit").call(input);
52
53
54console.log('Results from dataset');
55console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
56const { items } = await client.dataset(run.defaultDatasetId).listItems();
57items.forEach((item) => {
58 console.dir(item);
59});
60
61