1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "country": "GB",
12 "enableJobSearch": true,
13 "jobKeywords": [
14 "python developer",
15 "data engineer"
16 ],
17 "jobLocation": "London",
18 "jobType": "any",
19 "jobDaysBack": "7",
20 "radiusMiles": 50,
21 "remoteOnly": false,
22 "jobsPerQuery": 10,
23 "fetchJobDetails": false,
24 "enableJobDetails": false,
25 "jobIds": [],
26 "jobUrls": [],
27 "enableCompanyJobs": false,
28 "companyNames": [
29 "GCS"
30 ],
31 "jobsPerCompany": 10,
32 "enableScrapeByUrl": false,
33 "scrapeUrls": [],
34 "webhookFormat": "json",
35 "proxyConfiguration": {
36 "useApifyProxy": true,
37 "apifyProxyGroups": [
38 "RESIDENTIAL"
39 ],
40 "apifyProxyCountry": "GB"
41 }
42};
43
44
45const run = await client.actor("b2b_leads/jobserve-real-time-data").call(input);
46
47
48console.log('Results from dataset');
49console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
50const { items } = await client.dataset(run.defaultDatasetId).listItems();
51items.forEach((item) => {
52 console.dir(item);
53});
54
55