1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "targets": [
12 {
13 "ats": "greenhouse",
14 "token": "stripe",
15 "company": "Stripe"
16 },
17 {
18 "ats": "lever",
19 "token": "palantir",
20 "company": "Palantir"
21 },
22 {
23 "ats": "ashby",
24 "token": "ramp",
25 "company": "Ramp"
26 },
27 {
28 "ats": "workday",
29 "token": "salesforce",
30 "company": "Salesforce",
31 "workday": {
32 "host": "salesforce.wd12.myworkdayjobs.com",
33 "tenant": "salesforce",
34 "site": "External_Career_Site"
35 }
36 }
37 ]
38};
39
40
41const run = await client.actor("pentababy/ats-job-board-scraper").call(input);
42
43
44console.log('Results from dataset');
45console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
46const { items } = await client.dataset(run.defaultDatasetId).listItems();
47items.forEach((item) => {
48 console.dir(item);
49});
50
51