Analytics
Query revenue and usage analytics via the Dunmore API.
Get analytics data for your project.
Get Analytics
GET /api/projects/:projectId/analytics
Query Parameters
| Parameter | Type | Description |
|---|---|---|
period | string | 24h, 7d, 30d, 90d (default: 7d) |
Response
{
"totalRevenue": "14.52",
"totalTransactions": 1452,
"successRate": 0.987,
"dailyBreakdown": [
{ "date": "2026-02-18", "revenue": "2.10", "transactions": 210 }
],
"topEndpoints": [
{ "endpointId": "ep_abc", "path": "/weather", "revenue": "8.20", "transactions": 820 }
]
}