API Documentation
Exporting a Dataset via `curl`
Learn how to export datasets from Visual Layer using shell commands—no SDK required.
How This Helps
Export datasets directly using curl
without needing Python or SDKs. Ideal for automation scripts or CLI-based workflows.
Initiate Export
Use a GET
request to trigger export:
<DATASET_ID>
: Your dataset IDexport_format
: Supported values arejson
orparquet
include_images
:true
orfalse
file_name
: Name for the output ZIP
Sample Response
Poll Export Status
Use the export id
to monitor progress:
Response includes a download URI once "status": "COMPLETED"
.
Download ZIP
When ready, download your dataset:
Use the -L
flag to follow redirects (required for S3 links).
Unzip and Explore
Extract the ZIP archive:
Example folder structure:
Full Automation Script
Filter Exported Data by Uniqueness
Use pandas
to find the most unique images:
Copy Filtered Images
Summary
- Initiated export
- Polled export status
- Downloaded and unzipped archive
- Parsed metadata using
pandas
- Used
uniqueness_score
for image filtering