1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "batches": [
12 "Winter 2025"
13 ],
14 "topCompaniesOnly": false,
15 "nonprofitOnly": false,
16 "isHiring": "any",
17 "sortBy": "default",
18 "queries": [],
19 "industries": [],
20 "statuses": [],
21 "regions": [],
22 "tags": [],
23 "includeFounders": false,
24 "founderRows": false,
25 "maxCompanies": 500,
26 "maxConcurrency": 4,
27 "proxyConfiguration": {
28 "useApifyProxy": true
29 }
30};
31
32
33const run = await client.actor("insight.solutions/yc-companies-directory").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