1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "enableJobSearch": true,
12 "jobKeywords": [
13 "software engineer"
14 ],
15 "jobLocation": "London",
16 "jobTitle": "",
17 "jobCompany": "",
18 "jobTypes": [],
19 "jobEmploymentHours": [],
20 "jobRemote": [],
21 "jobDatePosted": "any",
22 "jobSort": "relevance",
23 "graduateOnly": false,
24 "directEmployerOnly": false,
25 "hideTrainingJobs": false,
26 "salaryFrom": 0,
27 "salaryTo": 0,
28 "proximityMiles": 10,
29 "jobsPerQuery": 25,
30 "fetchJobDetails": true,
31 "enableCompanyJobs": false,
32 "companyUrls": [],
33 "jobsPerCompany": 25,
34 "enableScrapeByUrl": false,
35 "jobUrls": [],
36 "maxItems": 10000,
37 "webhookUrl": "",
38 "webhookFormat": "json",
39 "includeRaw": false,
40 "proxyConfiguration": {
41 "useApifyProxy": true,
42 "apifyProxyGroups": [
43 "RESIDENTIAL"
44 ],
45 "apifyProxyCountry": "GB"
46 }
47};
48
49
50const run = await client.actor("b2b_leads/reed-jobs-real-time-data").call(input);
51
52
53console.log('Results from dataset');
54console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
55const { items } = await client.dataset(run.defaultDatasetId).listItems();
56items.forEach((item) => {
57 console.dir(item);
58});
59
60