...
Run query export API: This API initiates the export process. It allows you to specify query AQL and other parameters. The query is run in the background and might take a few seconds or minutes to run.
(Steps to get a query AQL: https://openspecimen.atlassian.net/l/cp/DpHj1PNV)
Download CSV: This API enables you to retrieve the CSV file. Since the query might still be running, you will have to run this in a loop.
See the example code below.
...