APIs / GitHub / Repository Tree
GitHub: Repository Tree
Repository Tree from GitHub as JSON. 1 credit per successful call.
GET /v1/github/repository-tree
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 |
ref | string | Optional | Up to 255 characters |
recursive | boolean | Optional | Any |
Example request
GitHub
GET/v1/github/repository-tree?owner=laravel&repo=framework&recursive=1
{
"search_parameters": {
"engine": "github_repository_tree",
"owner": "laravel",
"repo": "framework",
"recursive": true
},
"tree": [
{
"path": ".agents",
"mode": "040000",
"type": "tree",
"sha": "7c18fe4c47d8c39771c3c109509709d0c034cb68",
"url": "https://api.github.com/repos/laravel/framework/git/trees/7c18fe4c47d8c39771c3c109509709d0c034cb68"
},
{
"path": ".agents/resume",
"mode": "100755",
"type": "blob",
"sha": "de8f89163868e219044454ec3233ba39170f2657",
"size": 188,
"url": "https://api.github.com/repos/laravel/framework/git/blobs/de8f89163868e219044454ec3233ba39170f2657"
},
{
"path": ".agents/setup",
"mode": "100755",
"type": "blob",
"sha": "6a28985252e33b32defe3eebf0e358cf2ab72d83",
"size": 2920,
"url": "https://api.github.com/repos/laravel/framework/git/blobs/6a28985252e33b32defe3eebf0e358cf2ab72d83"
}
],
"result_count": 4135,
"rate_limit": {
"limit": 60,
"remaining": 59,
"used": 1,
"reset": 1794492553
}
}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 4 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 |
tree | object[] |
result_count | integer |
rate_limit | object |