DatasetCollectionClientAsync
apify_client.clients.DatasetCollectionClientAsync
Index
Methods
Methods
get_or_create
Retrieve a named dataset, or create a new one when it doesn’t exist.
https://docs.apify.com/api/v2#/reference/datasets/dataset-collection/create-dataset
Parameters
name: str | None = Nonekeyword-only
The name of the dataset to retrieve or create.
schema: dict | None = Nonekeyword-only
The schema of the dataset
Returns dict
The retrieved or newly-created dataset.
list
List the available datasets.
https://docs.apify.com/api/v2#/reference/datasets/dataset-collection/get-list-of-datasets
Parameters
unnamed: bool | None = Nonekeyword-only
Whether to include unnamed datasets in the list
limit: int | None = Nonekeyword-only
How many datasets to retrieve
offset: int | None = Nonekeyword-only
What dataset to include as first when retrieving the list
desc: bool | None = Nonekeyword-only
Whether to sort the datasets in descending order based on their modification date
Returns ListPage[dict]
The list of available datasets matching the specified filters.
Async sub-client for manipulating datasets.