Dashboard Widgets API #
GET /analytics/widgets #
Returns data for all dashboard widgets in a single request. Used by the Analytics Dashboard page to load all widget data efficiently.
URL: GET /wp-json/dmsilm/v1/analytics/widgets
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
widgets | string | all | Comma-separated list of widget types to include |
period | string | monthly | Data period for metric widgets |
Available widget types: mrr, arr, revenue, churn, retention, ltv, licenses, renewal, downloads, anomalies, goals, activity
Response:
{
"success": true,
"data": {
"mrr": { "value": 9420.00, "change": 740.00, "change_pct": 8.5 },
"arr": { "value": 113040.00, "change": 8880.00, "change_pct": 8.5 },
"churn": { "value": 1.84, "change": -0.21 },
"licenses": { "active": 1248, "expiring_30d": 87 },
"downloads": { "total": 3841, "change_pct": 12.3 },
"anomalies": { "new": 1, "investigating": 0 }
}
}
