---
title: "Retrieve a blob from a repository"
method: GET
path: "/api/v4/projects/{id}/repository/blobs/{sha}"
tags: ["repositories"]
---

# Retrieve a blob from a repository

`GET /api/v4/projects/{id}/repository/blobs/{sha}`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/repository/blobs/{sha}`
- Auth: none declared

Retrieves information, such as size and content, about blobs in a repository. Blob content is Base64 encoded. This endpoint can be accessed without authentication, if the repository is publicly accessible.

## Path parameters

- `id` string, required
- `sha` string, required

## Response `200`

Retrieve a blob from a repository

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
