> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.getunleash.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.getunleash.io/_mcp/server.

# Search

> Search and filter feature flags on the Flags overview page or within a project, and search projects on the Projects page.

v5.9

Unleash provides search and filtering to help you find feature flags and projects:

* To search and filter feature flags across all projects, use the **Flags overview** page.
* To search and filter feature flags within a single project, open the project and use its flag list.
* To search projects, use the search bar on the **Projects** page.

## Search feature flags

The search bar at the top of the Flags overview page and the project flag list performs a full-text search across flag names and descriptions.

To search for multiple keywords, separate them with a comma. Multiple keywords act as an OR condition, so results include flags that match any of the keywords. Because the comma acts as a separator, you can't search for text that contains a comma.

![The search bar, using multiple keywords](/_fern-files/_img/9d40ee5d265ef978827eb6fba5d36e12cdd946e0a29ec1bd92e9439428d4325b.webp)

## Filter feature flags

Click **Add filter** to filter the flag list. The following filters are available:

* **Created by**: Select one or more users to show flags created by any of them.
* **Created date**: Filter flags by creation date, using the **On or after** or **Is before** operators.
* **Favorite**: Show flags you have marked as favorites.
* **Flag type**: Filter flags by their flag type.
* **Last seen**: Filter flags based on when an SDK last reported them.
* **Project**: On the Flags overview page, filter flags by project, using the **Is**, **Is not**, **Is any of**, or **Is none of** operators.
* **Segment** and **Tags**: Filter flags by the segments or tags they use, with operators to include or exclude one or more values: **Include**, **Do not include**, **Include all of**, **Include any of**, **Exclude if any of**, and **Exclude all**.
* **State**: Filter active or stale flags, using the **Is** or **Is not** operators.

![The search filters, using operators](/_fern-files/_img/42c92288d896f911b271f6ac8020fe3fe51855849c1145f238c4c166bf98a4c2.webp)

## Search projects

To find a project, use the search bar at the top of the Projects page.

## Search using the API

Search and filtering are also available through the Admin API. All filters and operators work the same way as in the Admin UI.

### Request

GET [https://app.unleash-instance.example.com/api/admin/search/features](https://app.unleash-instance.example.com/api/admin/search/features)

```curl
curl -G https://app.unleash-instance.example.com/api/admin/search/features \
     -H "Authorization: <apiKey>" \
     --data-urlencode archived=IS:true \
     --data-urlencode createdAt=IS_ON_OR_AFTER:2023-01-28 \
     --data-urlencode createdBy=IS:1 \
     --data-urlencode favorite=IS:true \
     -d favoritesFirst=true \
     --data-urlencode lastSeenAt=IS_ON_OR_AFTER:2023-01-28 \
     --data-urlencode lifecycle=IS:initial \
     -d limit=50 \
     -d offset=50 \
     --data-urlencode project=IS:default \
     -d query=feature_a \
     --data-urlencode segment=INCLUDE:pro-users \
     -d sortBy=type \
     -d sortOrder=desc \
     --data-urlencode state=IS:active \
     --data-urlencode tag=INCLUDE:simple:my_tag \
     --data-urlencode type=IS:release
```

```python
import requests

url = "https://app.unleash-instance.example.com/api/admin/search/features"

querystring = {"archived":"IS:true","createdAt":"IS_ON_OR_AFTER:2023-01-28","createdBy":"IS:1","favorite":"IS:true","favoritesFirst":"true","lastSeenAt":"IS_ON_OR_AFTER:2023-01-28","lifecycle":"IS:initial","limit":"50","offset":"50","project":"IS:default","query":"feature_a","segment":"INCLUDE:pro-users","sortBy":"type","sortOrder":"desc","state":"IS:active","tag":"INCLUDE:simple:my_tag","type":"IS:release"}

headers = {"Authorization": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://app.unleash-instance.example.com/api/admin/search/features?archived=IS%3Atrue&createdAt=IS_ON_OR_AFTER%3A2023-01-28&createdBy=IS%3A1&favorite=IS%3Atrue&favoritesFirst=true&lastSeenAt=IS_ON_OR_AFTER%3A2023-01-28&lifecycle=IS%3Ainitial&limit=50&offset=50&project=IS%3Adefault&query=feature_a&segment=INCLUDE%3Apro-users&sortBy=type&sortOrder=desc&state=IS%3Aactive&tag=INCLUDE%3Asimple%3Amy_tag&type=IS%3Arelease';
const options = {method: 'GET', headers: {Authorization: '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://app.unleash-instance.example.com/api/admin/search/features?archived=IS%3Atrue&createdAt=IS_ON_OR_AFTER%3A2023-01-28&createdBy=IS%3A1&favorite=IS%3Atrue&favoritesFirst=true&lastSeenAt=IS_ON_OR_AFTER%3A2023-01-28&lifecycle=IS%3Ainitial&limit=50&offset=50&project=IS%3Adefault&query=feature_a&segment=INCLUDE%3Apro-users&sortBy=type&sortOrder=desc&state=IS%3Aactive&tag=INCLUDE%3Asimple%3Amy_tag&type=IS%3Arelease"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://app.unleash-instance.example.com/api/admin/search/features?archived=IS%3Atrue&createdAt=IS_ON_OR_AFTER%3A2023-01-28&createdBy=IS%3A1&favorite=IS%3Atrue&favoritesFirst=true&lastSeenAt=IS_ON_OR_AFTER%3A2023-01-28&lifecycle=IS%3Ainitial&limit=50&offset=50&project=IS%3Adefault&query=feature_a&segment=INCLUDE%3Apro-users&sortBy=type&sortOrder=desc&state=IS%3Aactive&tag=INCLUDE%3Asimple%3Amy_tag&type=IS%3Arelease")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://app.unleash-instance.example.com/api/admin/search/features?archived=IS%3Atrue&createdAt=IS_ON_OR_AFTER%3A2023-01-28&createdBy=IS%3A1&favorite=IS%3Atrue&favoritesFirst=true&lastSeenAt=IS_ON_OR_AFTER%3A2023-01-28&lifecycle=IS%3Ainitial&limit=50&offset=50&project=IS%3Adefault&query=feature_a&segment=INCLUDE%3Apro-users&sortBy=type&sortOrder=desc&state=IS%3Aactive&tag=INCLUDE%3Asimple%3Amy_tag&type=IS%3Arelease")
  .header("Authorization", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://app.unleash-instance.example.com/api/admin/search/features?archived=IS%3Atrue&createdAt=IS_ON_OR_AFTER%3A2023-01-28&createdBy=IS%3A1&favorite=IS%3Atrue&favoritesFirst=true&lastSeenAt=IS_ON_OR_AFTER%3A2023-01-28&lifecycle=IS%3Ainitial&limit=50&offset=50&project=IS%3Adefault&query=feature_a&segment=INCLUDE%3Apro-users&sortBy=type&sortOrder=desc&state=IS%3Aactive&tag=INCLUDE%3Asimple%3Amy_tag&type=IS%3Arelease', [
  'headers' => [
    'Authorization' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://app.unleash-instance.example.com/api/admin/search/features?archived=IS%3Atrue&createdAt=IS_ON_OR_AFTER%3A2023-01-28&createdBy=IS%3A1&favorite=IS%3Atrue&favoritesFirst=true&lastSeenAt=IS_ON_OR_AFTER%3A2023-01-28&lifecycle=IS%3Ainitial&limit=50&offset=50&project=IS%3Adefault&query=feature_a&segment=INCLUDE%3Apro-users&sortBy=type&sortOrder=desc&state=IS%3Aactive&tag=INCLUDE%3Asimple%3Amy_tag&type=IS%3Arelease");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://app.unleash-instance.example.com/api/admin/search/features?archived=IS%3Atrue&createdAt=IS_ON_OR_AFTER%3A2023-01-28&createdBy=IS%3A1&favorite=IS%3Atrue&favoritesFirst=true&lastSeenAt=IS_ON_OR_AFTER%3A2023-01-28&lifecycle=IS%3Ainitial&limit=50&offset=50&project=IS%3Adefault&query=feature_a&segment=INCLUDE%3Apro-users&sortBy=type&sortOrder=desc&state=IS%3Aactive&tag=INCLUDE%3Asimple%3Amy_tag&type=IS%3Arelease")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```