You can get Timepiece - Time in Status for Jira report data in one piece, as a file export. File exports can work Synchronously or Asynchronously.
For Synchronous File Exports, you will call a single REST endpoint to start the export and receive the prepared file. This option is suitable for smaller exports.
For Asynchronous File Exports, you will call a REST endpoint to start the export, call another REST endpoint to track its progress, and (when completed) call yet another REST endpoint to download the file. This option is recommended for larger exports, as it allows the export process to run in the background and removes the risk of timeouts on the client side.