Download grafana data in a shell script

hi all,
this is my first post and i hope somebody can help me out. I have a situation where i need to download grafana csv files from a shell script (may be using curl command) into my linux host. Or is there any other way? we are using hortonwokrs clusters grafana, but i just need the data for few servcies only.