---
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

## Changes

- **2026-02-06** `0c4e8d8a5c2a` — 1 info
  - endpoint added
- **2024-02-28** `f8d3b912d946` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/jsr-io/apis/jsr-api/changes/scopes/:scope/packages/:package/versions/:version/dependencies/graph/get.md)

---

[API](https://skmtc.dev/jsr-io/apis/jsr-api.md) · [All operations](https://skmtc.dev/jsr-io/apis/jsr-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jsr-io/jsr-api/revisions/abb153728b13/schema)
