Time-series API
Read trend data for dashboard metrics over time.
Last updated June 3, 2026
The time-series endpoint returns the same chart-ready trend data used by the dashboard. Use it for reporting, weekly summaries, or your own founder dashboard.
GET /api/analytics/time-series
1curl "https://usegrometrics.com/api/analytics/time-series?range=30d&interval=daily" \2-H "Authorization: Bearer YOUR_API_KEY"
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| interval | string | no | daily, weekly, or monthly |
| compare | boolean | no | Use true or 1 to return the previous comparable period |
What happens next
Use the same date range with the overview endpoint to show headline metrics beside the chart.
Troubleshooting
Interval is rejected
Use daily, weekly, or monthly.
Trend is empty
Confirm the selected range has tracked visitors or revenue.
Was this page helpful?