curl "https://api.raily.ai/v1/analytics/revenue?period=30d¤cy=USD" \ -H "Authorization: Bearer raily_sk_xxxxx"
{ "summary": { "total": 45230.00, "currency": "USD", "changePercent": 12.5, "projectedMonthly": 52000.00 }, "timeSeries": [ { "date": "2024-01-01", "revenue": 1520.00 }, { "date": "2024-01-02", "revenue": 1610.00 } ], "byLicenseType": { "enterprise": 35000.00, "professional": 8500.00, "basic": 1730.00 }, "byRequester": [ { "id": "partner_openai", "name": "OpenAI", "revenue": 18500.00 }, { "id": "partner_anthropic", "name": "Anthropic", "revenue": 12200.00 } ], "byContent": [ { "id": "cnt_abc", "title": "AI Report 2024", "revenue": 8500.00 }, { "id": "cnt_def", "title": "Premium Dataset", "revenue": 6200.00 } ] }
Retrieve revenue and billing analytics
7d
30d
90d
year
day
week
month
Show child attributes