---
title: "Get a blob"
method: GET
path: "/repos/{owner}/{repo}/git/blobs/{file_sha}"
tags: ["git"]
---

# Get a blob

`GET /repos/{owner}/{repo}/git/blobs/{file_sha}`

The `content` in the response will always be Base64 encoded.

_Note_: This API supports blobs up to 100 megabytes in size.

## Path parameters

- `owner` string, required
- `repo` string, required
- `file_sha` string, required

## Response `200`

Response

- Blob — Blob
  - `content` string, required
  - `encoding` string, required
  - `url` string, uri, required
  - `sha` string, required
  - `size` integer, nullable, required
  - `node_id` string, required
  - `highlighted_content` string

## Other responses

- `403` — Forbidden
- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.net/github/apis/ghes.md) · [All operations](https://skmtc.net/github/apis/ghes/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/ghes/revisions/ee6c7a46328e/schema)
