Skip to main content

Run a chart's server-side aggregation

POST 

/v1/analytics/run-chart

Run a chart's server-side aggregation and return the data it would plot.

Either pass chart_id to run a saved chart, or compose one on the fly from a dataset_id and/or sql plus a chart_config describing dimensions, metrics, breakdownBy, filters and topN. The aggregation happens in the database, so you get plot-ready series rather than raw rows.

This is the same execution path the product's own chart widgets use, which means what you receive here matches what the dashboard renders.

Requires the analytics:read scope.

Request

Responses

Successful Response