1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "records": [
12 {
13 "fullName": "Jane Doe",
14 "title": "VP Engineering",
15 "company": "Acme, Inc.",
16 "website": "https://acme.com"
17 },
18 {
19 "name": "Jane Doe",
20 "jobTitle": "VP of Engineering",
21 "organization": "Acme Inc",
22 "email": "jane.doe@acme.com"
23 }
24 ],
25 "fieldMap": {
26 "org_name": "companyName",
27 "work_email": "email"
28 },
29 "icp": {
30 "targetIndustries": [
31 "software",
32 "saas"
33 ],
34 "targetCountries": [
35 "United States",
36 "US"
37 ],
38 "requiredTech": [],
39 "seniorityKeywords": [
40 "head",
41 "vp",
42 "chief",
43 "director",
44 "founder"
45 ]
46 }
47};
48
49
50const run = await client.actor("prooflio/lead-enrichment-pipeline").call(input);
51
52
53console.log('Results from dataset');
54console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
55const { items } = await client.dataset(run.defaultDatasetId).listItems();
56items.forEach((item) => {
57 console.dir(item);
58});
59
60