> ## Documentation Index
> Fetch the complete documentation index at: https://www.octoparse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List datasets

> List your datasets and public platform seed datasets.

**`GET`** `https://api-datahub.octoparse.com/v1/datasets`

Authentication: API key required (`Authorization: Bearer <API Key>`).

Lists datasets you own, plus public platform seed datasets. Run results land in a dataset; mark retention when you need to keep them beyond the default window.

## Request

### Query parameters

<ParamField query="offset" type="integer">
  Offset, starting at 0.
</ParamField>

<ParamField query="limit" type="integer">
  Page size.
</ParamField>

### Example request

```bash theme={null}
curl   -H "Authorization: Bearer $OCTOPARSE_API_KEY"   "https://api-datahub.octoparse.com/v1/datasets?limit=50"
```

## Response

### 200 success

```json theme={null}
{
  "data": {
    "items": [
      {
        "dataset_id": "ds_0bd5345d13d0",
        "row_count": 120,
        "retained": false,
        "created_at": "2026-09-01T08:00:00+00:00"
      }
    ],
    "pagination": {
      "offset": 0,
      "limit": 50,
      "count": 1,
      "total": 1,
      "has_more": false
    }
  }
}
```

### Errors

| HTTP | `code`         | `category`  | Description                 |
| ---- | -------------- | ----------- | --------------------------- |
| 401  | `unauthorized` | `forbidden` | Missing or invalid API key. |

Error responses use `{"error": {code, category, message, retryable}}`. See <a href="/docs/en/datahub/api/reference/introduction#errors">Errors</a>.

## Client libraries

<CodeGroup>
  ```python Python theme={null}
  page = client.list_datasets(limit=50)
  for ds in page["items"]:
      print(ds["dataset_id"], ds["row_count"], ds["retained"])
  ```

  ```js JavaScript theme={null}
  const page = await client.listDatasets({ limit: 50 });
  for (const ds of page.items) {
    console.log(ds.dataset_id, ds.row_count, ds.retained);
  }
  ```
</CodeGroup>
