Exporting data to CSV
This guide shows two ways to get Ptolemy data into CSV format: the asynchronous Export API for large datasets, and direct filter API iteration for smaller exports.
Choose your approach
Export API (recommended for large datasets)
Submit an export job and download the resulting file. Best for full workspace exports, scheduled backups, or datasets over 10,000 rows. The file is ready when
status=completed.Filter API + client-side CSV
Paginate through the filter API and write rows yourself. Best for small datasets, custom column selection, or when you need to transform data before writing.
Method 1 — Export API
Submit an export job, poll until complete, then download the pre-signed URL:
The
download_url is a pre-signed URL that expires 15 minutes after generation. Download the file as soon as the job completes.Method 2 — Filter API with client-side CSV
For custom exports, paginate through the filter API and build the CSV yourself:
Exporting time series data
Time series data can also be exported via the Export API. For scalar values, each row contains instrument_id, type_id, timestamp, and value. For composite values, items are flattened to individual columns: