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

Exact lowercase registry identifier; no trimming or case normalization.

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

Nonempty package name, at most 255 UTF-8 bytes without control characters. Spelling and whitespace are preserved; the response reports the resolved canonical name. Encode slashes within one path segment.

Minimum string length: 1

Query Parameters

version
string

Optional package version. Whitespace is trimmed; blank is treated as omitted. GitHits resolves an omitted version. Numeric Go versions gain lowercase v; leading v/V is accepted for resolution. The returned version may differ from the input.

limit
integer
default:100

Maximum returned rows, default 100, integer 1–500. Does not bound upstream preparation work.

Required range: 1 <= x <= 500
after
string

Opaque trimmed nonblank cursor, passed unchanged. Not snapshot-bound; upstream may reset malformed tokens to zero.

Minimum string length: 1

Response

One page of documentation summaries and source lifecycle

One page of source-owned documentation summaries, with no global readiness assertion.

code_index_state
enum<string>
required

Repository corpus lifecycle only; current does not assert hosted readiness.

Available options:
current,
stale,
provisional,
indexing,
pending,
failed,
not_found,
unresolvable
indexing_ref
string | null
required

Source-owned opaque listing preparation/progress reference; null when unavailable. Context only, not a search_ref or an advertised REST progress route.

package
object
required

Required resolved package identity and version.

page_info
object
required

Current source pagination context, not a stable snapshot.

pages
object[]
required

Complete atomic page summaries. Empty alone does not prove documentation is ready or absent.

A documentation page summary with its read target. Repository pages include exact repository locators.

stale
boolean
required

Hosted documentation freshness only; does not describe repository evidence.

target_resolution
null | object
required

Requested/resolved/served repository provenance; null when unavailable.