1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "searches": [
12 {
13 "keywords": "Product Designer",
14 "location": "United States",
15 "postedWithin": "past-week",
16 "workplaceType": "remote"
17 },
18 {
19 "keywords": "Growth Marketer",
20 "location": "London",
21 "postedWithin": "past-month",
22 "workplaceType": "hybrid"
23 }
24 ],
25 "searchKeywords": "Product Designer",
26 "searchLocation": "United States",
27 "jobs": [
28 {
29 "title": "Product Designer",
30 "company": "ExampleCo",
31 "location": "United States",
32 "url": "https://www.linkedin.com/jobs/view/1234567890/",
33 "description": "Own Figma prototyping, user research, design systems, and product collaboration."
34 }
35 ],
36 "candidateProfile": {
37 "targetRoles": [
38 "Product Designer"
39 ],
40 "coreSkills": [
41 "figma",
42 "design systems",
43 "user research"
44 ],
45 "avoidKeywords": [
46 "internship",
47 "unpaid"
48 ]
49 }
50};
51
52
53const run = await client.actor("immense_greenery/linkedin-application-copilot").call(input);
54
55
56console.log('Results from dataset');
57console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
58const { items } = await client.dataset(run.defaultDatasetId).listItems();
59items.forEach((item) => {
60 console.dir(item);
61});
62
63