## Get a dataset item

`dataset_items.retrieve(strdataset_item_id, DatasetItemRetrieveParams**kwargs)  -> DatasetItem`

**get** `/v5/dataset-items/{dataset_item_id}`

Retrieve a single dataset item by its identifier.

The lookup is scoped to the caller's account. By default the current (latest) version of the item
is returned; passing version returns the item as it existed at that dataset version, which allows
reading an item that was later updated or soft-deleted.

### Parameters

- `dataset_item_id: str`

- `version: Optional[int]`

  Optional dataset version. When unset, returns the latest version.

### Returns

- `class DatasetItem: …`

  - `id: str`

    The unique identifier of the entity.

  - `content_hash: str`

  - `created_at: datetime`

    The date and time when the entity was created in ISO format.

  - `created_by: Identity`

    The identity that created the entity.

    - `id: str`

    - `type: Literal["user", "service_account"]`

      - `"user"`

      - `"service_account"`

    - `object: Optional[Literal["identity"]]`

      - `"identity"`

  - `data: Dict[str, object]`

  - `updated_at: datetime`

    The date and time when the entity was last updated in ISO format.

  - `archived_at: Optional[datetime]`

    The date and time when the entity was archived in ISO format.

  - `dataset_id: Optional[str]`

  - `files: Optional[Dict[str, str]]`

  - `object: Optional[Literal["dataset.item"]]`

    - `"dataset.item"`

### Example

```python
import os
from scale_gp_beta import SGPClient

client = SGPClient(
    api_key=os.environ.get("SGP_API_KEY"),  # This is the default and can be omitted
)
dataset_item = client.dataset_items.retrieve(
    dataset_item_id="dataset_item_id",
)
print(dataset_item.id)
```

#### Response

```json
{
  "id": "id",
  "content_hash": "content_hash",
  "created_at": "2019-12-27T18:11:19.117Z",
  "created_by": {
    "id": "id",
    "type": "user",
    "object": "identity"
  },
  "data": {
    "foo": "bar"
  },
  "updated_at": "2019-12-27T18:11:19.117Z",
  "archived_at": "2019-12-27T18:11:19.117Z",
  "dataset_id": "dataset_id",
  "files": {
    "foo": "string"
  },
  "object": "dataset.item"
}
```
