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 "indeed_country": "USA"
26};
27
28
29const run = await client.actor("eternallabs/jobhunt-ai").call(input);
30
31
32console.log('Results from dataset');
33console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
34const { items } = await client.dataset(run.defaultDatasetId).listItems();
35items.forEach((item) => {
36 console.dir(item);
37});
38
39