Get raw file content
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
Repository ID
Commit SHA, tag name, or branch name
File path within the repository
Query parameters
Line ranges to extract (e.g. L17-L26,L45,L55-L90)
Prefix each line with its 1-based line number
Output mode: 'raster' returns a JPEG image of the page, 'text' returns extracted text
1-based page number (required when mode=raster, optional for mode=text)
Response
OK
Changes
Changed in 5 of the 14 revisions of this API.412
- ○
added the media type
application/jsonfor the response with the status400response-media-type-added
- ○
added the media type
application/jsonfor the response with the status404response-media-type-added
- ○
added the media type
application/jsonfor the response with the status500response-media-type-added
- ○
- ▲
removed the media type
image/pngfor the response with the status400response-media-type-removed
- ▲
removed the media type
image/pngfor the response with the status404response-media-type-removed
- ▲
removed the media type
image/pngfor the response with the status500response-media-type-removed
- ○
added the media type
image/jpegfor the response with the status400response-media-type-added
- ○
added the media type
image/jpegfor the response with the status404response-media-type-added
- ○
added the media type
image/jpegfor the response with the status500response-media-type-added
- ▲
- ○
added the new optional
queryrequest parametermodenew-optional-request-parameter
- ○
added the new optional
queryrequest parameterpagenew-optional-request-parameter
- ○
added the media type
image/pngfor the response with the status400response-media-type-added
- ○
added the media type
image/pngfor the response with the status404response-media-type-added
- ○
added the media type
image/pngfor the response with the status500response-media-type-added
- ○
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 39 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲