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

# List All Datasets

> You can list all datasets using the Python SDK.

Import the required classes and initialize Athina API key.

```python
import os
from athina_client.datasets import Dataset
from athina_client.keys import AthinaApiKey

AthinaApiKey.set_key(os.getenv('ATHINA_API_KEY'))
```

Now you can list all datasets.

```python
# List all datasets
try:
    datasets = Dataset.list_datasets()
except Exception as e:
    print(f"Failed to list datasets: {e}")
```
