This article describes how the integration connects to GitLab through its REST API to fetch project data. It covers the base URL, a sample authenticated request, the API endpoints used, and the rate limits that apply to those calls.
All API requests are made to the following base URL:
https://gitlab.com
Self-hosted GitLab instances use their own base URL (for example, https://gitlab.yourcompany.com).
The following request lists projects the authenticated user is a member of, returning up to 100 results per page.
curl --location 'https://gitlab.com/api/v4/projects?membership=true&per_page=100' \ --header 'PRIVATE-TOKEN: glpat-xxxxxxxxxxxxxxxxxx' \ --header 'Cookie: _cfuvid=.po9WoGqMtlPiLtQbGNxX..xy6mMLraxQ5UckLvA8WY-1779039860.6197002-1.0.1.1-qHfjJbifwQEDtFS_c7e1ZTItF1pNPmXqAG2FxfO1H_k'
Object Type | API Endpoint |
|---|---|
Merge Requests |
|
Merge Request Comments |
|
Issues |
|
Commits |
|
Repository Tree |
|
Raw File Content |
|
Wikis |
|
Wiki Page Content |
|
GitLab APIs enforce rate limits to prevent abuse and ensure platform stability.
The following limits are enforced by GitLab:
Limit Type | Threshold | Time Window | HTTP Status on Exceed |
|---|---|---|---|
Authenticated requests | 2,000 | 1 minute | 429 Too Many Requests |
Unauthenticated requests | 10 | 1 minute | 429 Too Many Requests |
Note: Self-hosted GitLab instances may have different rate limits configured by administrators.
Rate limits are applied per user for authenticated requests. All API calls using the same API token contribute to the same rate limit bucket.