---
ai:
  exclude: true
search:
  tags:
    - projects
    - GET
seo:
  description: >-
    Returns a list of projects visible to the user… Reference for the GET
    /api/2/projects/picker endpoint in the Jira Software Data Center REST API
    Reference.
sidebar:
  label: Get projects matching query
  badge: GET
title: Get projects matching query
type: openapi-operation
---
Returns a list of projects visible to the user where project name and/or key is matching the given query.
Passing an empty (or whitespace only) query will match no projects. The project matches will
contain a field with the query highlighted.
The number of projects returned can be controlled by passing a value for 'maxResults', but a hard limit of no
more than 100 projects is enforced. The projects are wrapped in a single response object that contains
a header for use in the picker, specifically 'Showing X of Y matching projects' and the total number
of matches for the query.

`GET /api/2/projects/picker`

**Responses**

- `200` — Returned even when no projects match the given query.

Response example, 200:

```json
{
  "header": "Showing 2 of 5 matching projects",
  "projects": [
    {
      "avatar": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
      "html": "Example <strong>pro</strong>ject name (EXAM)",
      "id": "10000",
      "key": "EXAM",
      "name": "Example project name"
    }
  ],
  "total": 5
}
```
