---
title: "Get dataset"
method: GET
path: "/v2/datasets/{datasetId}"
tags: ["Storage/Datasets"]
---

# 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](/api/v2/dataset-items-get) 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.

## Path parameters

- `datasetId` string, required

## Response `200`

- DatasetResponse — Response containing dataset metadata.
  - `data` Dataset, required
    - `id` string, required
    - `name` string, nullable
    - `userId` string, required
    - `createdAt` string, date-time, required
    - `modifiedAt` string, date-time, required
    - `accessedAt` string, date-time, required
    - `itemCount` integer, required
    - `cleanItemCount` integer, required
    - `actId` string, nullable
    - `actRunId` string, nullable
    - `fields` string[], nullable
    - `schema` object, nullable — Defines the schema of items in your dataset, the full specification can be found in [Apify docs](/storage/dataset-schema)
    - `consoleUrl` string, uri, required
    - `itemsPublicUrl` string, uri — A public link to access the dataset items directly.
    - `urlSigningSecretKey` string, nullable — A secret key for generating signed public URLs. It is only provided to clients with WRITE permission for the dataset.
    - `generalAccess` 'ANYONE_WITH_ID_CAN_READ' | 'ANYONE_WITH_NAME_CAN_READ' | 'FOLLOW_USER_SETTING' | 'RESTRICTED' — Defines the general access level for the resource.
    - `stats` DatasetStats
      - `readCount` integer
      - `writeCount` integer
      - `storageBytes` integer — Total storage size in bytes. Only returned by the single-dataset endpoint.
      - `inflatedBytes` integer — Uncompressed size in bytes. Only returned by the dataset list endpoint.

## Other responses

- `400` — Bad request - invalid input parameters or request body.
- `401` — Unauthorized - authentication required or invalid token.
- `402` — Payment required - the user has exceeded their usage limit, does not have enough credits, or the request lacks authentication and payment credentials.
- `403` — Forbidden - insufficient permissions to perform this action.
- `404` — Not found - the requested resource does not exist.
- `405` — Method not allowed.
- `429` — Too many requests - rate limit exceeded.

---

[API](https://skmtc.net/apify/apis/apify-api.md) · [All operations](https://skmtc.net/apify/apis/apify-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apify/apify-api/versions/01a71794279b/schema)
