APIs / GitHub / Repository Raw File
GitHub: Repository Raw File
Repository Raw File from GitHub as JSON. 1 credit per successful call.
GET /v1/github/repository-raw-file
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
owner | string | Required | Up to 39 characters |
repo | string | Required | Up to 100 characters |
path | string | Required | Up to 400 characters |
ref | string | Required | Up to 255 characters |
Example request
GitHub
GET/v1/github/repository-raw-file?owner=laravel&repo=framework&ref=13.x&path=README.md
{
"search_parameters": {
"engine": "github_repository_raw_file",
"owner": "laravel",
"repo": "framework",
"path": "README.md",
"ref": "13.x"
},
"repository": "laravel/framework",
"ref": "13.x",
"path": "README.md",
"content": "<p align=\"center\"><a href=\"https://laravel.com\" target=\"_blank\"><img src=\"https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg\" width=\"400\"></a></p>\n\n<p align=\"ce…",
"size": 3854,
"truncated": false
}200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
The response has these 7 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
search_parameters | object |
repository | string |
ref | string |
path | string |
content | string |
size | integer |
truncated | boolean |