---
title: "Search on GitLab within a group"
method: GET
path: "/api/v4/groups/{id}/(-/)search"
tags: ["search"]
---

# Search on GitLab within a group

`GET /api/v4/groups/{id}/(-/)search`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/groups/{id}/(-/)search`
- Auth: none declared

This feature was introduced in GitLab 10.5.

## Path parameters

- `id` string, required

## Query parameters

- `search` string, required
- `scope` 'wiki_blobs' | 'blobs' | 'commits' | 'notes' | 'projects' | 'issues' | 'work_items' | 'merge_requests' | 'milestones' | 'users', required
- `state` 'all' | 'opened' | 'closed' | 'merged'
- `confidential` boolean
- `type` string[]
- `include_archived` boolean
- `fields` string[]
- `exclude_forks` boolean
- `num_context_lines` integer
- `regex` boolean
- `page` integer
- `per_page` integer

## Response `200`

Search on GitLab within a group

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
