---
title: "Get the dependency graph of a package version"
method: GET
path: "/scopes/{scope}/packages/{package}/versions/{version}/dependencies/graph"
---

# Get the dependency graph of a package version

`GET /scopes/{scope}/packages/{package}/versions/{version}/dependencies/graph`

Returns the full dependency graph of a package version

## Path parameters

- `scope` string, required — The name of a scope. This must not be @ prefixed.
- `package` string, required — The name of a package.
- `version` string, required — A semantic version.

## Response `200`

OK

- DependencyGraphItem[]
  - `id` integer, required — The unique identifier for this item in the graph.
  - `dependency` object, required — The dependency information.
  - `children` integer[], required — IDs of child dependencies.
  - `size` integer, nullable — Size in bytes of the dependency.
  - `mediaType` string, nullable — The media type of the file.

## Other responses

- `400` — Invalid request
- `404` — Package version not found

---

[API](https://skmtc.net/deno/apis/jsr.md) · [All operations](https://skmtc.net/deno/apis/jsr/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deno/jsr/versions/3d37ac9b68f7/schema)
