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 "slug": "stripe"
15 },
16 {
17 "ats": "lever",
18 "slug": "mistral"
19 },
20 {
21 "ats": "ashby",
22 "slug": "notion"
23 }
24 ],
25 "keywords": [
26 "engineer"
27 ],
28 "excludeKeywords": [
29 "intern"
30 ],
31 "locations": [
32 "remote",
33 "europe"
34 ]
35};
36
37
38const run = await client.actor("i-scraper/ats-jobs-scraper").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48