# globalSearch

Global search matches, grouped by record type. The globalSearch query in Bunny's GraphQL API, with its arguments, return type and an example request.

Scope required: standard:read

For a complete list of possible response fields see the [GlobalSearch](https://docs.bunny.com/developer/api-reference/types/globalsearch) type.

```graphql
query globalSearch ($text: String!, $types: [GlobalSearchRecord!], $perType: Int) {
  globalSearch (text: $text, types: $types, perType: $perType) {

  }
}
```

## Arguments

| Name | Type | Description |
| text | String | At least 2 characters |
| types | List (GlobalSearchRecord) | Only these types; all when absent |
| perType | Int | Results per type, 1 to 20 |

## Response

- [GlobalSearch](https://docs.bunny.com/developer/api-reference/types/globalsearch)

---

Source: https://docs.bunny.com/developer/api-reference/queries/globalsearch. Index of every page: https://docs.bunny.com/llms.txt
