1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "directoryUrl": "https://www.ycombinator.com/companies",
12 "companyUrls": [],
13 "companySlugs": [],
14 "batches": [],
15 "industries": [],
16 "subIndustries": [],
17 "statuses": [],
18 "stages": [],
19 "regions": [],
20 "tags": [],
21 "hiringOnly": false,
22 "onlyWithOpenJobs": false,
23 "requireFounderSocial": false,
24 "topCompaniesOnly": false,
25 "nonprofitOnly": false,
26 "highlightBlackFounders": false,
27 "highlightWomenFounders": false,
28 "highlightHispanicFounders": false,
29 "scrapeFounders": true,
30 "scrapeFounderProfiles": false,
31 "scrapeOpenJobs": true,
32 "includeJobDetails": false,
33 "includeNews": true,
34 "includeLaunchPosts": false,
35 "includeQa": true,
36 "includeVideos": false,
37 "sortBy": "launchDateDesc",
38 "maxItems": 3,
39 "maxConcurrency": 8,
40 "emitErrorRecord": true
41};
42
43
44const run = await client.actor("nimbryxo-studio/y-combinator-company-lookup-with-size-and-hiring").call(input);
45
46
47console.log('Results from dataset');
48console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
49const { items } = await client.dataset(run.defaultDatasetId).listItems();
50items.forEach((item) => {
51 console.dir(item);
52});
53
54