Version v0.48 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
Search
API endpoints for Search.
GET /api/search/
Search for items in Metabase. For the list of supported models, check [[metabase.search.config/all-models]].
Filters:
archived: set to true to search archived items only, default is falsetable_db_id: search for tables, cards, and models of a certain DBmodels: only search for items of specific models. If not provided, search for all modelsfilters_items_in_personal_collection: only search for items in personal collectionscreated_at: search for items created at a specific timestampcreated_by: search for items created by a specific userlast_edited_at: search for items last edited at a specific timestamplast_edited_by: search for items last edited by a specific usersearch_native_query: set to true to search the content of native queriesverified: set to true to search for verified items only (requires Content Management or Official Collections premium feature)
Note that not all item types support all filters, and the results will include only models that support the provided filters. For example:
- The
created-byfilter supports dashboards, models, actions, and cards. - The
verifiedfilter supports models and cards.
A search query that has both filters applied will only return models and cards.
PARAMS:
-
filter_items_in_personal_collectionnullable enum of only, exclude -
table_db_idnullable value must be an integer greater than zero. -
created_bynullable value must be an integer greater than zero., or sequence of value must be an integer greater than zero. -
verifiednullable true -
created_atnullable value must be a non-blank string. -
archivednullable boolean -
qnullable value must be a non-blank string. -
search_native_querynullable true -
modelsnullable enum of dashboard, table, dataset, segment, collection, database, action, indexed-entity, metric, card, or sequence of enum of dashboard, table, dataset, segment, collection, database, action, indexed-entity, metric, card -
last_edited_bynullable value must be an integer greater than zero., or sequence of value must be an integer greater than zero. -
last_edited_atnullable value must be a non-blank string. -
contextnullable enum of search-bar, search-app
GET /api/search/models
Get the set of models that a search query will return.
PARAMS:
-
filter_items_in_personal_collection -
created_bynullable value must be an integer greater than zero., or sequence of value must be an integer greater than zero. -
verifiednullable true -
created_atnullable value must be a non-blank string. -
archivednullable value must be a valid boolean string (‘true’ or ‘false’). -
q -
search_native_querynullable true -
last_edited_bynullable value must be an integer greater than zero., or sequence of value must be an integer greater than zero. -
last_edited_atnullable value must be an integer greater than zero. -
table-db-idnullable value must be an integer greater than zero.
Read docs for other versions of Metabase.