1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "search_term": "software engineer",
12 "search_terms": [],
13 "location": "Remote",
14 "locations": [],
15 "posted_within_hours": 720,
16 "results_wanted_per_board": 5,
17 "max_total_results": 10,
18 "job_boards": [
19 "linkedin"
20 ],
21 "enable_ai_scoring": false,
22 "resume_or_key_skills": "",
23 "anthropic_api_key": "",
24 "minimum_ai_score": 0,
25 "minimum_jev_score": 0,
26 "indeed_country": "USA"
27};
28
29
30const run = await client.actor("eternallabs/jobhunt-ai").call(input);
31
32
33console.log('Results from dataset');
34console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
35const { items } = await client.dataset(run.defaultDatasetId).listItems();
36items.forEach((item) => {
37 console.dir(item);
38});
39
40