1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "limit": 10,
12 "fromDate": "2025-01-01",
13 "toDate": "2025-12-31",
14 "jobCategories": [
15 "All - Design & Creative",
16 "Web Development"
17 ],
18 "includeKeywords.keywords": [],
19 "includeKeywords.matchTitle": true,
20 "includeKeywords.matchDescription": true,
21 "includeKeywords.matchSkills": true,
22 "excludeKeywords.keywords": [],
23 "excludeKeywords.matchTitle": true,
24 "excludeKeywords.matchDescription": true,
25 "excludeKeywords.matchSkills": true,
26 "budget.allowUnspecifiedBudget": false,
27 "budget.hourlyRate.min": "5",
28 "budget.hourlyRate.max": "150",
29 "budget.avgHourlyRate.min": "5",
30 "budget.avgHourlyRate.max": "150",
31 "budget.fixedPrice.min": "50",
32 "budget.fixedPrice.max": "10000",
33 "budget.connectsPrice.min": 1,
34 "budget.connectsPrice.max": 10,
35 "budget.jobDurations": [
36 "UNSPECIFIED",
37 "UP_TO_ONE_MONTH",
38 "UP_TO_THREE_MONTHS",
39 "UP_TO_SIX_MONTHS",
40 "MORE_THAN_SIX_MONTHS"
41 ],
42 "budget.hourlyWorkloads": [
43 "UNSPECIFIED",
44 "LESS_THAN_30_HOURS",
45 "MORE_THAN_30_HOURS"
46 ],
47 "budget.noAvgHourlyRatePaid": false,
48 "budget.noHireRate": false,
49 "budget.onlyContractToHire": false,
50 "budget.minClientHireRate": 0,
51 "client.companySizeRange": [
52 "UNSPECIFIED",
53 "SOLO_ENTERPRENEUR",
54 "UP_TO_10_EMPLOYEES",
55 "UP_TO_100_EMPOLOYEES",
56 "UP_TO_500_EMPLOYEES",
57 "UP_TO_1K_EMPLOYEES",
58 "MORE_THAN_1K_EMPLOYEES"
59 ],
60 "client.descriptionLanguage.exclude": [],
61 "client.descriptionLanguage.include": [],
62 "client.hireHistory": [
63 "NONE",
64 "UP_TO",
65 "MORE_THAN"
66 ],
67 "notifications.shouldSendRunMetadata": true,
68 "notifications.limit": 3
69};
70
71
72const run = await client.actor("upwork-vibe/upwork-job-scraper").call(input);
73
74
75console.log('Results from dataset');
76console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
77const { items } = await client.dataset(run.defaultDatasetId).listItems();
78items.forEach((item) => {
79 console.dir(item);
80});
81
82