APIs / Apps and media / GitLab
1 credit per call5 endpoints13 datapointsChecked working 6 Dec 2026
GitLab API
GitLab API for public project search, project details, releases and group or user projects on GitLab.com as JSON. 1 credit per successful call.
{
"success": true,
"data": {
"page": 1,
"has_more": true,
"count": 10,
"items": [
{
"id": 14292404,
"path": "gitlab-org/gitlab-environment-toolkit",
"name": "GitLab Environment Toolkit",
"description": "The GitLab Environment Toolkit (`GET`) is a set of opinionated [Terraform](https://www.terraform.io/) and [Ansible](https://www.ansible.com/) scripts to assist with deploying scaled GitLab environments following the [Reference Architectures…",
"stars": 279,
"forks": 373,
"default_branch": "main",
"visibility": "public",
"created_at": "2019-09-13T12:52:36.365Z",
"last_activity_at": "2026-12-01T06:10:51.765Z",
"url": "https://gitlab.com/gitlab-org/gitlab-environment-toolkit",
"avatar_url": "https://gitlab.com/uploads/-/system/project/avatar/14292404/tanuki-blueprint.png?v=1796105451",
"namespace": {
"name": "GitLab.org",
"path": "gitlab-org",
"kind": "group"
}
},
{
"id": 18943607,
"path": "gitlab-org/terraform-images",
"name": "Terraform Images",
"description": "Terraform images for GitLab CI",
"stars": 169,
"forks": 364,
"topics": [
"hacktoberfest"
],
"default_branch": "master",
"visibility": "public",
"created_at": "2020-05-22T20:10:05.491Z",
"last_activity_at": "2026-11-19T18:26:50.220Z",
"url": "https://gitlab.com/gitlab-org/terraform-images",
"namespace": {
"name": "GitLab.org",
"path": "gitlab-org",
"kind": "group"
}
},
{
"id": 40916776,
"path": "gitlab-org/terraform-provider-gitlab",
"name": "GitLab Terraform Provider",
"description": "Official GitLab Terraform Provider. ",
"stars": 130,
"forks": 355,
"topics": [
"hacktoberfest",
"infrastructure as code",
"terraform"
],
"default_branch": "main",
"visibility": "public",
"created_at": "2022-11-09T12:12:48.760Z",
"last_activity_at": "2026-12-01T08:53:35.809Z",
"url": "https://gitlab.com/gitlab-org/terraform-provider-gitlab",
"avatar_url": "https://gitlab.com/uploads/-/system/project/avatar/40916776/gitlab_configure_group_logo.png?v=1796115215",
"namespace": {
"name": "GitLab.org",
"path": "gitlab-org",
"kind": "group"
}
}
]
},
"meta": {
"request_id": "req_d2895f23828c494f8e6db1a5c0325b5c",
"credits_charged": 1,
"credits_remaining": 1998
}
}Sample data
What one call returns
A recorded run of projects-search: the fields and shapes you will get, shortened to 3 items.
| # | idinteger | pathstring | namestring | descriptionstring | starsinteger | forksinteger | default_branchstring | visibilitystring | created_atstring | last_activity_atstring | urlurl | avatar_urlurl | namespaceobject |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 14292404 | gitlab-org/gitlab-environment-toolkit | GitLab Environment Toolkit | The GitLab Environment Toolkit (`GET`) is a set of opinionated [Terraform](https://www.terraform.io/) and [Ansible](https://www.ansible.com/) scripts to assist with deploying scaled GitLab environments following the [Reference Architectures… | 279 | 373 | main | public | 2019-09-13T12:52:36.365Z | 2026-12-01T06:10:51.765Z | https://gitlab.com/gitlab-org/gitlab-environment-toolkit | https://gitlab.com/uploads/-/system/project/avatar/14292404/tanuki-blueprint.png?v=1796105451 | {3 fields} |
| 2 | 18943607 | gitlab-org/terraform-images | Terraform Images | Terraform images for GitLab CI | 169 | 364 | master | public | 2020-05-22T20:10:05.491Z | 2026-11-19T18:26:50.220Z | https://gitlab.com/gitlab-org/terraform-images | — | {3 fields} |
| 3 | 40916776 | gitlab-org/terraform-provider-gitlab | GitLab Terraform Provider | Official GitLab Terraform Provider. | 130 | 355 | main | public | 2022-11-09T12:12:48.760Z | 2026-12-01T08:53:35.809Z | https://gitlab.com/gitlab-org/terraform-provider-gitlab | https://gitlab.com/uploads/-/system/project/avatar/40916776/gitlab_configure_group_logo.png?v=1796115215 | {3 fields} |
[
{
"id": 14292404,
"path": "gitlab-org/gitlab-environment-toolkit",
"name": "GitLab Environment Toolkit",
"description": "The GitLab Environment Toolkit (`GET`) is a set of opinionated [Terraform](https://www.terraform.io/) and [Ansible](https://www.ansible.com/) scripts to assist with deploying scaled GitLab environments following the [Reference Architectures…",
"stars": 279,
"forks": 373,
"default_branch": "main",
"visibility": "public",
"created_at": "2019-09-13T12:52:36.365Z",
"last_activity_at": "2026-12-01T06:10:51.765Z",
"url": "https://gitlab.com/gitlab-org/gitlab-environment-toolkit",
"avatar_url": "https://gitlab.com/uploads/-/system/project/avatar/14292404/tanuki-blueprint.png?v=1796105451",
"namespace": {
"name": "GitLab.org",
"path": "gitlab-org",
"kind": "group"
}
},
{
"id": 18943607,
"path": "gitlab-org/terraform-images",
"name": "Terraform Images",
"description": "Terraform images for GitLab CI",
"stars": 169,
"forks": 364,
"topics": [
"hacktoberfest"
],
"default_branch": "master",
"visibility": "public",
"created_at": "2020-05-22T20:10:05.491Z",
"last_activity_at": "2026-11-19T18:26:50.220Z",
"url": "https://gitlab.com/gitlab-org/terraform-images",
"namespace": {
"name": "GitLab.org",
"path": "gitlab-org",
"kind": "group"
}
},
{
"id": 40916776,
"path": "gitlab-org/terraform-provider-gitlab",
"name": "GitLab Terraform Provider",
"description": "Official GitLab Terraform Provider. ",
"stars": 130,
"forks": 355,
"topics": [
"hacktoberfest",
"infrastructure as code",
"terraform"
],
"default_branch": "main",
"visibility": "public",
"created_at": "2022-11-09T12:12:48.760Z",
"last_activity_at": "2026-12-01T08:53:35.809Z",
"url": "https://gitlab.com/gitlab-org/terraform-provider-gitlab",
"avatar_url": "https://gitlab.com/uploads/-/system/project/avatar/40916776/gitlab_configure_group_logo.png?v=1796115215",
"namespace": {
"name": "GitLab.org",
"path": "gitlab-org",
"kind": "group"
}
}
]id,path,name,description,stars,forks,default_branch,visibility,created_at,last_activity_at,url,avatar_url,namespace
14292404,gitlab-org/gitlab-environment-toolkit,GitLab Environment Toolkit,The GitLab Environment Toolkit (`GET`) is a set of opinionated [Terraform](https://www.terraform.io/) and [Ansible](https://www.ansible.com/) scripts to assist with deploying scaled GitLab environments following the [Reference Architectures…,279,373,main,public,2019-09-13T12:52:36.365Z,2026-12-01T06:10:51.765Z,https://gitlab.com/gitlab-org/gitlab-environment-toolkit,https://gitlab.com/uploads/-/system/project/avatar/14292404/tanuki-blueprint.png?v=1796105451,"{""name"":""GitLab.org"",""path"":""gitlab-org"",""kind"":""group""}"
18943607,gitlab-org/terraform-images,Terraform Images,Terraform images for GitLab CI,169,364,master,public,2020-05-22T20:10:05.491Z,2026-11-19T18:26:50.220Z,https://gitlab.com/gitlab-org/terraform-images,,"{""name"":""GitLab.org"",""path"":""gitlab-org"",""kind"":""group""}"
40916776,gitlab-org/terraform-provider-gitlab,GitLab Terraform Provider,Official GitLab Terraform Provider. ,130,355,main,public,2022-11-09T12:12:48.760Z,2026-12-01T08:53:35.809Z,https://gitlab.com/gitlab-org/terraform-provider-gitlab,https://gitlab.com/uploads/-/system/project/avatar/40916776/gitlab_configure_group_logo.png?v=1796115215,"{""name"":""GitLab.org"",""path"":""gitlab-org"",""kind"":""group""}"Recorded from our API · 3 items shown · 13 datapoints per itemGET /v1/gitlab/projects-search?query=terraform&per_page=10
13 datapoints
Identity
- idinteger
- namestring
- namespaceobject
Contact
- urlurl
- avatar_urlurl
Reputation
- starsinteger
Other
- pathstring
- descriptionstring
- forksinteger
- default_branchstring
- visibilitystring
- created_atstring
- last_activity_atstring
Playground
Run this API
curl "https://api.perceptlayer.com/v1/gitlab/projects-search?query=terraform&per_page=10" \
-H "X-API-Key: $API_KEY"GitLab · 5 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/gitlab/group-projects | group+4 optional | idpathnamedescriptionstarsforks+8 more | 1 credit |
GET/v1/gitlab/project | id | idpathnamedescriptionstarsforks+11 more | 1 credit |
GET/v1/gitlab/projects-search | query+4 optional | idpathnamedescriptionstarsforks+8 more | 1 credit |
GET/v1/gitlab/releases | id+2 optional | tagnamereleased_atcreated_atupcomingnotes+5 more | 1 credit |
GET/v1/gitlab/user-projects | username+3 optional | idpathnamedescriptionstarsforks+7 more | 1 credit |
Overview
About the GitLab API
What you can get
The GitLab API returns public project data from GitLab.com as JSON through 5 endpoints. Sort fields are star_count, last_activity_at, created_at or name, and lists page with page and per_page (1 to 100).
- Search:
projects-searchtakes aquery, withorder_by,sort(desc or asc),pageandper_page. - Projects:
projecttakes anid, either a path such asgitlab-org/gitlab-runneror a numeric id. - Releases:
releasestakes a projectid, withpageandper_page, newest first. - Groups and users:
group-projectstakes agrouppath (a subgroup such asgitlab-org/ci-cdworks too), withinclude_subgroups,order_by,pageandper_page.user-projectstakes ausername, withorder_by,pageandper_page.
The recorded projects-search for "terraform" returns items, each with id, path, name, description, stars, forks, topics, default_branch, visibility, created_at, last_activity_at, url, avatar_url and namespace, plus page and has_more. The top result, gitlab-org/gitlab-environment-toolkit, had 279 stars and 373 forks. project adds license, readme_url and clone_url.
How a call works
Search, then look up: GET /v1/gitlab/projects-search?query=terraform&per_page=10 with your key in the X-API-Key header returns each project's path; pass it as id to project or releases, for example GET /v1/gitlab/releases?id=gitlab-org/gitlab-runner&per_page=5. A project's namespace.path goes to group-projects as group, or to user-projects as username when namespace.kind is user. Check has_more before asking for the next page; group-projects, user-projects and releases also report a total (299 releases for gitlab-org/gitlab-runner in the recording). Answers come from a cache for up to an hour, so stars and last activity can be up to an hour old. Every successful call costs 1 credit; failed calls cost nothing.
More apps and media APIs
Use cases
Track new releases of the GitLab-hosted tools you depend on, with tag, date and notes
Use the GitLab API to track new releases of the GitLab-hosted tools you depend on, with tag, date and notesList every public project in a group, ranked by stars or recent activity
Use the GitLab API to list every public project in a group, ranked by stars or recent activityFind GitLab projects on a topic and compare stars, forks and last activity
Use the GitLab API to find GitLab projects on a topic and compare stars, forks and last activityCheck a project's licence and default branch before adopting it
Use the GitLab API to check a project's licence and default branch before adopting itFAQ
Questions
How much does the GitLab API cost?
Each successful call costs one credit, and each page of results is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.
Which projects does it cover?
Public projects on GitLab.com only. Private and internal projects, and self-managed GitLab instances, are not covered.
Is there a user profile endpoint?
No. `user-projects` returns a `user` block with `id`, `username`, `name`, `state`, `avatar_url` and `url` next to that user's public projects (22 for `sytses` in the recording), but there is no separate profile endpoint.
Do I need a GitLab account?
No. You call this GitLab API with your Perceptlayer key in the `X-API-Key` header, with no GitLab login or token.
Is this the official GitLab API?
No. Perceptlayer is an independent service and is not affiliated with GitLab. It returns GitLab data as JSON with a Perceptlayer key, so there is no GitLab developer account, app review or partner approval to get first. It only reads data: if GitLab has an official API and you need to act on your own GitLab account, such as posting, managing orders or reading private data, use that one.
Should I build a GitLab scraper instead?
You can, but a GitLab scraper is code you maintain: page changes break it, requests get blocked, and GitLab's terms govern how you collect data. The GitLab API gives you 5 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.
Try the GitLab API with 100 free credits
No credit card. Failed calls are never billed.