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 {
13 "ats": "greenhouse",
14 "token": "stripe"
15 },
16 {
17 "ats": "lever",
18 "token": "netflix"
19 },
20 {
21 "ats": "ashby",
22 "token": "ramp"
23 }
24 ],
25 "companyUrls": [
26 "https://boards.greenhouse.io/stripe",
27 "https://jobs.lever.co/netflix",
28 "https://jobs.ashbyhq.com/ramp"
29 ],
30 "keywords": [
31 "sales engineer",
32 "account executive"
33 ],
34 "locations": [
35 "Amsterdam",
36 "remote"
37 ],
38 "departments": [
39 "Sales",
40 "Engineering"
41 ]
42};
43
44
45const run = await client.actor("datahoeven/ats-hiring-signal-scraper").call(input);
46
47
48console.log('Results from dataset');
49console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
50const { items } = await client.dataset(run.defaultDatasetId).listItems();
51items.forEach((item) => {
52 console.dir(item);
53});
54
55