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

# Get Linked Datasets

> Get all datasets linked to a specification.

> [!WARNING]
>
> You are reading the docs of Galtea 5.10. [Read this page in the latest version](https://docs.galtea.ai/sdk/api/specification/get-datasets.md).

## Returns

Returns a list of [Dataset](https://docs.galtea.ai/v5.10/concepts/product/dataset.md) objects linked to the specification.

## Example

```python theme={"system"}
datasets = galtea.specifications.get_datasets(
    specification_id=accuracy_specification.id,
)
```

## Parameters

**specification\_id** `string` *required*

The ID of the specification to get linked datasets for.

## Errors

| Error | Cause |
| - | - |
| `EntityNotFoundException` | The platform holds nothing under the id or name you passed. Import it with `from galtea import EntityNotFoundException`. Read the status from `e.status_code`. When the API answered 404 the SDK raises the subclass `EntityNotFoundHTTPError`, which also derives from `requests.HTTPError` and carries `e.response`, so code catching `requests.HTTPError` keeps working. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.