1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "SEARCH",
12 "country": "us",
13 "queries": [
14 "python developer"
15 ],
16 "locations": [
17 "New York, NY"
18 ],
19 "jobIds": [],
20 "maxResults": 20,
21 "maxPagesPerSearch": 1,
22 "postedWithinDays": "7",
23 "jobType": "",
24 "remote": "",
25 "radius": 25,
26 "sort": "date",
27 "enrichmentMode": "full",
28 "dedupe": true,
29 "normalizeSalary": true,
30 "extractSkills": true,
31 "resolveApplyUrls": true,
32 "enrichCompanyProfiles": true,
33 "enableDeltaMonitoring": false,
34 "rawOutput": false,
35 "candidateProfile": {
36 "skills": [],
37 "targetSalaryAnnual": null
38 },
39 "maxConcurrency": 4,
40 "maxRetries": 5,
41 "proxyConfiguration": {
42 "useApifyProxy": true,
43 "apifyProxyGroups": [
44 "RESIDENTIAL"
45 ],
46 "apifyProxyCountry": "US"
47 }
48};
49
50
51const run = await client.actor("trakk/indeed-jobs-intelligence-scraper").call(input);
52
53
54console.log('Results from dataset');
55console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
56const { items } = await client.dataset(run.defaultDatasetId).listItems();
57items.forEach((item) => {
58 console.dir(item);
59});
60
61