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 "maxResults": 10,
20 "jobIds": [],
21 "maxPagesPerSearch": 1,
22 "postedWithinDays": "7",
23 "jobType": "",
24 "remote": "",
25 "radius": 25,
26 "sort": "date",
27 "enrichmentMode": "fast",
28 "normalizeSalary": true,
29 "extractSkills": true,
30 "resolveApplyUrls": false,
31 "enrichCompanyProfiles": false,
32 "candidateProfile": {
33 "skills": [],
34 "targetSalaryAnnual": null
35 },
36 "dedupe": true,
37 "outputMode": "compact",
38 "enableDeltaMonitoring": false,
39 "rawOutput": false,
40 "maxConcurrency": 6,
41 "maxRetries": 3,
42 "proxyConfiguration": {
43 "useApifyProxy": true,
44 "apifyProxyGroups": [
45 "RESIDENTIAL"
46 ],
47 "apifyProxyCountry": "US"
48 }
49};
50
51
52const run = await client.actor("trakk/indeed-jobs-intelligence-scraper").call(input);
53
54
55console.log('Results from dataset');
56console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
57const { items } = await client.dataset(run.defaultDatasetId).listItems();
58items.forEach((item) => {
59 console.dir(item);
60});
61
62