Version v0.43 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
Dataset
/api/dataset endpoints.
- POST /api/dataset/
- POST /api/dataset/:export-format
- POST /api/dataset/duration
- POST /api/dataset/native
- POST /api/dataset/pivot
POST /api/dataset/
Execute a query and retrieve the results in the usual format.
PARAMS:
-
databasevalue may be nil, or if non-nil, value must be an integer. -
query
POST /api/dataset/:export-format
Execute a query and download the result data as a file in the specified format.
PARAMS:
-
export-formatvalue must be one of:api,csv,json,xlsx. -
queryvalue must be a valid JSON string. -
visualization_settingsvalue must be a valid JSON string.
POST /api/dataset/duration
Get historical query execution duration.
PARAMS:
-
database -
query
POST /api/dataset/native
Fetch a native version of an MBQL query.
PARAMS:
query
POST /api/dataset/pivot
Generate a pivoted dataset for an ad-hoc query.
PARAMS:
-
databasevalue may be nil, or if non-nil, value must be an integer. -
query
Read docs for other versions of Metabase.