DatasetsResource provides methods to create, list, and retrieve datasets, as well as manage dataset items and sequences.
Create a dataset
Create a new dataset with the specified configuration.Parameters
The name of the dataset
The URL-friendly identifier for the dataset
The type of data in the dataset (e.g., “image”, “video”, “text”)
Whether the dataset contains sequences
The visibility level of the dataset (e.g., “private”, “public”)
Whether to create metadata for the dataset
Configuration for the storage provider
The name of the dataset owner
Returns
The unique identifier for the dataset
The name of the dataset
The URL-friendly identifier
The number of items in the dataset
The type of data in the dataset
The timestamp when the dataset was created
The timestamp when the dataset was last updated
List datasets
Retrieve a paginated list of datasets with optional filtering.Parameters
Filter by data type
Filter by dataset name
Filter by status
Filter by visibility level
Maximum number of results to return
Cursor for pagination
Returns
Array of dataset objects
Cursor for the next page of results
Cursor for the previous page of results
Whether there are more results available
Get a dataset
Retrieve a specific dataset by its unique identifier.Parameters
The unique identifier of the dataset
Returns
Returns aDataset object.
List dataset items
Retrieve a paginated list of items in a dataset.Parameters
The name of the dataset owner
The dataset slug
Maximum number of items to return
Cursor for pagination
Returns
Array of dataset item objects
Cursor for the next page of results
Cursor for the previous page of results
Whether there are more results available
Get a dataset item
Retrieve a specific item from a dataset.Parameters
The name of the dataset owner
The dataset slug
The unique identifier of the item
Returns
Returns aDatasetItem object with fields including uid, key, url, metadata, annotations, and timestamps.
List dataset sequences
Retrieve a paginated list of sequences in a dataset.Parameters
The name of the dataset owner
The dataset slug
Maximum number of sequences to return
Cursor for pagination
Returns
Array of dataset sequence objects
Cursor for the next page of results
Cursor for the previous page of results
Whether there are more results available
Get a dataset sequence
Retrieve a specific sequence from a dataset.Parameters
The name of the dataset owner
The dataset slug
The unique identifier of the sequence
Returns
Returns aDatasetSequence object with fields including uid, key, status, numberOfFrames, views, and frames.