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": "anthropic"
15 },
16 {
17 "ats": "greenhouse",
18 "token": "verkada"
19 },
20 {
21 "ats": "greenhouse",
22 "token": "affirm"
23 },
24 {
25 "ats": "greenhouse",
26 "token": "riotgames"
27 },
28 {
29 "ats": "ashby",
30 "token": "openai"
31 }
32 ],
33 "maxItems": 50
34};
35
36
37const run = await client.actor("transparent_meteorite/visa-sponsorship-jobs-scraper").call(input);
38
39
40console.log('Results from dataset');
41console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47