Export to excel with REST API

hi, I have a DataGrid filled with data from an API that I want to be able to export it to excel with the press of a button. But the export handler shows no operations from the API.

Export is available for database data sources only.

oh that's a bummer, isn't it possible to do it via the execute code handler. And if so, is there an example of that operation because i have almost no experience in c#.

It’s not available in general.

Is it possible to export to CSV when the data comes from an API? Is there any chance of future support for excel?