Skip to content

Get a file from a repository

GET
/repos/{owner}/{repo}/raw/{filepath}
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

filepath
required
string

Filepath of the file to get

ref
string

The name of the commit/branch/tag. Default the repository’s default branch (usually master)

Returns raw file content.

Media type application/octet-stream
file

APINotFound is a not found error response

Media type application/octet-stream
object
errors
Array<string>
message
string
url
string