Get Chart Data
rc_get_chartQuery RevenueCat Charts API metrics as time series. Returns markdown table with dates, measures, and summary statistics for MRR, revenue, churn, and more.
Instructions
Query any RevenueCat Charts API metric as a time series. Returns formatted markdown table with dates, measures, and summary statistics.
Supports 21 metrics across revenue, subscriptions, trials, conversion, and cohorts. Use rc_list_metrics to discover available metrics.
Args:
api_key (string): RevenueCat secret API key starting with "sk_"
metric (string): Chart metric name. Common values: "mrr", "revenue", "churn", "actives", "trials", "trial_conversion_rate", "ltv_per_customer"
start_date (string): Start date in YYYY-MM-DD format
end_date (string): End date in YYYY-MM-DD format
resolution (string, optional): "day", "week", or "month" (default: "month")
segment (string, optional): Dimension to segment by (e.g., "country")
project_id (string, optional): RevenueCat project ID. Auto-detected if omitted.
Returns: Markdown with chart description, period, resolution, summary statistics, and a data table. Multi-measure charts (like churn) include all measures as columns. Segmented charts show top 10 segments as columns.
Examples:
"Show me MRR for 2025" -> metric="mrr", start_date="2025-01-01", end_date="2025-12-31"
"What's my churn week over week?" -> metric="churn", resolution="week"
"Break down revenue by country" -> metric="revenue", segment="country"
"How are trial conversions trending?" -> metric="trial_conversion_rate"
Error Handling:
Invalid metric: returns list of valid metric names
Rate limited: auto-retries up to 3 times with backoff
Invalid date format: returns error with expected format
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | Yes | Chart metric to query (use rc_list_metrics to see all). Common: mrr, revenue, churn, actives, trials | |
| api_key | Yes | RevenueCat secret API key (starts with sk_) | |
| segment | No | Segment dimension (e.g., 'country' for geographic breakdown) | |
| end_date | Yes | End date in YYYY-MM-DD format | |
| project_id | No | RevenueCat project ID (e.g., 'proj058a6330'). Auto-detected if omitted. | |
| resolution | No | Data resolution: day, week, or month (default: month) | month |
| start_date | Yes | Start date in YYYY-MM-DD format |