Automate data extraction

I want to use the api to get it automatically via Excel from Grafana
It’s hard to manually extract data with Excel every time
Can someone help you?