RevKeen Docs
Api reference

Revenue Time Series

Get revenue data over time with configurable granularity


Related endpoints

  • GET /analytics/revenue/mrr-summary — MRR Summary
  • GET /analytics/invoices/ar-aging — A/R Aging Report
  • GET /analytics/collections/dso — Days Sales Outstanding
  • GET /analytics/customers/ltv — Customer LTV
  • GET /analytics/customers/{customerId} — Customer Analytics
  • GET /analytics/payment-links/conversion — Payment Link Conversion
  • GET /analytics/checkout/funnel — Checkout Funnel Analytics
  • GET /analytics/checkout/abandonment/summary — Abandonment Alert Summary
GET
/analytics/revenue/time-series
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)

Formatdate-time
endDate*string

End date (ISO 8601)

Formatdate-time
granularity?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"
}