v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
repository

Gets the blob of a repository.

get/repos/{owner}/{repo}/git/blobs/{sha}

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

shastring required

sha of the commit

Response

GitBlobResponse

contentstring

The content of the git blob (may be base64 encoded)

encodingstring

The encoding used for the content (e.g., "base64")

lfs_oidstring

The LFS object ID if this blob is stored in LFS

lfs_sizeinteger

The size of the LFS object if this blob is stored in LFS

shastring

The SHA hash of the git blob

sizeinteger

The size of the git blob in bytes

urlstring

The URL to access this git blob