> ## 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.

# Datasets auflisten

> Eigene Datasets und öffentliche Plattform-Seed-Datasets auflisten.

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

Authentifizierung: API-Schlüssel erforderlich (`Authorization: Bearer <API Key>`).

Listet Ihre eigenen Datasets sowie öffentliche Seed-Datasets der Plattform auf. Run-Ergebnisse landen in einem Dataset; setzen Sie die Aufbewahrungsmarkierung, wenn Sie sie über das Standardfenster hinaus behalten möchten.

## Anfrage

### Abfrageparameter

<ParamField query="offset" type="integer">
  Offset, beginnend bei 0.
</ParamField>

<ParamField query="limit" type="integer">
  Seitengröße.
</ParamField>

### Beispielanfrage

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

## Antwort

### 200 Erfolg

```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
    }
  }
}
```

### Fehler

| HTTP | `code`         | `category`  | Beschreibung                             |
| ---- | -------------- | ----------- | ---------------------------------------- |
| 401  | `unauthorized` | `forbidden` | Fehlender oder ungültiger API-Schlüssel. |

Fehlerantworten nutzen `{"error": {code, category, message, retryable}}`. Siehe <a href="/docs/de/datahub/api/reference/introduction#errors">Fehler</a>.

## Client-Bibliotheken

<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>
