---
title: "get a Python snippet that fetches an hdf dataset or group"
method: GET
path: "/hdf/snippet/{fpath}"
---

# get a Python snippet that fetches an hdf dataset or group

`GET /hdf/snippet/{fpath}`

get a Python snippet that fetches the hdf dataset or group pointed to by the path and uri

## Response `200`

python code snippet

- string — python code snippet

## Other responses

- `400` — the request was malformed; url should be of the format `"fpath?uri=uri"`
- `401` — the request did not specify a file that `h5py` could understand
- `403` — the request specified a file that does not exist
- `500` — found and opened file, error getting contents from object specified by the uri

---

[API](https://skmtc.net/jupyter-server/apis/jupyterlab-hdf5-proxy.md) · [All operations](https://skmtc.net/jupyter-server/apis/jupyterlab-hdf5-proxy/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jupyter-server/jupyterlab-hdf5-proxy/versions/4cb4fe162160/schema)
