APIs / GitHub / Repository Branches
GitHub: Repository Branches
Repository Branches from GitHub as JSON. 1 credit per successful call.
GET /v1/github/repository-branches
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 |
page | integer | Optional | Any |
per_page | integer | Optional | Any |
Example request
GitHub
GET/v1/github/repository-branches?owner=laravel&repo=framework
{
"search_parameters": {
"engine": "github_repository_branches",
"owner": "laravel",
"repo": "framework"
},
"branches": [
{
"name": "4.0",
"commit": {
"sha": "7be5f82453edb3db13c8b85d1769481200123f1e",
"url": "https://api.github.com/repos/laravel/framework/commits/7be5f82453edb3db13c8b85d1769481200123f1e"
},
"protected": true
},
{
"name": "4.1",
"commit": {
"sha": "2b092f8d12eb26929687c3ecfb13b626fba6fe6d",
"url": "https://api.github.com/repos/laravel/framework/commits/2b092f8d12eb26929687c3ecfb13b626fba6fe6d"
},
"protected": true
},
{
"name": "4.2",
"commit": {
"sha": "7d9e7068c49f945385673014d4cba4de28accd5e",
"url": "https://api.github.com/repos/laravel/framework/commits/7d9e7068c49f945385673014d4cba4de28accd5e"
},
"protected": true
}
],
"result_count": 30,
"rate_limit": {
"limit": 60,
"remaining": 59,
"used": 1,
"reset": 1794492549
}
}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 |
branches | object[] |
result_count | integer |
rate_limit | object |