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

# Get a git blob

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

Returns the content of a git blob object, base64 encoded.

## Path parameters

- `owner` string, required
- `repo` string, required
- `sha` string, required

## Response `200`

Success

- GitBlob
  - `content` string — Base64-encoded blob content
  - `encoding` string
  - `url` string
  - `sha` string
  - `size` integer

## Other responses

- `404` — Blob not found.

---

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