Get raw file contents by blob SHA
One step with GitLab. We can help you get access.
Look something up
Get raw file contents by blob SHA
with GitLab
Works with AI assistants
Use GitLab: its GitLab REST Repositories API lets you get raw file contents by blob SHA in a single step (GET /api/v4/projects/{id}/repository/blobs/{sha}/raw). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I download the raw content of a file from a GitLab repo by its blob SHA?
- Can I fetch a single file's raw bytes without its name?
Say it to your AI assistant
- Get the raw content of blob {sha} in project {id}.
- Download file {sha} from {id} as raw bytes.
For your developer
GET /api/v4/projects/{id}/repository/blobs/{sha}/raw in GitLab REST Repositories API. Full spec on APIs.io.