1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "companies": [
12 "netflix.com",
13 "cvshealth.com",
14 "stripe.com",
15 "shopify.com",
16 "ramp.com",
17 "cloudflare.com"
18 ],
19 "keywords": "",
20 "locations": [],
21 "countries": [],
22 "remoteOnly": false,
23 "postedWithinDays": 0,
24 "includeDescriptions": false,
25 "maxJobsPerCompany": 100,
26 "maxPages": 20,
27 "maxConcurrency": 6,
28 "maxRunSecs": 240,
29 "proxyConfiguration": {
30 "useApifyProxy": true
31 }
32};
33
34
35const run = await client.actor("insight.solutions/careers-page-jobs-api").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45