1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "startUrls": [
12 {
13 "url": "https://example.com"
14 }
15 ],
16 "targetKeywords": [
17 "B2B",
18 "SaaS",
19 "RevOps",
20 "GTM",
21 "automation",
22 "integration",
23 "lead scoring",
24 "CRM",
25 "ABM",
26 "account research",
27 "account scoring",
28 "lead prioritization",
29 "buying signals",
30 "website analysis",
31 "HubSpot",
32 "Salesforce",
33 "Pipedrive",
34 "Zoho",
35 "Clay",
36 "Apollo",
37 "Zapier",
38 "n8n",
39 "Make.com",
40 "Airtable",
41 "Google Sheets"
42 ],
43 "negativeKeywords": [
44 "casino",
45 "adult",
46 "crypto pump",
47 "personal blog"
48 ]
49};
50
51
52const run = await client.actor("jorokotev/public-website-lead-fit").call(input);
53
54
55console.log('Results from dataset');
56console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
57const { items } = await client.dataset(run.defaultDatasetId).listItems();
58items.forEach((item) => {
59 console.dir(item);
60});
61
62