1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "projectSearch",
12 "searchQueries": [
13 "python"
14 ],
15 "startUrls": [],
16 "category": "",
17 "country": "",
18 "city": "",
19 "industry": "",
20 "remoteType": "",
21 "contractType": "",
22 "sortBy": "newest",
23 "endClientOnly": false,
24 "includeDachRegion": false,
25 "technologySlug": "",
26 "language": "",
27 "hasAttachmentsOnly": false,
28 "openToPermanentJobs": false,
29 "openToAgencyContract": false,
30 "excludeUnavailable": false,
31 "recentlyActiveOnly": false,
32 "requireDisplayedName": false,
33 "verifiedOnly": false,
34 "includeDetails": false,
35 "projectSlugsOrUrls": [],
36 "profileSlugsOrUrls": [],
37 "availableOnly": false,
38 "maxItems": 1
39};
40
41
42const run = await client.actor("xyrelith-data/freelancermap-it-projects-and-freelancer-finder").call(input);
43
44
45console.log('Results from dataset');
46console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
47const { items } = await client.dataset(run.defaultDatasetId).listItems();
48items.forEach((item) => {
49 console.dir(item);
50});
51
52