Programmatically export grafana dashboard data grafana grafana-api

I have a visual and aggregate result showin in grafana.<<my_company>>.com. I can manually go to the menu click export and export the data to my local in format option I have. This works great. Is there a way I can script that in python that hit grafana server and get result what I need ? So that I can automate it.
Looking for info thanks in advance :slightly_smiling_face:

1 Like

Hello :wave: and welcome to the forum, @sachinmans7

there are various tools like these for exporting dashboards, but not necessarily the data inside panels.

Question: Grafana is only a visualization layer. Can you not hit the DB directly? Or you are transforming the data inside Grafana?

You might need to write some sort of browser automation script?

I don’t there is an API endpoint that is the equivalent of the inspect β†’ data β†’ export workflow in the UI

1 Like