Could you please verify the name of API in the question?
The question was posted in the TREP APIs forum. APIs in TREP APIs are listed here.
You can use Robust Foundation API to output the received data into CSV file and export to excel.