Skip to main content
GET
Send a browser to a file's bytes

Path Parameters

owner
string
required
Example:

"patch"

slug
string
required
Example:

"demo-mod"

Query Parameters

ref
string

A branch, a tag or a full commit hash: the default branch unless you say. A branch comes before a tag of the same name, and refs/tags/v1 says which.

Pattern: ^\S{1,255}$
Example:

"main"

path
string
required

A file in the repo, from its top

Required string length: 1 - 4096
Example:

"docs/guide.md"

Response

To the file on the git host