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

Registry that publishes the package, such as npm or pypi. Use a lowercase identifier from the supported values.

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

Name of the package in its registry. Encode a scoped name as one path segment, for example %40scope%2Fpackage. Accepts 1–255 UTF-8 bytes without control characters; spelling and whitespace are preserved.

Query Parameters

version
string

Release to inspect: an exact published version or a constraint supported by the registry. Omit for the registry’s current release. Leading and trailing whitespace is removed; blank means omitted. Numeric Go versions gain lowercase v; other prefixed versions pass through to resolution. The normalized value allows up to 100 UTF-8 bytes without control characters. Encode a literal + as %2B, for example v2.0.0%2Bincompatible.

fields
string
default:package,selected_version

Response groups to include, separated by commas. Defaults to package,selected_version; an explicit selection replaces these defaults. Package identity and selected-release identity are always returned. Selecting recent vulnerabilities also includes security counts; selecting a changelog body also includes its release metadata. Unselected groups are omitted. Selected nullable fields are null when unavailable.

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

Resolved package and release facts with selected optional groups.

One inspected release with selected package-wide and release-specific facts.

package
object
required

Canonical package identity and selected package-wide metadata.

selected_version
object
required

The concrete release inspected by this request.

security
null | object

Selected security facts; omitted when unselected and null when unavailable.