Skip to content
Get started

Download the processed dataset

client.datasets.download(stringdatasetID, DatasetDownloadParams { fileFormat } query?, RequestOptionsoptions?): DatasetDownloadResponse
GET/api/v1/datasets/{dataset_id}/download

Download the processed dataset

ParametersExpand Collapse
datasetID: string
query: DatasetDownloadParams { fileFormat }
fileFormat?: "csv" | "json" | "jsonl" | "parquet"

Output file format. Defaults to the original upload format if omitted.

One of the following:
"csv"
"json"
"jsonl"
"parquet"
ReturnsExpand Collapse
DatasetDownloadResponse = Uploadable

Download the processed dataset

import Adaption from 'adaption';

const client = new Adaption({
  apiKey: process.env['ADAPTION_API_KEY'], // This is the default and can be omitted
});

const response = await client.datasets.download('dataset_id');

console.log(response);
"Example data"
Returns Examples
"Example data"