1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "batch": "S24",
13 "tags": [],
14 "isHiring": false,
15 "topCompany": false,
16 "nonprofit": false,
17 "highlightBlackFounders": false,
18 "highlightWomenFounders": false,
19 "highlightHispanicFounders": false,
20 "sortBy": "default",
21 "companyUrls": [],
22 "scrapeFounders": true,
23 "scrapeOpenJobs": false,
24 "includeJobDescriptions": false,
25 "includeLaunches": false,
26 "includeLaunchBodies": false,
27 "includeNews": false,
28 "includeFounderProfiles": false,
29 "maxItems": 3
30};
31
32
33const run = await client.actor("dataspryva/y-combinator-startup-directory-with-founders").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