Query Ad-hoc Widget Data

Computes widget data from a widget definition supplied inline, without creating a dashboard or saving a widget. Returns the same data shape as the dashboard widget query. Scoped to the project of the API key. At most 20 lines and a topK.limit of 100 are allowed, and an explicit query range may not exceed 366 days.

Request

The widget definition to compute, plus an optional query time range that overrides the widget's own time fields for this query.
widgetobjectRequired
The widget configuration to compute data for.
startTimedatetimeOptional

ISO 8601 start time for the query range. Must be provided with endTime.

endTimedatetimeOptional

ISO 8601 end time for the query range. Must be provided with startTime.

granularityenumOptional
Optional bucket granularity override for the query.

Response

The computed data for the supplied widget.
successboolean
Indicates if the request was successful.
dataobject
The computed widget data.
deprecatedboolean
Indicates if this endpoint is deprecated.