Api reference
Revenue Time Series
Get revenue data over time with configurable granularity
Related endpoints
GET /analytics/revenue/mrr-summary— MRR SummaryGET /analytics/invoices/ar-aging— A/R Aging ReportGET /analytics/collections/dso— Days Sales OutstandingGET /analytics/customers/ltv— Customer LTVGET /analytics/customers/{customerId}— Customer AnalyticsGET /analytics/payment-links/conversion— Payment Link ConversionGET /analytics/checkout/funnel— Checkout Funnel AnalyticsGET /analytics/checkout/abandonment/summary— Abandonment Alert Summary
x-api-key<token>
Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.
In: header
Query Parameters
startDate*string
Start date (ISO 8601)
Format
date-timeendDate*string
End date (ISO 8601)
Format
date-timegranularity?string
Time granularity for data points
Default
"month"Value in
"day" | "week" | "month" | "quarter" | "year"Response Body
application/json
curl "https://api.revkeen.com/v2/analytics/revenue/time-series?startDate=2024-01-01T00%3A00%3A00Z&endDate=2024-12-31T23%3A59%3A59Z" \ -H "x-api-key: $REVKEEN_API_KEY"{
"dataPoints": [
{
"date": "string",
"revenue": 0,
"invoiceCount": 0,
"avgInvoiceValue": 0
}
],
"totalRevenue": 0,
"totalInvoices": 0,
"periodStart": "string",
"periodEnd": "string"
}