As a developer, I need to run automatically a query multiple times, changing the filter values each time, and export the
png file locally for future uses (push to a remote document or cloud as instance).
Metabase introduced in the version 0.47.0 the possibility to download a chart as a PNG file the same way it was possible to download in XLSX, JSON and CSV.
However, when looking at the API documentation, the provided endpoint (link here) doesn't provide the possibility to do so.
As a matter of fact, looking into the Network tab of Developer tools of my browser show a complete difference in implementation between the export of a data file and an image file (examples below).
Example of request made for downloading data file : simple to automate
Example of request made for downloading the PNG file : not so simple to automate
It would be awesome to complete the API endpoint with the possibility to export in PNG. I assume it requires some heavy work in code rewriting, therefore my question here in order to have feedback from people that may go through similar problems.
- Scrapping our Metabase instance (using scrapping libs like Beautiful Soup): feasable but daunting