DatasetCollectionClient
Hierarchy
- ResourceCollectionClient
- DatasetCollectionClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
getOrCreate
Gets or creates a dataset with the specified name.
Parameters
optionalname: string
Name of the dataset. If not provided, a default dataset is used.
optionaloptions: DatasetCollectionClientGetOrCreateOptions
Additional options like schema.
Returns Promise<Dataset>
The dataset object.
list
Lists all Datasets.
Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched items in a single API call is limited.
const paginatedList = await client.list(options);Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are retrieved.
for await (const singleItem of client.list(options)) {...}Parameters
options: DatasetCollectionClientListOptions = {}
Pagination options.
Returns Promise<DatasetCollectionClientListResult> & AsyncIterable<Dataset, any, any>
A paginated iterator of Datasets.
Client for managing the collection of datasets in your account.
Datasets store structured data results from Actor runs. This client provides methods to list, create, or get datasets by name.
https://docs.apify.com/platform/storage/dataset