Download grid data

is there a function in the API to download in a raw format the data in a chart grid?
I would like to call it from a Dash app actually, to give users the possibility of downloading data from a chart