---
title: "Get raw file content"
method: GET
path: "/repositories/{id}/blob/{blob_name}/{path}"
tags: ["repositories"]
---

# Get raw file content

`GET /repositories/{id}/blob/{blob_name}/{path}`

Returns raw file content from a Git repository at a given blob reference (commit SHA, tag, or branch). Use mode=raster&page=N to get a rasterized JPEG of a document page. Use mode=text&page=N to get extracted text from a document page. Use mode=text without page to get the page count.

## Path parameters

- `id` integer, required
- `blob_name` string, required
- `path` string, required

## Query parameters

- `lines` string
- `line_numbers` boolean
- `mode` string
- `page` integer

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/helixml/apis/kodit-api.md) · [All operations](https://skmtc.net/helixml/apis/kodit-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/helixml/kodit-api/versions/3f72fa58f3fb/schema)
