Optimized endpoint for time-series charts (bar, line, area, heatmap, scatter). Supports count, credits, usage, cached, and price dimensions. Uses a 2-step top-N query to avoid fetching data for all institutions.
JWT token passed in x-access-token header
Time granularity for bucketing
day, week, month, hour "month"
Time range (negative values for past periods)
-3
Metric to aggregate
count, credits, usage, cached, price "count"
Institution ID (optional, filters by institution)
"65cfebc32f5e1b37d4e52329"
Account ID (optional, filters by account's institutions)
When true, aggregates across all institutions
false
Number of top institutions to return (default 5, -1 for all)
5