How to check if a card is a Model?

Hello,

I am trying to use the Metabase API or the database to check if a returned card is a Model. The goal is to be able to tell if a database table had any Metabase Models created with it as a source.

I've been checking the returned result_metadata and dataset_query, display and visualization_settings, but can't seem to find any indication to distinguish a regular card (e.g. Question) from a Model.

Would be thankful for any help!

In the database: table report_card, check if dataset is true (true=is model)

same using the api

1 Like

Awesome, thanks a lot @arakaki