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 Payments",
13 "source": "Statuspage",
14 "severity": "major outage",
15 "status": "resolved",
16 "incidentTitle": "Checkout API outage",
17 "description": "Checkout API returned elevated 500 errors. Payments and webhooks were delayed for enterprise customers.",
18 "components": [
19 "Checkout API",
20 "Webhooks",
21 ],
22 "startedAt": "2026-07-06T10:00:00.000Z",
23 "resolvedAt": "2026-07-06T12:45:00.000Z",
24 "incidentUrl": "https://status.example/incidents/acme-checkout-api",
25 },
26 {
27 "vendorName": "GrowthStack",
28 "source": "Instatus",
29 "severity": "scheduled maintenance",
30 "status": "scheduled",
31 "incidentTitle": "Database migration maintenance",
32 "description": "Scheduled database migration may cause dashboard latency for 30 minutes.",
33 "components": [
34 "Database",
35 "Dashboard",
36 ],
37 "startedAt": "2026-07-08T02:00:00.000Z",
38 "resolvedAt": "2026-07-08T02:30:00.000Z",
39 "incidentUrl": "https://status.example/incidents/growthstack-db-maintenance",
40 },
41 {
42 "vendorName": "Acme Payments",
43 "source": "Statuspage",
44 "severity": "degraded performance",
45 "status": "investigating",
46 "incidentTitle": "Webhook delivery delays",
47 "description": "Webhook delivery is delayed for API customers in EU region. Engineers are investigating elevated queue latency.",
48 "components": [
49 "Webhooks",
50 "API",
51 "EU region",
52 ],
53 "startedAt": "2026-07-07T09:15:00.000Z",
54 "incidentUrl": "https://status.example/incidents/acme-webhook-delays",
55 },
56 ],
57 "yourProduct": "Reliable payment orchestration platform for SaaS teams that need resilient checkout, webhooks, and customer communication",
58 "targetVendors": [
59 "Acme Payments",
60 "GrowthStack",
61 ],
62 "targetSegments": [
63 "enterprise SaaS",
64 "customer success",
65 "RevOps",
66 ],
67 "criticalComponents": [
68 "checkout",
69 "payments",
70 "webhooks",
71 "api",
72 "auth",
73 ],
74 "scrapedAt": "2026-07-07T00:00:00.000Z",
75}
76
77
78run = client.actor("rotvuvo/status-page-incident-trigger-scorer").call(run_input=run_input)
79
80
81print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
82for item in client.dataset(run["defaultDatasetId"]).iterate_items():
83 print(item)
84
85