---
title: "Search"
method: GET
path: "/search"
tags: ["Search"]
---

# Search

`GET /search`

Search for entities in your account by text string

## Query parameters

- `per_page` integer
- `page` integer
- `query` string, required
- `project_id` integer[]
- `type` string[]
- `type_expand` string[]
- `project_type` string[]
- `expand` string[]
- `archived` boolean
- `fullsearch` boolean
- `status` string[]
- `sort` string
- `order` string
- `environment_key` string
- `audience_id` integer[]

## Response `200`

Return search results

- SearchResult[]
  - `archived` boolean — Whether or not the entity is archived.
  - `audience_ids` integer[] — A list of Audience IDs used in the Experiment
  - `campaign_type` string — Type of campaing.
  - `created` string, date-time — The time that the entity was created.
  - `description` string — Description for the entity if it has one.
  - `enabled` boolean — Wheter or not the environment is enabled or not
  - `environment_key` string — The environment key of a given rule
  - `event_type` string — Type of event.
  - `experiment_count` integer — Number of experiments by audience_id
  - `experiment_type` string — The type of experiment
  - `feature_key` string — The feature flag key
  - `feature_name` string — The feature flag name to display in the Optimizely app. Whitespaces and other non-alphanumeric characters allowed. Defaults to feature key if left empty.
  - `flag_key` string — The Flag key
  - `group_id` integer — The id of the group that the rule belongs to.
  - `id` integer — ID of the entity
  - `key` string — Key of the entity.
  - `last_modified` string, date-time — The time that the entity was last modified.
  - `name` string — Name of the entity. This value will be the 'key' of the entity if there is no name.
  - `page_id` integer — The Page ID associated with an Event
  - `project_id` integer — ID of the project that contains the entity (if applicable)
  - `project_name` string — Name of the project that contains the entity (if applicable)
  - `rule_type` string — Type of rule.
  - `ruleset_enabled` boolean — Wheter or not the a rule is enabled in a ruleset
  - `status` string — The current status for the entity if it has one.
  - `type` 'experiment' | 'campaign' | 'feature' | 'audience' | 'page' | 'event' | 'flag' | 'rule' | 'extension' — Type of the entity.
  - `updated_time` string, date-time — The time that the flag entity was last modified.
  - `variation_specific` boolean — Whether or not an event is variation specific

## Other responses

- `401` — Invalid credentials
- `403` — You do not have permission to search the specified Account or Project
- `default` — Unexpected error

---

[API](https://skmtc.dev/optimizely/apis/optimizely-api.md) · [All operations](https://skmtc.dev/optimizely/apis/optimizely-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/optimizely/optimizely-api/revisions/5151fe6a2297/schema)
