Skip to main content
POST
/
api
/
gitlab
/
projects
/
search
/gitlab/projects/search
curl --request POST \
  --url https://api.anysite.io/api/gitlab/projects/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "search": "<string>",
  "count": 2,
  "timeout": 300,
  "order_by": "star_count",
  "sort": "desc"
}
'
[
  {
    "id": 123,
    "alias": "<string>",
    "name": "<string>",
    "@type": "@gitlab_project",
    "name_with_namespace": "",
    "path": "",
    "description": "<string>",
    "default_branch": "",
    "visibility": "",
    "star_count": 0,
    "fork_count": 0,
    "open_issues_count": 0,
    "topics": [],
    "last_activity_at": "",
    "created_at": "",
    "web_url": "",
    "http_url_to_repo": "",
    "ssh_url_to_repo": "",
    "readme_url": "<string>",
    "image": "<string>",
    "license_url": "<string>",
    "namespace": {
      "id": 123,
      "@type": "@gitlab_namespace",
      "name": "",
      "path": "",
      "kind": "",
      "full_path": "",
      "parent_id": 123,
      "image": "<string>",
      "web_url": ""
    },
    "license": {
      "@type": "@gitlab_license",
      "key": "",
      "name": "",
      "nickname": "<string>",
      "html_url": "<string>"
    },
    "statistics": {
      "@type": "@gitlab_statistics",
      "commit_count": 0,
      "storage_size": 0,
      "repository_size": 0,
      "job_artifacts_size": 0,
      "lfs_objects_size": 0
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json

Search keyword to match against project name and path

Minimum string length: 1
count
integer
required

Number of projects to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
order_by
enum<string>
default:star_count

Sort projects by this field

Available options:
star_count,
created_at,
last_activity_at,
name
sort
enum<string>
default:desc

Sort order

Available options:
desc,
asc

Response

Successful Response

id
integer
required
alias
string
required
name
string
required
@type
string
default:@gitlab_project
name_with_namespace
string
default:""
path
string
default:""
description
string | null
default_branch
string
default:""
visibility
string
default:""
star_count
integer
default:0
fork_count
integer
default:0
open_issues_count
integer
default:0
topics
string[]
last_activity_at
string
default:""
created_at
string
default:""
web_url
string
default:""
http_url_to_repo
string
default:""
ssh_url_to_repo
string
default:""
readme_url
string | null
image
string | null
license_url
string | null
namespace
GitlabNamespace · object
license
GitlabLicense · object
statistics
GitlabStatistics · object