GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdRepositoryBlobsSha

AI-generated

Summary

Retrieve the raw blob data from a project's repository at a specific commit SHA in GitLab via the API.

Inputs

  • Id (required) — The ID or URL-encoded path of the target GitLab project.
  • Sha (required) — The commit hash identifying the specific commit from which to fetch the blob.
  • Skip Authentication — Whether to skip authentication (false by default).
  • Method — HTTP method to use; default is GET (typically GET is used for this operation).
  • baseUrl — Base URL of the GitLab instance; defaults to https://gitlab.com.

Output shape

A single record containing the raw blob data corresponding to the specified commit SHA within the project repository.

Returns the blob content from the path /api/v4/projects/{id}/repository/blobs/{sha} via the GitLab API; authentication is used unless skipped. The operation requires specifying both project ID/path and commit SHA. No pagination or multiple records are produced.

Links

Discussion