Skip to main content

Get dataset

GET 

/v2/datasets/:datasetId

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.

Request

Path Parameters

    datasetId string required

    Dataset ID or username~dataset-name.


    Example: WkzbQMuFYuamGv3YF

Query Parameters

    token string

    API authentication token. It is required only when using the username~dataset-name format for datasetId.


    Example: soSkq9ekdmfOslopH

Status 200

Response Headers
    {
    "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,
    "actId": null,
    "actRunId": null,
    "fields": [],
    "consoleUrl": "https://console.apify.com/storage/datasets/WkzbQMuFYuamGv3YF"
    }
    }