1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "platforms": [
12 "greenhouse",
13 "lever",
14 "ashby"
15 ],
16 "greenhouseBoards": [
17 "stripe",
18 "anthropic"
19 ],
20 "leverBoards": [
21 "palantir",
22 "spotify"
23 ],
24 "ashbyBoards": [
25 "linear",
26 "supabase"
27 ],
28 "query": "engineer",
29 "location": "",
30 "remoteOnly": false,
31 "includeDescription": false,
32 "maxItems": 25
33};
34
35
36const run = await client.actor("jarvis-duo-studio/ats-jobs-scraper").call(input);
37
38
39console.log('Results from dataset');
40console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41const { items } = await client.dataset(run.defaultDatasetId).listItems();
42items.forEach((item) => {
43 console.dir(item);
44});
45
46