Version v0.50 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/
Execute a query and retrieve the results in the usual format. The query will not use the cache.
PARAMS:
-
databasenullable integer. -
query
POST /api/dataset/:export-format
Execute a query and download the result data as a file in the specified format.
PARAMS:
-
export-formatenum of csv, api, xlsx, json. -
queryvalue must be a valid JSON string. -
visualization_settingsvalue must be a valid JSON string. -
format_rowsnullable boolean.
POST /api/dataset/native
Fetch a native version of an MBQL query.
PARAMS:
-
databasevalue must be an integer greater than zero. -
prettynullable boolean. -
query
POST /api/dataset/parameter/search/:query
Return parameter values for cards or dashboards that are being edited. Expects a query string at ?query=foo.
PARAMS:
-
queryvalue must be a non-blank string. -
parameterparameter must be a map with :id and :type keys. -
field_idsnullable sequence of value must be an integer greater than zero.
POST /api/dataset/parameter/values
Return parameter values for cards or dashboards that are being edited.
PARAMS:
-
parameterparameter must be a map with :id and :type keys. -
field_idsnullable sequence of value must be an integer greater than zero.
POST /api/dataset/pivot
Generate a pivoted dataset for an ad-hoc query.
PARAMS:
-
databasenullable value must be an integer greater than zero. -
query
POST /api/dataset/query_metadata
Get all of the required query metadata for an ad-hoc query.
PARAMS:
-
databasevalue must be an integer greater than zero. -
query
Read docs for other versions of Metabase.