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 "vendorName": "Acme API",
15 "source": "Developer changelog",
16 "changeType": "deprecation",
17 "severity": "breaking",
18 "changeTitle": "Legacy Charges API is deprecated",
19 "description": "The /v1/charges endpoint and synchronous charge confirmation flow are deprecated. All integrations must migrate to Payment Intents v2 before 2026-09-01. Checkout, billing, and webhook handlers may require code changes.",
20 "affectedApis": [
21 "/v1/charges",
22 "synchronous charge confirmation"
23 ],
24 "replacementApi": "Payment Intents v2",
25 "deadlineAt": "2026-09-01",
26 "changeUrl": "https://developers.example.com/changelog/legacy-charges-api-deprecated"
27 },
28 {
29 "vendorName": "CloudDesk",
30 "source": "GitHub Releases",
31 "changeType": "security update",
32 "severity": "high",
33 "changeTitle": "SDK 4.8.2 patches webhook signature verification edge case",
34 "description": "A webhook signature verification bug was fixed in SDK 4.8.2. Customers using webhooks should upgrade from SDK 4.7.x. No exploitability statement is provided in this release note.",
35 "affectedApis": [
36 "Webhook SDK",
37 "signature verification"
38 ],
39 "replacementApi": "SDK 4.8.2",
40 "publishedAt": "2026-07-01T12:00:00.000Z",
41 "changeUrl": "https://github.com/example/clouddesk-sdk/releases/tag/v4.8.2"
42 },
43 {
44 "vendorName": "Acme API",
45 "source": "API docs diff",
46 "changeType": "new feature",
47 "severity": "info",
48 "changeTitle": "New reporting endpoint added",
49 "description": "A new /v2/reports endpoint is available for analytics exports. Existing endpoints are unchanged.",
50 "affectedApis": [
51 "/v2/reports"
52 ],
53 "changeUrl": "https://developers.example.com/docs/reports"
54 }
55 ],
56 "yourStack": "SaaS checkout and billing platform using Acme API for charges, webhooks, and customer payment events",
57 "trackedApis": [
58 "/v1/charges",
59 "Payment Intents",
60 "webhooks",
61 "signature verification"
62 ],
63 "criticalSystems": [
64 "checkout",
65 "billing",
66 "webhooks",
67 "auth"
68 ],
69 "ownerTeams": [
70 "platform engineering",
71 "payments squad",
72 "customer support"
73 ],
74 "scrapedAt": "2026-07-07T00:00:00.000Z"
75};
76
77
78const run = await client.actor("rotvuvo/api-deprecation-migration-risk-scorer").call(input);
79
80
81console.log('Results from dataset');
82console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
83const { items } = await client.dataset(run.defaultDatasetId).listItems();
84items.forEach((item) => {
85 console.dir(item);
86});
87
88