APIs / GitLab / Search projects

GitLab: Search projects

Public projects on GitLab.com matching a query, with stars, forks, topics and last activity.

GET /v1/gitlab/projects-search

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
querystringRequiredUp to 200 characters
Words to match in the project name or path.
order_bystringOptionalstar_count, last_activity_at, created_at, name
Sort field. Default star_count.
sortstringOptionaldesc, asc
Sort direction. Default desc.
pageintegerOptionalAny
Results page, from 1.
per_pageintegerOptionalAny
Results per page, 1 to 100. Default 20.

Example request

GitLab
GET/v1/gitlab/projects-search?query=terraform&per_page=10
{
  "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
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in data.items has these 14 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
idinteger
pathstring
namestring
descriptionstring
starsinteger
forksinteger
default_branchstring
visibilitystring
created_atstring
last_activity_atstring
urlurl
avatar_urlurl
namespaceobject
topicsstring[]