Download Scripting Report to CSV from API

Hey, i want to ask.

I’m already make my custom scripting report for the app. I can download it from the app. But, in this case i want to download it from the api.

Can anyone teach me how to do it? Thanks