1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "items",
10 "items": [
11 {
12 "vendorName": "Acme API",
13 "source": "Developer changelog",
14 "changeType": "deprecation",
15 "severity": "breaking",
16 "changeTitle": "Legacy Charges API is deprecated",
17 "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.",
18 "affectedApis": [
19 "/v1/charges",
20 "synchronous charge confirmation",
21 ],
22 "replacementApi": "Payment Intents v2",
23 "deadlineAt": "2026-09-01",
24 "changeUrl": "https://developers.example.com/changelog/legacy-charges-api-deprecated",
25 },
26 {
27 "vendorName": "CloudDesk",
28 "source": "GitHub Releases",
29 "changeType": "security update",
30 "severity": "high",
31 "changeTitle": "SDK 4.8.2 patches webhook signature verification edge case",
32 "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.",
33 "affectedApis": [
34 "Webhook SDK",
35 "signature verification",
36 ],
37 "replacementApi": "SDK 4.8.2",
38 "publishedAt": "2026-07-01T12:00:00.000Z",
39 "changeUrl": "https://github.com/example/clouddesk-sdk/releases/tag/v4.8.2",
40 },
41 {
42 "vendorName": "Acme API",
43 "source": "API docs diff",
44 "changeType": "new feature",
45 "severity": "info",
46 "changeTitle": "New reporting endpoint added",
47 "description": "A new /v2/reports endpoint is available for analytics exports. Existing endpoints are unchanged.",
48 "affectedApis": ["/v2/reports"],
49 "changeUrl": "https://developers.example.com/docs/reports",
50 },
51 ],
52 "yourStack": "SaaS checkout and billing platform using Acme API for charges, webhooks, and customer payment events",
53 "trackedApis": [
54 "/v1/charges",
55 "Payment Intents",
56 "webhooks",
57 "signature verification",
58 ],
59 "criticalSystems": [
60 "checkout",
61 "billing",
62 "webhooks",
63 "auth",
64 ],
65 "ownerTeams": [
66 "platform engineering",
67 "payments squad",
68 "customer support",
69 ],
70 "scrapedAt": "2026-07-07T00:00:00.000Z",
71}
72
73
74run = client.actor("rotvuvo/api-deprecation-migration-risk-scorer").call(run_input=run_input)
75
76
77print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
78for item in client.dataset(run["defaultDatasetId"]).iterate_items():
79 print(item)
80
81