1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "rows": [
12 {
13 "full_name": "Ada Rivera",
14 "job_title": "VP Marketing",
15 "email": "ada@stripe.com",
16 "country": "United States",
17 "company_name": "Stripe",
18 "company_domain": "stripe.com",
19 "industry": "Software"
20 },
21 {
22 "full_name": "Duplicate Ada",
23 "job_title": "VP Marketing",
24 "email": "ada@stripe.com",
25 "country": "United States",
26 "company_name": "Stripe",
27 "company_domain": "stripe.com",
28 "industry": "Software"
29 },
30 {
31 "full_name": "Personal Inbox",
32 "job_title": "Marketing Manager",
33 "email": "someone@gmail.com",
34 "country": "United States",
35 "company_name": "Example Co",
36 "company_domain": "example.com",
37 "industry": "Software"
38 }
39 ]
40};
41
42
43const run = await client.actor("kamerozkan/b2b-lead-cleaner").call(input);
44
45
46console.log('Results from dataset');
47console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
48const { items } = await client.dataset(run.defaultDatasetId).listItems();
49items.forEach((item) => {
50 console.dir(item);
51});
52
53