GitLab CI/CD search API

Operations about searches

Operations 3

GET /api/v4/groups/{id}/(-/)search Search on GitLab within a group #
GET /api/v4/projects/{id}/(-/)search Search on GitLab within a project #
GET /api/v4/search Search on GitLab #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/gitlab-ci-search-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

gitlab-ci-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitLab access_requests Search API
  version: v4
  description: Operations related to access requests
servers:
- url: https://gitlab.com
tags:
- name: search
  description: Operations about searches
paths:
  /api/v4/groups/{id}/(-/)search:
    get:
      summary: Search on GitLab within a group
      description: This feature was introduced in GitLab 10.5.
      parameters:
      - in: path
        name: id
        description: The ID or URL-encoded path of the group
        required: true
        schema:
          type: string
      - in: query
        name: search
        description: The expression it should be searched for
        required: true
        schema:
          type: string
      - in: query
        name: scope
        description: The scope of the search
        required: true
        schema:
          type: string
          enum:
          - wiki_blobs
          - blobs
          - commits
          - notes
          - projects
          - issues
          - work_items
          - merge_requests
          - milestones
          - users
      - in: query
        name: state
        description: Filter results by state
        required: false
        schema:
          type: string
          enum:
          - all
          - opened
          - closed
          - merged
      - in: query
        name: confidential
        description: Filter results by confidentiality
        required: false
        schema:
          type: boolean
      - in: query
        name: type
        description: 'Filter work items by type. Only applies to work_items scope. Available types: issue, task, epic, incident, test_case, requirement, objective, key_result, ticket.'
        required: false
        schema:
          type: array
          items:
            type: string
      - in: query
        name: include_archived
        description: Includes archived projects in the search. Introduced in GitLab 18.9.
        required: false
        schema:
          type: boolean
          default: false
      - in: query
        name: fields
        description: Array of fields you wish to search. Available with advanced search.
        required: false
        schema:
          type: array
          items:
            type: string
            enum:
            - title
      - in: query
        name: exclude_forks
        description: Excludes forked projects in the search. Available with exact code search. Introduced in GitLab 18.9.
        required: false
        schema:
          type: boolean
      - in: query
        name: num_context_lines
        description: Number of context lines around each match. Available with advanced and exact code search. Introduced in GitLab 18.11.
        required: false
        schema:
          type: integer
          format: int32
          maximum: 20
          minimum: 0
      - in: query
        name: regex
        description: Performs a regex code search. Available with exact code search. Introduced in GitLab 18.9
        required: false
        schema:
          type: boolean
      - in: query
        name: page
        description: Current page number
        required: false
        example: 1
        schema:
          type: integer
          format: int32
          default: 1
      - in: query
        name: per_page
        description: Number of items per page
        required: false
        example: 20
        schema:
          type: integer
          format: int32
          default: 20
      responses:
        '200':
          description: Search on GitLab within a group
      tags:
      - search
      operationId: getApiV4GroupsId(-)search
  /api/v4/projects/{id}/(-/)search:
    get:
      summary: Search on GitLab within a project
      description: This feature was introduced in GitLab 10.5.
      parameters:
      - in: path
        name: id
        description: The ID or URL-encoded path of the project
        required: true
        schema:
          type: string
      - in: query
        name: search
        description: The expression it should be searched for
        required: true
        schema:
          type: string
      - in: query
        name: scope
        description: The scope of the search
        required: true
        schema:
          type: string
          enum:
          - issues
          - work_items
          - merge_requests
          - milestones
          - notes
          - wiki_blobs
          - commits
          - blobs
          - users
      - in: query
        name: ref
        description: The name of a repository branch or tag. If not given, the default branch is used
        required: false
        schema:
          type: string
      - in: query
        name: state
        description: Filter results by state
        required: false
        schema:
          type: string
          enum:
          - all
          - opened
          - closed
          - merged
      - in: query
        name: confidential
        description: Filter results by confidentiality
        required: false
        schema:
          type: boolean
      - in: query
        name: type
        description: 'Filter work items by type. Only applies to work_items scope. Available types: issue, task, epic, incident, test_case, requirement, objective, key_result, ticket.'
        required: false
        schema:
          type: array
          items:
            type: string
      - in: query
        name: fields
        description: Array of fields you wish to search. Available with advanced search.
        required: false
        schema:
          type: array
          items:
            type: string
            enum:
            - title
      - in: query
        name: num_context_lines
        description: Number of context lines around each match. Available with advanced and exact code search. Introduced in GitLab 18.11.
        required: false
        schema:
          type: integer
          format: int32
          maximum: 20
          minimum: 0
      - in: query
        name: regex
        description: Performs a regex code search. Available with exact code search. Introduced in GitLab 18.9
        required: false
        schema:
          type: boolean
      - in: query
        name: page
        description: Current page number
        required: false
        example: 1
        schema:
          type: integer
          format: int32
          default: 1
      - in: query
        name: per_page
        description: Number of items per page
        required: false
        example: 20
        schema:
          type: integer
          format: int32
          default: 20
      responses:
        '200':
          description: Search on GitLab within a project
      tags:
      - search
      operationId: getApiV4ProjectsId(-)search
  /api/v4/search:
    get:
      summary: Search on GitLab
      description: This feature was introduced in GitLab 10.5.
      parameters:
      - in: query
        name: search
        description: The expression it should be searched for
        required: true
        schema:
          type: string
      - in: query
        name: scope
        description: The scope of the search
        required: true
        schema:
          type: string
          enum:
          - wiki_blobs
          - blobs
          - commits
          - notes
          - projects
          - issues
          - work_items
          - merge_requests
          - milestones
          - snippet_titles
          - users
      - in: query
        name: state
        description: Filter results by state
        required: false
        schema:
          type: string
          enum:
          - all
          - opened
          - closed
          - merged
      - in: query
        name: confidential
        description: Filter results by confidentiality
        required: false
        schema:
          type: boolean
      - in: query
        name: type
        description: 'Filter work items by type. Only applies to work_items scope. Available types: issue, task, epic, incident, test_case, requirement, objective, key_result, ticket.'
        required: false
        schema:
          type: array
          items:
            type: string
      - in: query
        name: include_archived
        description: Includes archived projects in the search. Introduced in GitLab 18.9.
        required: false
        schema:
          type: boolean
          default: false
      - in: query
        name: fields
        description: Array of fields you wish to search. Available with advanced search.
        required: false
        schema:
          type: array
          items:
            type: string
            enum:
            - title
      - in: query
        name: exclude_forks
        description: Excludes forked projects in the search. Available with exact code search. Introduced in GitLab 18.9.
        required: false
        schema:
          type: boolean
      - in: query
        name: num_context_lines
        description: Number of context lines around each match. Available with advanced and exact code search. Introduced in GitLab 18.11.
        required: false
        schema:
          type: integer
          format: int32
          maximum: 20
          minimum: 0
      - in: query
        name: regex
        description: Performs a regex code search. Available with exact code search. Introduced in GitLab 18.9
        required: false
        schema:
          type: boolean
      - in: query
        name: page
        description: Current page number
        required: false
        example: 1
        schema:
          type: integer
          format: int32
          default: 1
      - in: query
        name: per_page
        description: Number of items per page
        required: false
        example: 20
        schema:
          type: integer
          format: int32
          default: 20
      responses:
        '200':
          description: Search on GitLab
      tags:
      - search
      operationId: getApiV4Search
components:
  securitySchemes:
    access_token_header:
      type: apiKey
      name: PRIVATE-TOKEN
      in: header
    access_token_query:
      type: apiKey
      name: private_token
      in: query