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 "id": "ACME",
14 "company": "Acme Corp",
15 "ticker": "ACME",
16 "authorizedUsd": 5000000000,
17 "remainingUsd": 4100000000,
18 "expiry": "2027-12-31",
19 "status": "ACTIVE",
20 "date": "2026-09-23"
21 },
22 {
23 "id": "NOVA",
24 "company": "Nova Holdings",
25 "ticker": "NOVA",
26 "authorizedUsd": 1200000000,
27 "remainingUsd": 1200000000,
28 "expiry": "2028-06-30",
29 "status": "NEW",
30 "date": "2026-09-23"
31 },
32 {
33 "id": "ZEN",
34 "company": "Zen Industries",
35 "ticker": "ZEN",
36 "authorizedUsd": 750000000,
37 "remainingUsd": 90000000,
38 "expiry": "2026-12-31",
39 "status": "ACTIVE",
40 "date": "2026-09-23"
41 }
42 ],
43 "previousItems": [
44 {
45 "id": "ACME",
46 "company": "Acme Corp",
47 "ticker": "ACME",
48 "authorizedUsd": 3000000000,
49 "remainingUsd": 2300000000,
50 "expiry": "2027-12-31",
51 "status": "ACTIVE",
52 "date": "2026-06-30"
53 },
54 {
55 "id": "ZEN",
56 "company": "Zen Industries",
57 "ticker": "ZEN",
58 "authorizedUsd": 750000000,
59 "remainingUsd": 220000000,
60 "expiry": "2026-12-31",
61 "status": "ACTIVE",
62 "date": "2026-06-30"
63 }
64 ]
65};
66
67
68const run = await client.actor("quanmatrix/corporate-buyback-authorization-change-intelligence").call(input);
69
70
71console.log('Results from dataset');
72console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
73const { items } = await client.dataset(run.defaultDatasetId).listItems();
74items.forEach((item) => {
75 console.dir(item);
76});
77
78