1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "items",
12 "items": [
13 {
14 "name": "LaunchDeck",
15 "productHuntUrl": "https://www.producthunt.com/posts/launchdeck",
16 "websiteUrl": "https://launchdeck.io",
17 "tagline": "AI follow-up engine for lean sales teams",
18 "topics": [
19 "Sales",
20 "Artificial Intelligence",
21 "CRM"
22 ],
23 "upvotes": 420,
24 "commentsCount": 37,
25 "makerNames": [
26 "Ada Lee",
27 "Sam Ho"
28 ],
29 "publicEmail": "hello@launchdeck.io",
30 "emailSourceUrl": "https://launchdeck.io/contact"
31 }
32 ]
33};
34
35
36const run = await client.actor("rotvuvo/product-hunt-crm-lead-scorer").call(input);
37
38
39console.log('Results from dataset');
40console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41const { items } = await client.dataset(run.defaultDatasetId).listItems();
42items.forEach((item) => {
43 console.dir(item);
44});
45
46