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

# Retrieve raw blob content

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

## Request

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

Retrieves the raw file contents for a blob, by blob SHA. This endpoint can be accessed without authentication if the repository is publicly accessible.

## Path parameters

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

## Response `200`

Retrieve raw blob content

---

[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)
