1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "enableRecentlyFunded": true,
12 "maxRecentlyFunded": 10,
13 "enableSearch": false,
14 "keywords": [
15 "ai infrastructure",
16 "fintech"
17 ],
18 "maxPerKeyword": 10,
19 "enableBackedBy": false,
20 "investors": [
21 "a16z",
22 "Y Combinator"
23 ],
24 "maxPerInvestor": 10,
25 "enableCompanyResearch": false,
26 "companies": [
27 "Stripe",
28 "Ramp"
29 ],
30 "maxPerCompany": 10,
31 "enableStartupNews": false,
32 "enableLeadDetails": true,
33 "maxArticles": 100,
34 "maxAgeDays": 0,
35 "region": "US",
36 "proxyConfiguration": {
37 "useApifyProxy": true,
38 "apifyProxyGroups": [
39 "RESIDENTIAL"
40 ],
41 "apifyProxyCountry": "US"
42 }
43};
44
45
46const run = await client.actor("b2b_leads/crunchbase-real-time-data-scraper").call(input);
47
48
49console.log('Results from dataset');
50console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
51const { items } = await client.dataset(run.defaultDatasetId).listItems();
52items.forEach((item) => {
53 console.dir(item);
54});
55
56