/v1/project/branches
Branches
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/gitlab-api/v1/project/branches" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gitlab-api/v1/project/branches", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gitlab-api/v1/project/branches");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/gitlab-api/v1/project/branches",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": [
{
"name": "#1404-scawood-duomerge-links",
"commit": {
"id": "1f23260d6e25274aa012107fe003d4ba0c65e116",
"title": "Remove repeated links to Claude LLM",
"message": "Remove repeated links to Claude LLM",
"web_url": "https://gitlab.com/gitlab-org/gitlab/-/commit/1f23260d6e25274aa012107fe003d4ba0c65e116",
"short_id": "1f23260d",
"trailers": [],
"created_at": "2025-09-02T10:52:43.000-07:00",
"parent_ids": [
"19986ff62116c4d6ca7f380170d8cdc397f7442a"
],
"author_name": "Steve Cawood",
"author_email": "[email protected]",
"authored_date": "2025-09-02T10:52:43.000-07:00",
"committed_date": "2025-09-02T10:52:43.000-07:00",
"committer_name": "GitLab",
"committer_email": "[email protected]",
"extended_trailers": []
},
"merged": false,
"default": false,
"web_url": "https://gitlab.com/gitlab-org/gitlab/-/tree/%231404-scawood-duomerge-links",
"can_push": false,
"protected": false,
"developers_can_push": false,
"developers_can_merge": false
},
{
"name": "#17126-saved-views-backend-poc",
"commit": {
"id": "c4b259215634320c14839308d01ae473d3f208ec",
"title": "Add migration / API skeleton",
"message": "Add migration / API skeleton\n",
"web_url": "https://gitlab.com/gitlab-org/gitlab/-/commit/c4b259215634320c14839308d01ae473d3f208ec",
"short_id": "c4b25921",
"trailers": [],
"created_at": "2025-11-17T14:14:44.000+10:30",
"parent_ids": [
"d2a6d228219e5f13179a93e0647586d73078adf3"
],
"author_name": "Matt D'Angelo",
"author_email": "[email protected]",
"authored_date": "2025-11-17T14:13:20.000+10:30",
"committed_date": "2025-11-17T14:14:44.000+10:30",
"committer_name": "Matt D'Angelo",
"committer_email": "[email protected]",
"extended_trailers": []
},
"merged": false,
"default": false,
"web_url": "https://gitlab.com/gitlab-org/gitlab/-/tree/%2317126-saved-views-backend-poc",
"can_push": false,
"protected": false,
"developers_can_push": false,
"developers_can_merge": false
},
{
"name": "#1775-scawood-sast-prereq",
"commit": {
"id": "28af2bc98d1f04d3dafe19d47b896f553d7a67de",
"title": "Add a prerequisites for SAST scanning",
"message": "Add a prerequisites for SAS
…