Retrieve file archive from a repository
GET
/api/v4/projects/{id}/repository/archive
Retrieves the file archive of a specified repository. This endpoint can be accessed without authentication if the repository is publicly accessible. For GitLab.com users, this endpoint has a rate limit threshold of 5 requests per minute.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”sha
string
The commit sha of the archive to be downloaded
Example
7d70e02340bac451f281cecf0a980907974bd8beref_type
string
Type of ref in sha, heads (branch) or tags (tag)
format
string
The archive format
Example
tar.gzpath
string
Subfolder of the repository to be downloaded
Example
files/archivesinclude_lfs_blobs
boolean
Used to exclude LFS objects from archive
exclude_paths
Array<string>
Comma-separated list of paths to exclude from the archive
Responses
Section titled “Responses”OK
Bad Request
Not Found