1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "currentItems": [
12 {
13 "exhibitorId": "e1",
14 "event": "CloudWorld",
15 "company": "Acme AI",
16 "category": "AI Infrastructure",
17 "booth": "A12",
18 "score": 90
19 },
20 {
21 "exhibitorId": "e2",
22 "event": "CloudWorld",
23 "company": "Beta Data",
24 "category": "Analytics",
25 "booth": "B10",
26 "score": 70
27 },
28 {
29 "exhibitorId": "e3",
30 "event": "CloudWorld",
31 "company": "Gamma Security",
32 "category": "Security",
33 "booth": "C04",
34 "score": 80
35 }
36 ],
37 "previousItems": [
38 {
39 "exhibitorId": "e1",
40 "event": "CloudWorld",
41 "company": "Acme AI",
42 "category": "AI Infrastructure",
43 "booth": "A08",
44 "score": 75
45 },
46 {
47 "exhibitorId": "e4",
48 "event": "CloudWorld",
49 "company": "Delta Ops",
50 "category": "DevOps",
51 "booth": "D01",
52 "score": 60
53 }
54 ]
55};
56
57
58const run = await client.actor("quanmatrix/conference-exhibitor-churn-intelligence").call(input);
59
60
61console.log('Results from dataset');
62console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
63const { items } = await client.dataset(run.defaultDatasetId).listItems();
64items.forEach((item) => {
65 console.dir(item);
66});
67
68