1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "jobs",
12 "roles": [
13 "software engineer"
14 ],
15 "locations": [],
16 "industries": [],
17 "remote": "any",
18 "startUrls": [],
19 "maxJobsPerSearch": 30,
20 "maxPagesPerSearch": 0,
21 "jobTypes": [],
22 "keywords": [],
23 "excludeKeywords": [],
24 "requireSalary": false,
25 "experienceLevels": [],
26 "visaSponsorship": "any",
27 "postedWithinDays": 0,
28 "postedWithinHours": 0,
29 "excludeLocations": [],
30 "radiusKm": 0,
31 "includeCompanies": [],
32 "excludeCompanies": [],
33 "companyStages": [],
34 "companySizes": [],
35 "businessType": "any",
36 "onlyYcFunded": false,
37 "onlyTopInvestors": false,
38 "onlyActivelyHiring": false,
39 "minOpenJobs": 0,
40 "includeCompanyDetails": true,
41 "descriptionFormat": "markdown",
42 "descriptionMaxLength": 0,
43 "compact": false,
44 "excludeEmptyFields": false,
45 "incremental": false,
46 "emitUnchanged": false,
47 "notifyTopN": 5,
48 "useResidential": true
49};
50
51
52const run = await client.actor("themineworks/wellfound-jobs-scraper").call(input);
53
54
55console.log('Results from dataset');
56console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
57const { items } = await client.dataset(run.defaultDatasetId).listItems();
58items.forEach((item) => {
59 console.dir(item);
60});
61
62