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

page_id
string
required

Page identifier or docs_read_target returned by documentation listing or search. Percent-encode the complete value as one path segment; it is decoded exactly once. For example, a token containing a%2Fb must contain a%252Fb in the request path. Pass the returned value unchanged before encoding.

Query Parameters

fields
string
default:metadata,content

Response groups to include: metadata and content, both selected by default. Explicit selection replaces defaults. No subfields or wildcards are supported. Line ranges require content. Selection and line ranges reduce response size, but do not reduce upstream retrieval of the full page.

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.

start_line
integer
default:1

Positive decimal integer, default 1. Requires selected content; start beyond EOF returns empty interval with end=start-1.

Required range: x >= 1
end_line
integer

Last line to read, inclusive. Must be at least start_line; end_line=0 is invalid. Omit to read through the end of the page. Values beyond the end are clamped. Requires content selection.

Required range: x >= 1

Response

Existing page with selected data groups

A page with mandatory exact identity and source; omitted groups are absent.

docs_read_target
string
required

Exact input token for a subsequent read, encoded as one path segment.

id
string
required

Opaque source-reported page ID; never reconstruct or parse it.

source
object
required

Mandatory source attribution and exact repository locator when applicable.

content
object

Atomic content and returned range; absent when unselected.

metadata
object

Atomic descriptive metadata and best-effort owner; absent when unselected.