Skip to main content
GET

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-GitHits-Client-Name
string

Optional client attribution: trimmed printable ASCII, at most 80 bytes. Invalid optional values are dropped.

X-GitHits-Client-Version
string

Optional client-version attribution: trimmed printable ASCII, at most 80 bytes. Invalid optional values are dropped.

X-GitHits-Agent
string

Optional agent attribution: trimmed printable ASCII, at most 160 bytes. Invalid optional values are dropped.

X-GitHits-Session-ID
string

Optional session attribution: trimmed printable ASCII, at most 128 bytes. Invalid optional values are dropped; no session is created.

Path Parameters

registry
enum<string>
required

Canonical lowercase supported registry; nuget, maven and packagist are not supported by this endpoint.

Available options:
npm,
pypi,
hex,
crates,
vcpkg,
zig,
rubygems,
go,
swift
name
string
required

Package name: 1–255 UTF-8 bytes without control characters. Spelling and whitespace are preserved. Encode slashes as %2F within one path segment.

Minimum string length: 1

Query Parameters

version
string

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.

lifecycle
string
default:runtime

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.

max_depth
integer

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.

Required range: 1 <= x <= 10
fields
string
default:dependencies.direct,dependencies.groups

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

analysis
object
required

Applied scope retained independently of selected output groups.

dependencies
object
required

Only selected, available evidence groups are serialized.

package
object
required

Resolved root identity; all fields are mandatory.