Revenue API
Read revenue data including MRR, transactions, renewals, and refunds.
Last updated June 3, 2026
Use the revenue endpoint to read transaction-level and aggregate revenue data. This includes MRR, individual transactions, renewals, refunds, and breakdowns by plan or source.
GET /api/analytics/revenue
1curl "https://usegrometrics.com/api/analytics/revenue?range=30d" \2-H "Authorization: Bearer YOUR_API_KEY"
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| tab | string | no | Revenue view: overview, transactions, renewals, or refunds |
| timeInterval | string | no | Time interval for the revenue chart |
| plan | string | no | Filter by plan name |
What happens next
Use the revenue endpoint to track MRR trends or build a revenue report broken down by traffic source.
Troubleshooting
Revenue is zero
Confirm a payment integration (Stripe, Shopify, RevenueCat, etc.) is connected and syncing.
Missing attribution
Revenue events need a matching visitor identity. Check that the tracking script or SDK is linked to the payment provider.
Was this page helpful?