Inspect package dependencies
Explore the dependencies of a package release, from its direct dependencies to the full dependency graph. The response can also include dependency declarations, relationships between packages, and issues such as outdated or deprecated dependencies.
Use this endpoint to understand what a package brings into your project and where an indirect dependency comes from.
Selector catalogue
Use the following selectors with the fields query parameter to choose which fields the response includes. See Choose what the response includes for details.
| Selector | Data | Default |
|---|---|---|
dependencies.direct | Direct dependencies, their declared version constraints, and available resolved versions. | Yes |
dependencies.groups | Dependency declarations grouped by lifecycle, including conditions and environment markers. The lifecycle filter applies to this group. | Yes |
dependencies.transitive | The dependency graph, with package relationships, counts, version conflicts, and cycles. Use max_depth to limit its depth. | No |
dependencies.importers | Packages that depend on each dependency, with their declared constraints. Also includes dependencies.transitive. | No |
dependencies.issues | Deprecated, outdated, duplicate, and conflicting dependencies, with counts. Graph details are returned only if selected. | No |
dependencies.* | All dependency groups: direct, groups, transitive, importers, and issues. | No |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Optional client attribution: trimmed printable ASCII, at most 80 bytes. Invalid optional values are dropped.
Optional client-version attribution: trimmed printable ASCII, at most 80 bytes. Invalid optional values are dropped.
Optional agent attribution: trimmed printable ASCII, at most 160 bytes. Invalid optional values are dropped.
Optional session attribution: trimmed printable ASCII, at most 128 bytes. Invalid optional values are dropped; no session is created.
Path Parameters
Canonical lowercase supported registry; nuget, maven and packagist are not supported by this endpoint.
npm, pypi, hex, crates, vcpkg, zig, rubygems, go, swift Package name: 1–255 UTF-8 bytes without control characters. Spelling and whitespace are preserved. Encode slashes as %2F within one path segment.
1Query Parameters
Concrete version or source-supported constraint; omitted/blank resolves latest. Trimmed. Go numeric versions gain v; Swift accepts v tags; other registries reject numeric v/V prefixes.
Requires dependencies.groups selection. Comma-separated runtime (default), development, build, peer, optional, all. Trimmed/lowercased/deduplicated in canonical order. Reject empty/unknown tokens or mixed all. Concrete filters include runtime. Filters ONLY groups, never direct or graph.
Optional decimal integer 1–10. Requires transitive, importers or issues selection. Omission means full traversal for those groups; direct alone internally uses depth 1. Limits returned graph scope, not guaranteed upstream resolution cost.
1 <= x <= 10Comma-separated atomic selectors from the catalogue; explicit selection replaces default direct+groups. Explicit dependencies.* bundle; importers implies transitive. No leaf/root/recursive wildcards or include_* flags. Maximum 2048 decoded UTF-8 bytes.
Use the case-sensitive selectors in the catalogue. Order and duplicate selectors do not affect the result. ASCII whitespace around selectors is ignored. The decoded value is limited to 2048 UTF-8 bytes. Empty or unknown selectors and repeated fields query parameters return 400 VALIDATION_ERROR. A group does not include nested groups unless the catalogue says so; only listed wildcard bundles are supported.
Response
Selected dependency evidence for the resolved package version
Selected dependency evidence for a concrete package version.