GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsIdRepositoryArchive

AI-generated

Summary

Download an archive of a GitLab project's repository at a specified commit and in a chosen format.

Inputs

  • id (required) — The ID or URL-encoded path of the project whose repository archive to download.
  • sha — The commit SHA identifying the specific state of the repository to archive.
  • format — The archive format (e.g., tar.gz) to download.
  • path — A subfolder path within the repository to download instead of the whole repository.
  • include_lfs_blobs — Whether to include Large File Storage (LFS) objects in the archive; defaults to true if not specified.

Output shape

a binary file stream containing the repository archive

The output is the raw archive file matching the requested format. No pagination or additional metadata is returned. Authentication is required unless explicitly skipped.

Links

Discussion