1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sources": [
12 "greenhouse",
13 "lever",
14 "ashby",
15 "smartrecruiters",
16 "recruitee"
17 ],
18 "greenhouseCompanies": [
19 "airbnb",
20 "stripe",
21 "figma",
22 "cloudflare",
23 "coinbase",
24 "databricks",
25 "discord",
26 "dropbox",
27 "gitlab",
28 "robinhood",
29 "doordash",
30 "instacart"
31 ],
32 "leverCompanies": [
33 "openai",
34 "anthropic",
35 "anduril",
36 "scale",
37 "verkada",
38 "rippling",
39 "mistral",
40 "includedhealth",
41 "gohighlevel"
42 ],
43 "ashbyCompanies": [
44 "notion",
45 "vanta",
46 "linear",
47 "posthog",
48 "ramp"
49 ],
50 "smartrecruitersCompanies": [
51 "Visa",
52 "WesternDigital",
53 "PublicStorage"
54 ],
55 "recruiteeCompanies": [
56 "bunq",
57 "channable"
58 ],
59 "keywords": [
60 "engineer"
61 ]
62};
63
64
65const run = await client.actor("benthepythondev/ats-jobs-aggregator").call(input);
66
67
68console.log('Results from dataset');
69console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
70const { items } = await client.dataset(run.defaultDatasetId).listItems();
71items.forEach((item) => {
72 console.dir(item);
73});
74
75