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 "domain": "luma-beauty.example",
14 "platform": "Shopify",
15 "vertical": "beauty",
16 "model": "subscription DTC"
17 },
18 {
19 "website": "northgear.example",
20 "platform": "Shopify Plus",
21 "vertical": "outdoor",
22 "model": "premium ecommerce"
23 },
24 {
25 "domain": "casino-demo.example",
26 "platform": "Shopify",
27 "vertical": "casino"
28 }
29 ],
30 "targetIcp": {
31 "keywords": [
32 "shopify",
33 "dtc",
34 "subscription",
35 "beauty",
36 "outdoor"
37 ],
38 "requiredTechnologies": [
39 "shopify"
40 ],
41 "excludedKeywords": [
42 "adult",
43 "gambling",
44 "casino"
45 ]
46 }
47};
48
49
50const run = await client.actor("theendfear/factory-shopify-icp-gap-lead-scorer-d2ae62fd").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