1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "keyword": "Data Analyst",
12 "country": "United States",
13 "platforms": [
14 "Arbetsförmedlingen",
15 "Baitoru",
16 "Bundesagentur für Arbeit",
17 "doda",
18 "France Travail",
19 "Freelancer.com",
20 "JobKorea",
21 "Jobright",
22 "Jobs2Careers",
23 "Kariyer.net",
24 "Kyujin Box",
25 "Mynavi Tenshoku",
26 "OCC",
27 "OnlineJobs.ph",
28 "SAP",
29 "Saramin",
30 "USAJOBS",
31 "Indeed",
32 "LinkedIn",
33 "Glassdoor",
34 "ZipRecruiter",
35 "Jobstreet",
36 "Glints",
37 "Stepstone",
38 "Naukri.com",
39 "Catho",
40 "foundit",
41 "Bayt.com",
42 "Reed.co.uk",
43 "Totaljobs",
44 "CV-Library",
45 "VDAB",
46 "HelloWork",
47 "InfoJobs",
48 "Job Bank",
49 "jobs.ch",
50 "Pracuj.pl",
51 "Talent.com",
52 "Jooble"
53 ],
54 "max_results": 10,
55 "remote_only": false,
56 "distance": 300,
57 "posted_since": "1 month",
58 "job_type": "all",
59 "currency": "USD"
60};
61
62
63const run = await client.actor("truefetch/job-search").call(input);
64
65
66console.log('Results from dataset');
67console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
68const { items } = await client.dataset(run.defaultDatasetId).listItems();
69items.forEach((item) => {
70 console.dir(item);
71});
72
73