Storage/Datasets
Get dataset
Returns dataset object for given dataset ID.
This does not return dataset items, only information about the storage itself. To retrieve dataset items, use the List dataset items endpoint.
:::note
Keep in mind that attributes itemCount and cleanItemCount are not propagated right away after data are pushed into a dataset.
:::
There is a short period (up to 5 seconds) during which these counters may not match with exact counts in dataset items.
get/v2/datasets/{datasetId}
Path parameters
datasetIdstring required
Example:WkzbQMuFYuamGv3YF
Dataset ID or username~dataset-name.
Response
Example response
{
"data": {
"id": "WkzbQMuFYuamGv3YF",
"name": "d7b9MDYsbtX5L7XAj",
"userId": "wRsJZtadYvn4mBZmm",
"createdAt": "2019-12-12T07:34:14.202Z",
"modifiedAt": "2019-12-13T08:36:13.202Z",
"accessedAt": "2019-12-14T08:36:13.202Z",
"itemCount": 7,
"cleanItemCount": 5,
"schema": {
"actorSpecification": 1,
"title": "My dataset",
"views": {
"overview": {
"title": "Overview",
"transformation": {
"fields": [
"linkUrl"
]
},
"display": {
"component": "table",
"properties": {
"linkUrl": {
"label": "Link URL",
"format": "link"
}
}
}
}
}
},
"consoleUrl": "https://console.apify.com/storage/datasets/27TmTznX9YPeAYhkC",
"itemsPublicUrl": "https://api.apify.com/v2/datasets/WkzbQMuFYuamGv3YF/items?signature=abc123",
"generalAccess": "RESTRICTED",
"stats": {
"readCount": 22,
"writeCount": 3,
"storageBytes": 783
}
}
}